Find answers from the community

Updated 6 months ago

Is there a way to access the condensed

At a glance

The community member is asking if there is a way to access the condensed query from the Condense chat mode and store it in a log or database, as they have seen it while using verbose mode but want to store it instead of just printing it. A community member responds that the response.sources should be a list of ToolOutput objects, each of which has a raw_input attribute that can be used to get the condensed question. Another community member replies "Awesome. Thank you!".

Is there a way to access the condensed query with the Condense chat mode to store to logs/database? I have seen it while using verbose mode but I am hoping to store this to a db and not just print exclusively.
L
A
2 comments
Try checking response.sources

Should be a list of ToolOutput objects

each ToolOutput object has a tool_name, content, raw_input, and raw_output attribute

You can use raw_input to get the condensed question
Awesome. Thank you!
Add a reply
Sign up and join the conversation on Discord