RerankRunPipeline
Last updated
Last updated
The RerankRunPipeline
class is made for using reranker easily. To use this class, you can use easily without extra work. For further information about reranker, please check out Reranker documentation.
In this pipeline, first retrieval retrieves passages. Then reranker reranks retrieved passages. Finally, put retrieved passages to LLM model.
To create an instance of RerankRunPipeline
, you need to provide an instance of a class and class. Optionally, you can specify which model you want to use.
The run
variable is runnable of Langchain LCEL. So you can use all method for running pipeline, like invoke
, stream
, batch
, and so on.
If you want to get used passages or relevance scores of retrieved passages, you can use get_passages_and_run
method.