1.修复创建多个向量库
This commit is contained in:
@@ -85,7 +85,7 @@ curl -s http://localhost:5001/health
|
||||
知识库问答(SSE 流式返回)。
|
||||
|
||||
```bash
|
||||
echo '{"message":"三峡工程","chat_history":[]}' > /tmp/rag.json
|
||||
echo '{"message":"市场权重计算公式","chat_history":[]}' > /tmp/rag.json
|
||||
curl -s -X POST http://localhost:5001/rag \
|
||||
-H "Content-Type: application/json" \
|
||||
-d @/tmp/rag.json
|
||||
@@ -121,7 +121,7 @@ data: {"type": "finish", "answer": "完整回答", "sources": [...]}
|
||||
**带 collections 参数**:
|
||||
|
||||
```bash
|
||||
echo '{"message":"三峡工程","chat_history":[],"collections":["public_kb"]}' > /tmp/rag.json
|
||||
echo '{"message":"市场权重计算公式","chat_history":[],"collections":["dept_1_kb"]}' > /tmp/rag.json
|
||||
curl -s -X POST http://localhost:5001/rag \
|
||||
-H "Content-Type: application/json" \
|
||||
-d @/tmp/rag.json
|
||||
@@ -1375,7 +1375,7 @@ curl -s http://localhost:5001/exam/health
|
||||
curl -s -X POST http://localhost:5001/exam/generate \
|
||||
-H "Authorization: Bearer mock-token-admin" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"file_path":"public_kb/1.docx","collection":"public_kb","question_types":{"single_choice":5,"true_false":3,"fill_blank":2}}'
|
||||
-d '{"file_path":"dept_1_kb/1.docx","collection":"dept_1_kb","question_types":{"single_choice":5,"true_false":3,"fill_blank":2}}'
|
||||
```
|
||||
|
||||
**请求体**:
|
||||
@@ -1458,7 +1458,7 @@ AI 智能出题 - 自动分析文件并决定题型和数量。
|
||||
```bash
|
||||
curl -s -X POST http://localhost:5001/exam/generate-smart \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"file_path":"dept_1_kb/test.docx","collection":"dept_1_kb"}'
|
||||
-d '{"file_path":"dept_1_kb/需求分析.docx","collection":"dept_1_kb"}'
|
||||
```
|
||||
|
||||
**请求体**:
|
||||
|
||||
Reference in New Issue
Block a user