Find answers from the community

Updated 6 months ago

Is there any way to pass retrieved nodes

At a glance

The community member is asking if there is a way to pass retrieved nodes to the query engine instead of the retriever, as they want to process the retrieved nodes before querying. A community member responds that the user can use a node postprocessor, and provides a link to the relevant documentation.

Useful resources
Is there any way to pass retrieved nodes to the query engine instead of the retriever. Asking this because I want to process the retrieved nodes before querying.
L
k
2 comments
If you want to process the nodes, you can use a node postprocessor πŸ™‚
https://docs.llamaindex.ai/en/stable/module_guides/querying/node_postprocessors/root.html#id2

index.as_query_engine(node_postprocessors=[DummyNodePostprocessor()])
Add a reply
Sign up and join the conversation on Discord