RAG pipeline using Azure + Chroma
Project description
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-demo-mannat
🚀 Quick Start
from ragas_demo 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ragas_testing-0.1.0.tar.gz
(2.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ragas_testing-0.1.0.tar.gz.
File metadata
- Download URL: ragas_testing-0.1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8566a9f842b5b4ae924a6b52dde1bc93dc357ca76f1d1c43fd1e3e11ae93c08c
|
|
| MD5 |
ab9d303f4373b2896c6d861a785cf5b0
|
|
| BLAKE2b-256 |
cd548f03b220c03849514a9e3970d1d50bc326e84b2ac3c0b55588f2033ff774
|
File details
Details for the file ragas_testing-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ragas_testing-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a65588ec703e672339f6b48dee9531f4c1e1aa45e7267bc41421c573342db9ac
|
|
| MD5 |
b49f23af1031cf257895ad383cc57f73
|
|
| BLAKE2b-256 |
e416ea18fe15dbe825ef831457603f6f10180d41f6c338d949ab1c111494ced5
|