diff --git a/libs/community/langchain_community/retrievers/llama_index.py b/libs/community/langchain_community/retrievers/llama_index.py index 49d7e242e37..9106c058d75 100644 --- a/libs/community/langchain_community/retrievers/llama_index.py +++ b/libs/community/langchain_community/retrievers/llama_index.py @@ -30,7 +30,7 @@ class LlamaIndexRetriever(BaseRetriever): ) index = cast(BaseGPTIndex, self.index) - response = index.query(query, response_mode="no_text", **self.query_kwargs) + response = index.query(query, **self.query_kwargs) response = cast(Response, response) # parse source nodes docs = []