i have tried using ragas,langsmith and griskard . i have developed rag using adnvace techniques.
i {
“name”: “AttributeError”,
“message”: “‘CustomProvider’ object has no attribute ‘f_context_relevance_score'”,
“stack”: “—————————————————————————
AttributeError Traceback (most recent call last)
Cell In[121], line 4
1 from trulens_eval.guardrails.llama import WithFeedbackFilterNodes
3 # note: feedback function used for guardrail must only return a score, not also reasons
—-> 4 f_context_relevance_score = Feedback(provider.f_context_relevance_score)
6 filtered_query_engine = WithFeedbackFilterNodes(query_engine, feedback=f_context_relevance_score, threshold=0.5)
AttributeError: ‘CustomProvider’ object has no attribute ‘f_context_relevance_score'”
}
ayesha chohan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.