RAG evaluation tool using RAGAS
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_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
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.1.tar.gz
(3.9 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.1.tar.gz.
File metadata
- Download URL: ragas_testing-0.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58d742f00761556ed94babe9d4e699f56de46a4acf0bfe87d25f4c76a5bb177d
|
|
| MD5 |
0bca4b37c32bac611bdb95ff44d38ca8
|
|
| BLAKE2b-256 |
0778fbded4a9375be1047144e01a1e86b1b314c70cb4e27b7241064d249d0b77
|
File details
Details for the file ragas_testing-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ragas_testing-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.0 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 |
ca4e4b8d30451171fa733536b876ec9f8e1b3fe7f86254f5d733266e0bfbe271
|
|
| MD5 |
878b80ea4222df973356d74b5edaf4db
|
|
| BLAKE2b-256 |
e1edbda7b4eca5feceec27e22947cd19dca13a2aa50ed0589a7f82868abe3f21
|