-
I want to measure the result relevance retrieved from a vector store by a CondensePlusContextChatEngine - similar to the following:
Is there a simple way to get the chat engine to return the retriever results when invoking chat_engine.chat()? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @baxteran! I'm here to help you with any bugs, questions, or contributions. Let's tackle this together! To get the Here's how you can access the retriever results: response = chat_engine.chat("Your message here")
retriever_results = response.sources # This contains the retriever results The |
Beta Was this translation helpful? Give feedback.
Hello @baxteran! I'm here to help you with any bugs, questions, or contributions. Let's tackle this together!
To get the
CondensePlusContextChatEngine
to return retriever results when invokingchat_engine.chat()
, use thechat()
method. This method retrieves context using the retriever and includes it in the response.Here's how you can access the retriever results:
The
chat()
method returns anAgentChatResponse
that includes both the response and the sources (retriever results) [1].To continue talking to Dosu, mention @dosu.