[Bug]: TypeError: ESConnection.search() got an unexpected keyword argument 'idxnm' #3151
Closed
1 task done
Labels
bug
Something isn't working
Is there an existing issue for the same bug?
Branch name
main
Commit ID
33e5e5d
Other environment information
Actual behavior
Chunk Method:
Knowledge Graph
Error:
TypeError: ESConnection.search() got an unexpected keyword argument 'idxnm'
When chatting with a Knowledge base, it raised this error.
Expected behavior
No error when chatting
Steps to reproduce
Additional information
Traceback (most recent call last):
File "/ragflow/api/apps/conversation_app.py", line 181, in stream
for ans in chat(dia, msg, True, **req):
File "/ragflow/api/db/services/dialog_service.py", line 210, in chat
kbinfos = retr.retrieval(" ".join(questions), embd_mdl, tenant_ids, dialog.kb_ids, 1, dialog.top_n,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ragflow/rag/nlp/search.py", line 380, in retrieval
sres = self.search(req, [index_name(tid) for tid in tenant_ids], embd_mdl, highlight)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ragflow/graphrag/search.py", line 71, in search
ent_res = self.es.search(deepcopy(s), idxnm=idxnm, timeout="600s", src=src)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ESConnection.search() got an unexpected keyword argument 'idxnm'
The text was updated successfully, but these errors were encountered: