Skip to content

Commit b9f264b

Browse files
committed
docs: 移除知识库混合搜索API文档说明
1 parent 154025f commit b9f264b

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

docs/API.md

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ curl --location 'http://localhost:8080/api/v1/tenants' \
334334
| GET | `/knowledge-bases/:id` | 获取知识库详情 |
335335
| PUT | `/knowledge-bases/:id` | 更新知识库 |
336336
| DELETE | `/knowledge-bases/:id` | 删除知识库 |
337-
| GET | `/knowledge-bases/:id/hybrid-search` | 混合搜索知识库内容 |
338337
| POST | `/knowledge-bases/copy` | 拷贝知识库 |
339338

340339
#### POST `/knowledge-bases` - 创建知识库
@@ -656,51 +655,6 @@ curl --location --request DELETE 'http://localhost:8080/api/v1/knowledge-bases/b
656655
}
657656
```
658657

659-
#### GET `/knowledge-bases/:id/hybrid-search` - 混合搜索知识库内容
660-
661-
**请求**:
662-
663-
```curl
664-
curl --location --request GET 'http://localhost:8080/api/v1/knowledge-bases/kb-00000001/hybrid-search' \
665-
--header 'Content-Type: application/json' \
666-
--header 'X-API-Key: sk-vQHV2NZI_LK5W7wHQvH3yGYExX8YnhaHwZipUYbiZKCYJbBQ' \
667-
--data '{
668-
"query_text": "彗星",
669-
"vector_threshold": 0.1,
670-
"keyword_threshold": 0.1,
671-
"match_count": 1
672-
}'
673-
```
674-
675-
**响应**:
676-
677-
```json
678-
{
679-
"data": [
680-
{
681-
"id": "7d955251-3f79-4fd5-a6aa-02f81e044091",
682-
"content": "有几位后来xxxxx",
683-
"knowledge_id": "a6790b93-4700-4676-bd48-0d4804e1456b",
684-
"chunk_index": 3,
685-
"knowledge_title": "彗星.txt",
686-
"start_at": 2287,
687-
"end_at": 2760,
688-
"seq": 3,
689-
"score": 0.7402352891601821,
690-
"match_type": 2,
691-
"sub_chunk_id": null,
692-
"metadata": {},
693-
"chunk_type": "text",
694-
"parent_chunk_id": "",
695-
"image_info": "",
696-
"knowledge_filename": "彗星.txt",
697-
"knowledge_source": ""
698-
}
699-
],
700-
"success": true
701-
}
702-
```
703-
704658
<div align="right"><a href="#weknora-api-文档">返回顶部 ↑</a></div>
705659

706660
### 知识管理API

0 commit comments

Comments
 (0)