Modules
Node Postprocessors
Installation
Concept
Node postprocessors are a set of modules that take a set of nodes, and apply some kind of transformation or filtering before returning them.
In LlamaIndex, node postprocessors are most commonly applied within a query engine, after the node retrieval step and before the response synthesis step.
LlamaIndex offers several node postprocessors for immediate use, while also providing a simple API for adding your own custom postprocessors.
Usage Pattern
An example of using a node postprocessors is below:
Now you can use the filteredNodes
and rerankedNodes
in your application.
Using Node Postprocessors in LlamaIndex
Most commonly, node-postprocessors will be used in a query engine, where they are applied to the nodes returned from a retriever, and before the response synthesis step.
Using Node Postprocessors in a Query Engine
Using with retrieved nodes
API Reference
Edit on GitHub
Last updated on