Comments (3)
The issue with the file upload in the 'Knowledge Management' section seems to be related to the format of the JSON file you're using. The system expects a JSON object, not a list of objects. Your file should be structured as follows:
{
"prompt": "test",
"message": "answer"
}
This format is required to match the meta_data
field's data type in the system's FileDocModel
. Ensure your JSON file adheres to this structure and try uploading again. If you need further assistance or have more questions, feel free to ask.
Details
Sources
- [BUG] 上传json/jsonl文件且向量化后,网页端看不到划分后的知识库并且模型找不到相应的检索知识库
- 对于QA(问答)类型的数据,再上传知识库前使用什么数据格式组织问题和答案呢?
- server/db/models/knowledge_file_model.py
- server/knowledge_base/utils.py
- server/chat/file_chat.py
- server/knowledge_base/kb_doc_api.py
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
To continue the conversation, mention @dosu.
from langchain-chatchat.
if I want to upload a group answers ,what formatter shall I support? is the below formatter right?
{
"prompt": "test",
"message": "answer"
},
{
"prompt": "test2",
"message": "answer2"
}
from langchain-chatchat.
嗯
from langchain-chatchat.
Related Issues (20)
- [BUG] 本地启动报错 HOT 4
- Langchain-Chatchat向量检索方式 HOT 3
- [FEATURE]知识增强、问题优化从而增加召回率
- [BUG] 知识问答报错:API通信遇到错误 HOT 2
- 自定义Agent问答调用知识库时返回'BaseResponse' object has no attribute 'body_iterator' HOT 5
- 本地部署模型,启动error,Register to controller报错socket.gaierror: Name or service not known HOT 2
- ollama本地或docker启动,ollama pull llama3 或deepseek-llm,在model_config.py中选择列表中加上,同时online llm中加上ollama的OLLAMA_BASE_URL (http://127.0.0.1:11434) HOT 2
- 想在使用文件对话时使用自己的提示词,想要的回答时结构化的格式输出,我在自定义提示词的时候如何写我需要结构化方式的回答? HOT 5
- 知识库问答出处显示None HOT 1
- 模型从chatglm3-6b切换到qwen-1_8B的时候对话就会报错 HOT 1
- [询问] 方舟豆包依赖pydantic和fschat冲突 HOT 2
- [BUG] 导入微调后的模型,直接没法正常输出 / Concise description of the issue HOT 1
- 是否支持导入QA问答对类型的csv文件 HOT 2
- openai_api连接本地部署的ollama模型出错 HOT 3
- 2.10版本是否支持BlueLM-7B-Chat,BlueLM-7B-Chat-32k 按默认的配置设置路径后,python startup.py -a无法启动 HOT 2
- langchain-chatchat在使用chatglm3-6b-128k本地模型启用的时候,问答bug,无论是LLM还是知识库问答还是其他模式
- 如何设置向量数据库的metadata?
- 文件比较多时,要运行几十个小时,一旦出错或者意外终止,数据库就损害了要重新生成。这里每处理100个重新保存一下 HOT 2
- Qwen1.5-14B-Chat在Langchain-Chatchat启动,长时间停止在Loading checkpoint shards: 75% HOT 4
- 运行不通,有AssertionError错误 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langchain-chatchat.