Skip to main content

Production-ready RAG pipeline evaluation and observability platform

Project description

🔍 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 Ragas Arize Phoenix DeepEval
Plugin Marketplace ✅ Unique
Local LLM (Ollama) ✅ Native ⚠️ Partial ⚠️ Partial ⚠️ Partial
Dashboard ✅ Excellent ⚠️ Basic ✅ Excellent ⚠️ Good
Real-time Analytics ✅ WebSockets
Security ✅ High ⚠️ Moderate ✅ High ⚠️ Moderate
CI/CD Integration ✅ Native Action ⚠️ Manual ⚠️ Manual
Open Source ✅ MIT ✅ Apache ⚠️ Partial ✅ 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

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

raglint-0.1.0.tar.gz (231.1 kB view details)

Uploaded Source

Built Distribution

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

raglint-0.1.0-py3-none-any.whl (158.8 kB view details)

Uploaded Python 3

File details

Details for the file raglint-0.1.0.tar.gz.

File metadata

  • Download URL: raglint-0.1.0.tar.gz
  • Upload date:
  • Size: 231.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for raglint-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0afa234d5b8d839d4b29c39005814cb254e167d87c62b01e7207a61a7352ba7a
MD5 4b751c9144367d9a0b6f5a622986cba3
BLAKE2b-256 c457a0414c60cce9831a1cb605419ff5f3911059eb4f5e2f93fd21e3e4df3cc3

See more details on using hashes here.

File details

Details for the file raglint-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: raglint-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 158.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for raglint-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69dd73bd7c312012b16d66904c5dd72d384020354002106e7a0bf947790247fd
MD5 ce2cd40541559cf5303138af8ca8f811
BLAKE2b-256 e5db85d6f07559d9383d4b68a2ba9962ccf24217ff9e998963dbf961a4044f16

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