RAGAS Demo 🚀
A lightweight Retrieval-Augmented Generation (RAG) library built with Azure OpenAI and ChromaDB.
This package allows you to query your own vector database using natural language and generate accurate, context-aware responses.
✨ Features
- 🔍 Semantic search using vector embeddings
- ⚡ Fast retrieval with ChromaDB
- 🤖 Answer generation via Azure OpenAI
- 🔐 User-controlled API keys (no key storage)
- 📦 Easy to install via pip
📦 Installation
pip install ragas_testing
🚀 Quick Start
from ragas_test import RAG
rag = RAG(
api_key="YOUR_AZURE_API_KEY",
endpoint="YOUR_AZURE_ENDPOINT",
chat_deployment="YOUR_CHAT_DEPLOYMENT",
embedding_deployment="YOUR_EMBEDDING_DEPLOYMENT",
db_path="./chroma_db" # Path to your vector DB
)
response = rag.ask("What is RAG?")
print(response)
🧠 How It Works
- User question is converted into embeddings
- Relevant documents are retrieved from ChromaDB
- Context is passed to Azure OpenAI
- LLM generates a grounded response
📁 Requirements
- Python 3.8+
- Azure OpenAI account
- Pre-built ChromaDB vector store
⚠️ Important Notes
- The embedding model used for queries must match the one used to build the ChromaDB
- This package does not store API keys
- All requests are processed using user-provided credentials
- Ensure your
chroma_dbdirectory exists before running
🔐 Security
- No API keys are stored internally
- No external data is logged
- Users retain full control over their data and credentials
🛠️ Future Improvements
- CLI support
- Auto vector DB creation
- Remote vector DB integration
- Caching for faster responses
👨💻 Author
Mannat Sharma
Metadata
Release files for ragas-testing 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ragas_testing-0.1.1.tar.gz | 3.9 kB | Without provenance | Details for ragas_testing-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ragas_testing-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for ragas_testing-0.1.1-py3-none-any.whl |
Total release size: 9.0 kB
Release files / ragas_testing-0.1.1.tar.gz
| Download URL | ragas_testing-0.1.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58d742f00761556ed94babe9d4e699f56de46a4acf0bfe87d25f4c76a5bb177d
|
|
BLAKE2b-256 checksum How to use checksums |
0778fbded4a9375be1047144e01a1e86b1b314c70cb4e27b7241064d249d0b77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / ragas_testing-0.1.1-py3-none-any.whl
| Download URL | ragas_testing-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca4e4b8d30451171fa733536b876ec9f8e1b3fe7f86254f5d733266e0bfbe271
|
|
BLAKE2b-256 checksum How to use checksums |
e1edbda7b4eca5feceec27e22947cd19dca13a2aa50ed0589a7f82868abe3f21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Security for ragas-testing 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.