ragas
ragas copied to clipboard
[Feature] Add real-time streaming evaluation for production RAG monitoring
Description
Currently RAGAS evaluation runs as a batch process. For production RAG systems, a streaming evaluation mode that assesses individual queries in real-time would be extremely valuable.
Use Case
- Evaluate faithfulness and relevancy per-query as they're served
- Trigger alerts when quality drops below thresholds
- Feed metrics into Prometheus/Grafana dashboards
Proposed API
from ragas.streaming import StreamingEvaluator
evaluator = StreamingEvaluator(metrics=[faithfulness, relevancy])
result = evaluator.evaluate_single(query=q, answer=a, contexts=ctx)
Would love to contribute to this if the maintainers are interested!