# Ragasas (Retrieval Augmented Generation as Software as a Service)
Example Usage:
```python
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.
```
Raw data
{
"_id": null,
"home_page": "https://github.com/yourusername/yourpackage",
"name": "ragasas",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "RAG, LLM, Python, OpenAI, ChatGPT",
"author": "Eric Gustin",
"author_email": "ericgustin44@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/2f/61/9b1e15861078e5ac468a16adbcf9d008a19319787f484e404e30a24677de/ragasas-1.1.5.tar.gz",
"platform": null,
"description": "# Ragasas (Retrieval Augmented Generation as Software as a Service)\n\nExample Usage: \n```python\nfrom ragasas import Ragasas\n\n# Data prep\nopenai_api_key = \"YOUR_OPENAI_API_KEY\"\ndata = [\n \"Ragasas streamlines the RAG (Retrieval Augmented Generation) development process.\",\n \"Ragasas is a Python package.\",\n \"Ragasas was created by Eric Gustin.\",\n]\nretriever_message = \"Searches and returns documents regarding Ragasas.\"\nsystem_message = \"You are a helpful chatbot who is tasked with answering questions about Ragasas. Assume all questions are about Ragasas.\"\n\n# Use Ragasas\nragasas = Ragasas(\n openai_api_key,\n data,\n retriever_message,\n system_message,\n embedding_model=\"text-embedding-ada-002\",\n llm_model=\"gpt-3.5-turbo\",\n)\nresponse = ragasas.ask(\"What is Ragasas?\")\nprint(response[\"output\"])\n\n# Response: Ragasas is a Python package created by Eric Gustin. It streamlines the RAG (Retrieval Augmented Generation) development process.\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "A package that can be used to create RAGs with a single line of code.",
"version": "1.1.5",
"project_urls": {
"Bug Tracker": "https://github.com/yourusername/yourpackage/issues",
"Homepage": "https://github.com/yourusername/yourpackage"
},
"split_keywords": [
"rag",
" llm",
" python",
" openai",
" chatgpt"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "88ed21c2abdc7998338d1ad8b8bc0ce4e0a3fa828c9a5e5a41347cade2f77566",
"md5": "b3563f598b5f5a28f8e002360cd8c673",
"sha256": "434cba3e19792755808b11dbc2438c1acaee4d44ed13f7b063914703a845af8a"
},
"downloads": -1,
"filename": "ragasas-1.1.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b3563f598b5f5a28f8e002360cd8c673",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 8909,
"upload_time": "2024-03-29T03:02:23",
"upload_time_iso_8601": "2024-03-29T03:02:23.761807Z",
"url": "https://files.pythonhosted.org/packages/88/ed/21c2abdc7998338d1ad8b8bc0ce4e0a3fa828c9a5e5a41347cade2f77566/ragasas-1.1.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2f619b1e15861078e5ac468a16adbcf9d008a19319787f484e404e30a24677de",
"md5": "e21880d5832a64884e0c3e8805a7686b",
"sha256": "c72d959e0eb33eeacebb76eea4c973a88e4689a142e15ee8e41f2780b018e2b1"
},
"downloads": -1,
"filename": "ragasas-1.1.5.tar.gz",
"has_sig": false,
"md5_digest": "e21880d5832a64884e0c3e8805a7686b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9719,
"upload_time": "2024-03-29T03:02:24",
"upload_time_iso_8601": "2024-03-29T03:02:24.891127Z",
"url": "https://files.pythonhosted.org/packages/2f/61/9b1e15861078e5ac468a16adbcf9d008a19319787f484e404e30a24677de/ragasas-1.1.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-29 03:02:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "yourusername",
"github_project": "yourpackage",
"github_not_found": true,
"lcname": "ragasas"
}