diff --git a/libs/langchain/langchain/retrievers/multi_query.py b/libs/langchain/langchain/retrievers/multi_query.py index 23ba88e2a5343..8a96c0f5fb42b 100644 --- a/libs/langchain/langchain/retrievers/multi_query.py +++ b/libs/langchain/langchain/retrievers/multi_query.py @@ -72,6 +72,8 @@ def from_llm( 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 @@ async def _aget_relevant_documents( """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 @@ def _get_relevant_documents( """Get relevant documents given a user query. Args: - question: user query + query: user query Returns: Unique union of relevant documents from all generated queries