ragas icon indicating copy to clipboard operation
ragas copied to clipboard

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

Open smqd19 opened this issue 7 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!

smqd19 avatar Apr 19 '26 09:04 smqd19