The Honest RAG Evaluation Platform
RAGLint is the all-in-one evaluation platform for Retrieval-Augmented Generation (RAG) systems. Built with production in mind, it provides comprehensive metrics, a beautiful dashboard, and enterprise-grade security.
| Feature | RAGLint |
|---|---|
| Plugin Marketplace | ✅ Unique |
| Local LLM (Ollama) | ✅ Native |
| Dashboard | ✅ Excellent |
| Real-time Analytics | ✅ WebSockets |
| Security | ✅ High |
| CI/CD Integration | ✅ Native Action |
| Open Source | ✅ MIT |
# Install
pip install raglint
# Analyze your RAG pipeline
raglint analyze data.json --smart --provider ollama
# Launch dashboard
raglint dashboard- Faithfulness: Verify answers match source documents
- Relevance: Context & answer relevance scoring
- Precision/Recall: Retrieval quality metrics
- Bias Detection: Identify biased responses
- Toxicity: Safety & appropriateness checks
- PII Detection: Security & privacy compliance
- Drift Detection: Monitor metric changes over time
- Cohort Analysis: Compare configurations
- Embedding Visualization: UMAP projections
- Real-time Updates: WebSocket-powered dashboard
- ✅ OpenAI, Azure OpenAI, AWS Bedrock
- ✅ Ollama (local LLM)
- ✅ LangChain, LlamaIndex, Haystack
- ✅ Pinecone, Weaviate, Chroma, Qdrant
from raglint.core import RAGPipelineAnalyzer
# Your RAG data
data = [
{
"query": "What is machine learning?",
"retrieved_contexts": ["ML is a subset of AI..."],
"response": "Machine learning is..."
}
]
# Analyze
analyzer = RAGPipelineAnalyzer(use_smart_metrics=True)
results = analyzer.analyze(data)
print(f"Faithfulness: {results.faithfulness_scores[0]:.2f}")
print(f"Relevance: {results.semantic_scores[0]:.2f}")Extend RAGLint with custom metrics:
# Browse plugins
raglint plugins list
# Install a plugin
raglint plugins install raglint-pii-advanced
# Create your own
raglint plugins create my-custom-metricBuilt-in Plugins:
- Citation Accuracy Checker
- PII Detector
- SQL Injection Detector
- Bias Detector
- Hallucination Confidence
# .github/workflows/raglint.yml
- name: RAGLint Analysis
uses: RAGlint-Dev/raglint-action@v1
with:
data-file: 'eval_data.json'
threshold: 0.7Beautiful, real-time analytics dashboard:
- 📊 Interactive charts & visualizations
- 🔍 Drill-down into individual runs
- 📉 Drift detection & alerting
- 🎨 Dark mode & modern UI
- 🚀 WebSocket real-time updates
raglint dashboard
# Open http://localhost:8000- Security: RestrictedPython sandbox, code signing
- Scalability: PostgreSQL support, async processing
- Privacy: Self-hosted, local LLM support
- Compliance: PII detection, audit logs
We welcome contributions! See CONTRIBUTING.md for guidelines.
MIT License - see LICENSE for details.
If you find RAGLint useful, please consider starring the repo to help others discover it!
Made with ❤️ by the RAGLint team