RAG Evaluation Framework using Ragas metrics and MLflow tracking
Project description
RAGSentinel
RAG Evaluation Framework using Ragas metrics and MLflow tracking.
Installation
pip install rag-sentinel
Quick Start
1. Initialize Project
mkdir my-rag-eval
cd my-rag-eval
rag-sentinel init
This creates:
.env- LLM/Embeddings API keysconfig.ini- App settings and authenticationrag_eval_config.yaml- Master configuration
2. Configure
Edit .env:
LLM_PROVIDER=azure
AZURE_LLM_API_KEY=your-api-key
AZURE_LLM_ENDPOINT=https://your-resource.openai.azure.com/
Edit config.ini:
[app]
app_url = https://your-rag-app.com/backend
[auth]
type = cookie
cookie_name = session
cookie_value = your-session-cookie
3. Create Test Dataset
Create test_dataset.csv:
query,ground_truth,chat_id
Hello,Hello! How can I help you?,1
4. Run Evaluation
rag-sentinel run
View results at: http://127.0.0.1:5001
CLI Commands
rag-sentinel init # Initialize project
rag-sentinel run # Run evaluation (auto-starts MLflow)
rag-sentinel run --no-server # Run without starting MLflow
rag-sentinel validate # Validate configuration
Metrics
- Faithfulness - Factual consistency of answer with context
- Answer Relevancy - How relevant the answer is to the question
- Context Precision - Quality of retrieved context
- Answer Correctness - Comparison against ground truth
License
MIT
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
rag_sentinel-0.1.1.tar.gz
(11.8 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 rag_sentinel-0.1.1.tar.gz.
File metadata
- Download URL: rag_sentinel-0.1.1.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31fa3e4a51b98de629b654becc09d3a5a57674d54bd02ae2eda52f5f777ab729
|
|
| MD5 |
2fd7711bd0983ab79270bcbaa0cd133b
|
|
| BLAKE2b-256 |
b288b0e3c61d4c8e10ab0f2a92d3906aa6b2ee1509c93b8abccefb27b4bcd197
|
File details
Details for the file rag_sentinel-0.1.1-py3-none-any.whl.
File metadata
- Download URL: rag_sentinel-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47234c58c664bbfe22daefe6eb94d8c802f1098b6012f714af7473814605da61
|
|
| MD5 |
c6bd1659a3977e92238ae47478069d3d
|
|
| BLAKE2b-256 |
8c5a9e6a014f54af9df3501df0c39473f4fb04ee69b3721e7ab6fcb92faf9632
|