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] [GraphRAG] DataNotMatchException: (code=1, message=The data doesn't match with schema fields, expect 4 list, got 20) #2324

Open
3 of 15 tasks
xuxl2024 opened this issue Jan 24, 2025 · 1 comment
Labels
bug Something isn't working Waiting for reply

Comments

@xuxl2024
Copy link

xuxl2024 commented Jan 24, 2025

Search before asking

  • I had searched in the issues and found no similar issues.

Operating system information

Linux

Python version information

=3.11

DB-GPT version

main

Related scenes

  • Chat Data
  • Chat Excel
  • Chat DB
  • Chat Knowledge
  • Model Management
  • Dashboard
  • Plugins

Installation Information

Device information

GPU
GPU Count:1
gpu memory:24G

Models information

LLM_MODEL: qwen2.5-7b-instruct
EMBEDDING_MODEL:m3e-base

What happened

使用milvus作为向量库,新建知识图谱或者向量类型的知识库时,上传第一个文件后,进行文件同步时报错DataNotMatchException: (code=1, message=The data doesn't match with schema fields, expect 4 list, got 20);
目前测试的情况是只有第一个文件的第一次同步会报错。

What you expected to happen

只有新建的知识库在上传第一个文件进行同步时才会提示以上错误,初步定位到文件milvus_store的init_schema_and_load方法中,成员变量self.fields的字段长度应该是4,但是以上报错是因为它的长度变为20,其实是4个字段重复出现了5次,导致总共是20次,看起来像是线程不安全导致的问题

How to reproduce

1.构建一个知识图谱/向量类型的知识库;
2.上传一个文件;
3.选择上传的文件,点击"同步"

Additional context

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@xuxl2024 xuxl2024 added bug Something isn't working Waiting for reply labels Jan 24, 2025
@Aries-ckt
Copy link
Collaborator

which milvus server version you deploy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Waiting for reply
Projects
None yet
Development

No branches or pull requests

2 participants