Find answers from the community

Updated 2 years ago

Error querymode retrieve

At a glance

The post asks for help with an issue, and the community members in the comments provide suggestions. They recommend removing the second argument to the query or using a specific approach to get the documents without generating a complete answer. The community members discuss trying to get the documents rather than the full answer. However, there is no explicitly marked answer in the provided information.

Any idea what could be wrong here?
Attachment
image.png
L
l
4 comments
Maybe remove the second argument to the query? Or what are you wanting to do?
We are trying to just get the documents and not the complete answer
For that you'll want to do something like this

Plain Text
response = index.query("my query", response_mode="no_text")
source_nodes = response.source_nodes
That gets all the nodes that would have been used to generate an answer, without generating an answer
Add a reply
Sign up and join the conversation on Discord