Skip to main content

🔍 RAGLint

The Honest RAG Evaluation Platform

PyPI version License: MIT Python 3.9+ Code Coverage

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.

✨ Why RAGLint?

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

🚀 Quick Start

# Install
pip install raglint

# Analyze your RAG pipeline
raglint analyze data.json --smart --provider ollama

# Launch dashboard
raglint dashboard

📊 Features

Core Metrics

  • 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

Advanced Analytics

  • Drift Detection: Monitor metric changes over time
  • Cohort Analysis: Compare configurations
  • Embedding Visualization: UMAP projections
  • Real-time Updates: WebSocket-powered dashboard

Integrations

  • ✅ OpenAI, Azure OpenAI, AWS Bedrock
  • ✅ Ollama (local LLM)
  • ✅ LangChain, LlamaIndex, Haystack
  • ✅ Pinecone, Weaviate, Chroma, Qdrant

💡 Example

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}")

🔌 Plugin Marketplace

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-metric

Built-in Plugins:

  • Citation Accuracy Checker
  • PII Detector
  • SQL Injection Detector
  • Bias Detector
  • Hallucination Confidence

🎯 CI/CD Integration

# .github/workflows/raglint.yml
- name: RAGLint Analysis
  uses: yourusername/raglint-action@v1
  with:
    data-file: 'eval_data.json'
    threshold: 0.7

📈 Dashboard

Beautiful, 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

🔐 Enterprise-Ready

  • Security: RestrictedPython sandbox, code signing
  • Scalability: PostgreSQL support, async processing
  • Privacy: Self-hosted, local LLM support
  • Compliance: PII detection, audit logs

📚 Documentation

🤝 Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

📄 License

MIT License - see LICENSE for details.

⭐ Star Us!

If you find RAGLint useful, please consider starring the repo to help others discover it!


Made with ❤️ by the RAGLint team | Website | Discord | Twitter

Metadata

Release files for raglint 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for raglint 0.2.0
File Size Uploaded
raglint-0.2.0.tar.gz 154.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for raglint 0.2.0
File Interpreter ABI Platform
raglint-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 313.6 kB

Release files / raglint-0.2.0.tar.gz

Download URL raglint-0.2.0.tar.gz
Size 154.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d42d5b6873fd750a8817da55b3beb28f5b184161d46739a7395a6efa717f1614
BLAKE2b-256 checksum
How to use checksums
17b30ce0fbc0e1a97264e276d1ff031ffa430a91773cd68948f5af6464fa4339
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / raglint-0.2.0-py3-none-any.whl

Download URL raglint-0.2.0-py3-none-any.whl
Size 159.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b9d7a4045d322074b7209ea982670b76d685065b2949c6c4d530498e068c19d
BLAKE2b-256 checksum
How to use checksums
9d9ab6dd3f947e15766c4b6ed3672b7655b428c90e2d3d6e337fdc8442447dd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page