BasicRunPipeline
BasicRunPipeline Class Documentation
Overview
The BasicRunPipeline
class handles the run process of document question answering. It is simple pipeline for beginners. It retrieves passages from a retrieval module, runs a Language Model (LLM) module to get an answer, and returns the answer and the retrieved passages.
Usage
Initialize
The BasicRunPipeline
class is initialized with the following parameters:
retrieval
: Retrieval module to retrieve passages.llm
: LLM module to get answer. If not provided, a defaultBasicLLM
module is used.
Run
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.
Last updated