Skip to main content

A package that can be used to create RAGs with a single line of code.

Project description

Ragasas (Retrieval Augmented Generation as Software as a Service)

Example Usage:

from ragasas import Ragasas

# Data prep
openai_api_key = "YOUR_OPENAI_API_KEY"
data = [
    "Ragasas streamlines the RAG (Retrieval Augmented Generation) development process.",
    "Ragasas is a Python package.",
    "Ragasas was created by Eric Gustin.",
]
retriever_message = "Searches and returns documents regarding Ragasas."
system_message = "You are a helpful chatbot who is tasked with answering questions about Ragasas. Assume all questions are about Ragasas."

# Use Ragasas
ragasas = Ragasas(
    openai_api_key,
    data,
    retriever_message,
    system_message,
    embedding_model="text-embedding-ada-002",
    llm_model="gpt-3.5-turbo",
)
response = ragasas.ask("What is Ragasas?")
print(response["output"])

# Response: Ragasas is a Python package created by Eric Gustin. It streamlines the RAG (Retrieval Augmented Generation) development process.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ragasas-1.1.5.tar.gz (9.7 kB view hashes)

Uploaded Source

Built Distribution

ragasas-1.1.5-py3-none-any.whl (8.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page