Skip to main content

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

  1. User question is converted into embeddings
  2. Relevant documents are retrieved from ChromaDB
  3. Context is passed to Azure OpenAI
  4. 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_db directory 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ragas_testing-0.1.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for ragas_testing-0.1.1.tar.gz
Algorithm Hash digest
SHA256 58d742f00761556ed94babe9d4e699f56de46a4acf0bfe87d25f4c76a5bb177d
MD5 0bca4b37c32bac611bdb95ff44d38ca8
BLAKE2b-256 0778fbded4a9375be1047144e01a1e86b1b314c70cb4e27b7241064d249d0b77

See more details on using hashes here.

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

Hashes for ragas_testing-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca4e4b8d30451171fa733536b876ec9f8e1b3fe7f86254f5d733266e0bfbe271
MD5 878b80ea4222df973356d74b5edaf4db
BLAKE2b-256 e1edbda7b4eca5feceec27e22947cd19dca13a2aa50ed0589a7f82868abe3f21

See more details on using hashes here.

Supported by

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