from_llm(
cls,
retriever: BaseRetriever,
llm: BaseLLM,
prompt: BasePromptTemplate = DEFAULT_QUERY_PROMPT| Name | Type | Description |
|---|---|---|
retriever* | BaseRetriever | |
llm* | BaseLLM | |
prompt | BasePromptTemplate | Default: DEFAULT_QUERY_PROMPT |
Initialize from llm using default template.
The prompt used here expects a single input: question
retriever to query documents from
llm for query generation using DEFAULT_QUERY_PROMPT
prompt template for query generation