doc[Retriever] Enhance api docs for MultiQueryRetriever (#25035)

Enhance api docs for `MultiQueryRetriever`:

- Complete missing parameters
- Unify parameter name
This commit is contained in:
ZhangShenao 2024-08-05 01:56:38 +08:00 committed by GitHub
parent 208042e0f2
commit 02c35da445
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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