Skip to content
Discussion options

You must be logged in to vote

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 invoking chat_engine.chat(), use the chat() method. This method retrieves context using the retriever and includes it in the response.

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 chat() method returns an AgentChatResponse that includes both the response and the sources (retriever results) [1].

To continue talking to Dosu, mention @dosu.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@baxteran
Comment options

Answer selected by baxteran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant