Closed maco6096 closed 6 days ago
在“doc-upload-form.tsx”中的64行“doc_type: 'TEXT',”后面添加“doc_token: doc_token || '',”就行了,doc_token好像是语雀的token。BUG来的。
compare document_chunk
table in dbgpt.sql
and check doc_token column
在“doc-upload-form.tsx”中的64行“doc_type: 'TEXT',”后面添加“doc_token: doc_token || '',”就行了,doc_token好像是语雀的token。BUG来的。
谢谢, 我先把数据库的doc_tocken列改成允许null了, 现在正常了。 代码修改还是等下个版本修复问题吧。
Search before asking
Operating system information
Linux
Python version information
DB-GPT version
latest release
Related scenes
Installation Information
[x] Installation From Source
[ ] Docker Installation
[ ] Docker Compose Installation
[ ] Cluster Installation
[ ] AutoDL Image
[ ] Other
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
Additional context
No response
Are you willing to submit PR?