Feat: Metadata in documents for improve the prompt #3690 (#4462)

### What problem does this PR solve?

Feat: Metadata in documents for improve the prompt #3690

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-01-13 17:13:37 +08:00
committed by GitHub
parent 46c52d65b7
commit d8346cb7a6
12 changed files with 270 additions and 13 deletions

View File

@ -31,6 +31,7 @@ const {
document_infos,
upload_and_parse,
listTagByKnowledgeIds,
setMeta,
} = api;
const methods = {
@ -55,7 +56,7 @@ const methods = {
url: kb_list,
method: 'get',
},
// 文件管理
// document manager
get_document_list: {
url: get_document_list,
method: 'get',
@ -100,6 +101,10 @@ const methods = {
url: document_infos,
method: 'post',
},
setMeta: {
url: setMeta,
method: 'post',
},
// chunk管理
chunk_list: {
url: chunk_list,