ViscondeRunPipeline
Last updated
Last updated
The ViscondeRunPipeline
class is implementation of Visconde pipeline. You can check out Visconde paper at .
Visconde pipeline perform three task: decompose, retrieve, and aggregate. It uses for answering multi-hop questions. So, it is effective to answer real-world questions that need to check out multiple passages.
To create an instance of ViscondeRunPipeline
, you need to provide an instance of a class, and llm module to generate answer. Optionally, you can specify the instance of , a custom prompt, and other options for retrieval and use passage count for generation. FYI, you can't use chat model for this pipeline. It has a default prompt for strategyQA style multi-hop questions. You need to change prompt using PromptTemplate if you want to use another few-shot prompts.
You can ask a question to the LLM model and get an answer using invoke
method. Also, you can use another LCEL's method like stream or batch as well.
If you want to get used passages or relevance scores of retrieved passages, you can use get_passages_and_run
method.