Capstone-S17 / DuRAG

0 stars 0 forks source link

Added rag_eval.py #2

Closed hungchiayu1 closed 8 months ago

hungchiayu1 commented 9 months ago

I modified the way Trulen does rag eval. Previously for groundedness score, Trulens will call TruLlama.select_source_nodes().node.text.collect() which I assume is to select nodes and collect context chunks into a list and pass it into the groundedness feedback function. Right now, I simply pass in the retrieved text into the groundedness feedback function. This should work ( i guess)

Dhanushkmr commented 9 months ago

ill test first then merge later thanks