explodinggradients / ragas

Supercharge Your LLM Application Evaluations 🚀
https://docs.ragas.io
Apache License 2.0
7.15k stars 727 forks source link

[R-299] Add cost estimation to testset generator #1527

Closed ahgraber closed 2 weeks ago

ahgraber commented 3 weeks ago

Describe the Feature RAGAS supports cost estimation during evaluation; it would also be useful to know how much it costs to construct the synthetic dataset.

I would like to have the ability to use the CostCallbackHandler in both KnowledgeGraph creation and in TestsetGenerator.generate() calls. Specifically, it would be useful to track them separately and jointly:

Why is the feature important for you? Cost management is critical especially if source material is dynamic and requires frequent dataset synthesis.

R-299

Kefan-pauline commented 2 weeks ago

+1

jjmachan commented 2 weeks ago

that is a very good suggestion @ahgraber - will get this sorted for you, hopefully by next week 🙂