This repository has been archived by the owner on Nov 13, 2024. It is now read-only.
[Feature] Obtain F score directly from the chat engine #291
Labels
enhancement
New feature or request
Is this your first time submitting a feature request?
Describe the feature
I am able to get the F score using the knowledge base query object:
query_result = knowledge_base.query([Query(text=query)]) f_score = f"{query_result[0].documents[0].score * 100:.2f}%"
However, I cannot do the same when I use the chat engine directly because the following response object has no score component.
response = chat_engine.chat( messages=[UserMessage(content=query)], )
Would appreciate it if we could get the F score in the response body of the chat engine as well.
Describe alternatives you've considered
The alternative is to go directly to the knowledge base query method, but that misses out on the benefits that the context engine and chat engine provide.
Who will this benefit?
Everyone who wants to understand the F score of their query to benchmark performance and approximate confidence level in the output.
Are you interested in contributing this feature?
Sure, but would appreciate guidance (pair programming maybe?)
Anything else?
No response
The text was updated successfully, but these errors were encountered: