Assistance Needed with Custom Composite Feedback Function Using Groundedness and Answer Relevance #1702
Replies: 1 comment
-
To address your concerns about the implementation of your custom composite feedback function in TruLens, let's go through each point:
Overall, your approach seems well-structured. If you encounter specific issues, consider checking the compatibility of the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
What I’m Trying to Achieve:
I am working on creating a custom feedback function in TruLens that combines the results of groundedness and answer relevance. The goal is to calculate a composite score by weighting the outputs of these two feedback mechanisms. However, I am unsure if my approach is correct, especially regarding how I’m using f_groundedness.run() and f_answer_relevance.run() within my function.
My Current Implementation:
Below is my implementation for context:
My Concerns:
Correctness of f_groundedness.run() and f_answer_relevance.run():
Am I using .run() correctly to evaluate the feedback scores within the custom composite function?
Record Structure:
I am debugging the record structure with print(record) but not sure if this is the right way to ensure compatibility.
Composite Feedback Initialization:
Is wrapping the composite function in a Feedback object as shown above appropriate, or am I missing something in the process?
Beta Was this translation helpful? Give feedback.
All reactions