ragas icon indicating copy to clipboard operation
ragas copied to clipboard

[Feature] Add real-time streaming evaluation for production RAG monitoring

Open reallyticsai opened this issue 6 months ago • 0 comments

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!

reallyticsai avatar May 06 '26 10:05 reallyticsai