Skip to content

Problem with Knowledge Base Queries after Updating to Dify 1.2.0 #18916

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

Open
5 tasks done
MitraSafarinejad opened this issue Apr 27, 2025 · 2 comments
Open
5 tasks done
Assignees
Labels
🐞 bug Something isn't working 👻 feat:rag Embedding related issue, like qdrant, weaviate, milvus, vector database.

Comments

@MitraSafarinejad
Copy link

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.2.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

After updating Dify to version 1.2, I'm encountering the following error when querying my existing knowledge bases:

Error during query: [{'locations': [{'column': 6, 'line': 1}], 'message': 'Cannot query field "Vector_index_b1df11d8_9f64_4c01_be16_60bc3b8d7d1f_Node" on type "GetObjectsObj".', 'path': None}];
I discovered that this issue can be resolved by changing the Embedding Model. However, I have a large number of documents already uploaded, and manually updating the embedding model for each document or knowledge base is not feasible.

✔️ Expected Behavior

Queries to existing knowledge bases should continue working normally after updating to version 1.2 without needing to manually change embedding models or reprocess documents.

❌ Actual Behavior

Queries to existing knowledge bases fail with the following error:

Error during query: [{'locations': [{'column': 6, 'line': 1}], 'message': 'Cannot query field "Vector_index_b1dfd8_9f64_4c01_be16_60bc8d7d1f_Node" on type "GetObjectsObj".', 'path': None}]; Error during query: [{'locations': [{'column': 6, 'line': 1}], 'message': 'Cannot query field "Vector_index_b1dfd8_9f64_4c01_be16_60bc8d7d1f_Node" on type "GetObjectsObj".', 'path': None}]

@dosubot dosubot bot added 🐞 bug Something isn't working 👻 feat:rag Embedding related issue, like qdrant, weaviate, milvus, vector database. labels Apr 27, 2025
Copy link

dosubot bot commented Apr 27, 2025

I found two similar closed issues related to your problem:

  1. Dify1.2 knowledge base cannot be retrieved - No solution found in the comments [1].
  2. Embedding模型不生效 - No solution found in the comments [2].

Regarding your issue, the error "Cannot query field 'Vector_index_b1df11d8_9f64_4c01_be16_60bc3b8d7d1f_Node' on type 'GetObjectsObj'" can be resolved by waiting for the background re-indexing process to complete. Unfortunately, there is no visible indicator of progress, so patience is required. If the error persists, you may need to delete the dataset and upload it again, as the vector index needs to be rebuilt when switching between different embedding models [3].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@crazywoola
Copy link
Member

@JohnJyong Can you take a look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 👻 feat:rag Embedding related issue, like qdrant, weaviate, milvus, vector database.
Projects
None yet
Development

No branches or pull requests

3 participants