eosphoros-ai / DB-GPT

AI Native Data App Development framework with AWEL(Agentic Workflow Expression Language) and Agents
http://docs.dbgpt.cn
MIT License
13.39k stars 1.77k forks source link

[Bug]error. knowledge_document doc_tocken cannot be null #2042

Closed maco6096 closed 6 days ago

maco6096 commented 6 days ago

Search before asking

Operating system information

Linux

Python version information

=3.11

DB-GPT version

latest release

Related scenes

Installation Information

Device information

cpu

Models information

LLM: OLLAMA_PROXY : QWEN1.5-7B EMBEDING MODEL: NOMIC-TEXT

What happened

通过webui 添加Knowledge, 上传pdf, 报 一下错误: document add error (pymysql.err.IntegrityError) (1048, "Column 'doc_token' cannot be null") [SQL: INSERT INTO knowledge_document (doc_name, doc_type, doc_token, space, chunk_size, status, last_sync, content, result, vector_ids, summary, gmt_created,

What you expected to happen

流程正常

How to reproduce

  1. 新增知识库 2.添加数据源

Additional context

No response

Are you willing to submit PR?

Tsin81 commented 6 days ago

在“doc-upload-form.tsx”中的64行“doc_type: 'TEXT',”后面添加“doc_token: doc_token || '',”就行了,doc_token好像是语雀的token。BUG来的。

Aries-ckt commented 6 days ago

compare document_chunk table in dbgpt.sql and check doc_token column

maco6096 commented 6 days ago

在“doc-upload-form.tsx”中的64行“doc_type: 'TEXT',”后面添加“doc_token: doc_token || '',”就行了,doc_token好像是语雀的token。BUG来的。

谢谢, 我先把数据库的doc_tocken列改成允许null了, 现在正常了。 代码修改还是等下个版本修复问题吧。