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

[FEATURE] 上传知识文件的格式 #3906

Closed
scorpionfeng opened this issue Apr 27, 2024 · 3 comments
Closed

[FEATURE] 上传知识文件的格式 #3906

scorpionfeng opened this issue Apr 27, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@scorpionfeng
Copy link

功能描述 / Feature Description
在'知识库管理',功能中上传'上传知识文件'时,上传文件内容的格式是什么样的? 如果是json文件,应该是使用什么样的属性?
目前有文件 [{'prompt':'test',message:'answer'}] 这样的内容格式的json文件,上传提示失败,请问要上传的文件的格式是什么样的?
并给出示例模板

@scorpionfeng scorpionfeng added the enhancement New feature or request label Apr 27, 2024
Copy link

dosubot bot commented Apr 27, 2024

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


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.

@scorpionfeng
Copy link
Author

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"
}

@zRzRzRzRzRzRzR zRzRzRzRzRzRzR self-assigned this May 5, 2024
@zRzRzRzRzRzRzR
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants