Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: TypeError: ESConnection.search() got an unexpected keyword argument 'idxnm' #3151

Closed
1 task done
polar99 opened this issue Nov 1, 2024 · 2 comments
Closed
1 task done
Assignees
Labels
bug Something isn't working

Comments

@polar99
Copy link

polar99 commented Nov 1, 2024

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch name

main

Commit ID

33e5e5d

Other environment information

Hardware parameters: Tesla T4
OS type: Ubuntu 20.04 (Host machine)

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

1. Following official guide to start RAGFlow with docker.
2. Start a chat with a Knowledge base which chunked by Knowledge Graph.
3. run 
docker logs -f ragflow-server
showing the following logs.

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'

@polar99 polar99 added the bug Something isn't working label Nov 1, 2024
@SummerDream233
Copy link

Hello. I want to enquiry when the bug can be fixed? Because it is really important.
In the current version, all functions which involve the knowledge graph-based construction method do not work, including the offical demo webset (https://ragflow.io/), api and chat interfance.
If possible, I hope that you can fix the bug as soon as possible. It is very IMPORTANT for me!
Thank you for your time and understanding!

KevinHuSh added a commit that referenced this issue Nov 4, 2024
### What problem does this PR solve?

#3151

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
@KevinHuSh
Copy link
Collaborator

Pull the dev version of docker.

jhaiq pushed a commit to jhaiq/ragflow that referenced this issue Nov 30, 2024
### What problem does this PR solve?

infiniflow#3151

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants