mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-03 11:47:49 +00:00
community[patch]: removing "response_mode" parameter in llama_index retriever (#18180)
- **Description:** Removing this line ```python response = index.query(query, response_mode="no_text", **self.query_kwargs) ``` to ```python response = index.query(query, **self.query_kwargs) ``` Since llama index query does not support response_mode anymore : ``` | TypeError: BaseQueryEngine.query() got an unexpected keyword argument 'response_mode'```` - **Twitter handle:** @maximeperrin_ --------- Co-authored-by: Maxime Perrin <mperrin@doing.fr>
This commit is contained in:
parent
e080281623
commit
98380cff9b
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user