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

[Question]: TypeError: 'Knowledgebase' object is not subscriptable #3604

Open
x303597316 opened this issue Nov 23, 2024 · 2 comments
Open

[Question]: TypeError: 'Knowledgebase' object is not subscriptable #3604

x303597316 opened this issue Nov 23, 2024 · 2 comments
Labels
question Further information is requested

Comments

@x303597316
Copy link

Describe your problem

2024-11-23 16:14:20,754 INFO 21 172.25.0.6 - - [23/Nov/2024 16:14:20] "GET /v1/chunk/knowledge_graph?doc_id=46d3f5ada7d711ef83680242ac190006 HTTP/1.1" 200 -
INFO:werkzeug:172.25.0.6 - - [23/Nov/2024 16:14:20] "GET /v1/chunk/knowledge_graph?doc_id=46d3f5ada7d711ef83680242ac190006 HTTP/1.1" 200 -
2024-11-23 16:14:20,757 INFO 21 172.25.0.6 - - [23/Nov/2024 16:14:20] "GET /v1/user/info HTTP/1.1" 200 -
INFO:werkzeug:172.25.0.6 - - [23/Nov/2024 16:14:20] "GET /v1/user/info HTTP/1.1" 200 -
2024-11-23 16:14:20,759 ERROR 21 'Knowledgebase' object is not subscriptable
Traceback (most recent call last):
File "/ragflow/api/apps/chunk_app.py", line 53, in list_chunk
kb_ids = KnowledgebaseService.get_kb_ids(tenant_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ragflow/.venv/lib/python3.12/site-packages/peewee.py", line 3128, in inner
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/ragflow/api/db/services/knowledgebase_service.py", line 76, in get_kb_ids
kb_ids = [kb["id"] for kb in kbs]
~~^^^^^^
TypeError: 'Knowledgebase' object is not subscriptable
ERROR:ragflow:'Knowledgebase' object is not subscriptable

@x303597316 x303597316 added the question Further information is requested label Nov 23, 2024
@x303597316
Copy link
Author

infiniflow/ragflow:dev-slim 版本中发现

@KevinHuSh
Copy link
Collaborator

It's already fixed in the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants