ragas icon indicating copy to clipboard operation
ragas copied to clipboard

OpenAI Tokens Usage for RAGAs Evaluation

Open aliai22 opened this issue 1 year ago • 5 comments

I am using RAGAs evaluation metrics to evaluate my RAG pipeline. Is there any way I could know the openai tokens used per api call from RAGAs, lets say for any one metric, i.e., faithfulness. I want to estimate the cost of using RAGAs evaluators.

aliai22 avatar Jan 31 '24 16:01 aliai22

this is a valuable suggestion @aliai22 :)

we have thought about it and will be implementing it soon but it might take a couple of weeks to prioritize this. The reason is that I want to take some time to design how stats would be like

basically, we want to track things like

  • tokens used
  • cost
  • performance metrics etc

in a unified way. I'll explore more and send an RFC your way asking for your feedback as soon as I have it ready. would that help?

jjmachan avatar Feb 05 '24 18:02 jjmachan

Yeah, that would be great. Looking forward to hear from you.

aliai22 avatar Feb 12 '24 09:02 aliai22

Did it get implemented?

Vishnu-add avatar Apr 24 '24 07:04 Vishnu-add

I am also looking for this, any update?

fhuthmacher avatar May 15 '24 16:05 fhuthmacher

Pinging to see if this gets released at any point.

abetatos avatar May 20 '24 10:05 abetatos

Any updates on this @jjmachan ?

nfsergiu avatar Jun 21 '24 08:06 nfsergiu

I'm also interested in this!

whitney-meer avatar Jun 24 '24 19:06 whitney-meer

hey folks, not yet but I will take this up this week and have something ready for your feedback shortly, my sincere apologies for the delay!

jjmachan avatar Jun 25 '24 11:06 jjmachan

fixed in #1129

jjmachan avatar Aug 01 '24 18:08 jjmachan