Authorization: Bearer ********************{
"question": "东华大学章程",
// "conversationId": "", // 可选,为空则创建新会话
"spaceId": 8, // 可选,限定检索的空间ID
// "knowledgeIds": [9, 10], // 可选,限定检索的知识列表
"topK": 5, // 最相似的K个切片,默认为5
"similarityThreshold": 0.5 // 相似度阈值,默认为0.7
}curl --location --request POST 'http://localhost:8080/api/knowledge/chat' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"question": "东华大学章程",
// "conversationId": "", // 可选,为空则创建新会话
"spaceId": 8, // 可选,限定检索的空间ID
// "knowledgeIds": [9, 10], // 可选,限定检索的知识列表
"topK": 5, // 最相似的K个切片,默认为5
"similarityThreshold": 0.5 // 相似度阈值,默认为0.7
}'{}