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]: 'builtin_function_or_method' object is not subscriptable #3538

Open
1 task done
xllrun opened this issue Nov 20, 2024 · 0 comments
Open
1 task done

[Bug]: 'builtin_function_or_method' object is not subscriptable #3538

xllrun opened this issue Nov 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@xllrun
Copy link

xllrun commented Nov 20, 2024

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch name

graphrag

Commit ID

1

Other environment information

No response

Actual behavior

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 218, 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 304, in retrieval
sres = self.search(req, [index_name(tid) for tid in tenant_ids], kb_ids, embd_mdl, highlight)
File "/ragflow/graphrag/search.py", line 70, in search
entities = [d.get["name_kwd"] for d in ent_res_fields.values() if d.get("name_kwd")]
File "/ragflow/graphrag/search.py", line 70, in
entities = [d.get["name_kwd"] for d in ent_res_fields.values() if d.get("name_kwd")]
TypeError: 'builtin_function_or_method' object is not subscriptable

Expected behavior

No response

Steps to reproduce

When using Graphrag to chat

Additional information

No response

@xllrun xllrun added the bug Something isn't working label Nov 20, 2024
KevinHuSh added a commit that referenced this issue Nov 21, 2024
### What problem does this PR solve?

#3538

### 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

1 participant