mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
doc[Retriever] Enhance api docs for MultiQueryRetriever
(#25035)
Enhance api docs for `MultiQueryRetriever`: - Complete missing parameters - Unify parameter name
This commit is contained in:
parent
208042e0f2
commit
02c35da445
@ -72,6 +72,8 @@ class MultiQueryRetriever(BaseRetriever):
|
||||
Args:
|
||||
retriever: retriever to query documents from
|
||||
llm: llm for query generation using DEFAULT_QUERY_PROMPT
|
||||
prompt: The prompt which aims to generate several different versions
|
||||
of the given user query
|
||||
include_original: Whether to include the original query in the list of
|
||||
generated queries.
|
||||
|
||||
@ -95,7 +97,7 @@ class MultiQueryRetriever(BaseRetriever):
|
||||
"""Get relevant documents given a user query.
|
||||
|
||||
Args:
|
||||
question: user query
|
||||
query: user query
|
||||
|
||||
Returns:
|
||||
Unique union of relevant documents from all generated queries
|
||||
@ -158,7 +160,7 @@ class MultiQueryRetriever(BaseRetriever):
|
||||
"""Get relevant documents given a user query.
|
||||
|
||||
Args:
|
||||
question: user query
|
||||
query: user query
|
||||
|
||||
Returns:
|
||||
Unique union of relevant documents from all generated queries
|
||||
|
Loading…
Reference in New Issue
Block a user