Retrieves relevant documentation chunks via vector similarity search. Computes embeddings and queries Supabase match_documents RPC.
| 日期 | 适应度 | 安全分 | 调用数 |
|---|---|---|---|
| 3月17日 | 0.5370 | 0.89 | 1 |
{
"type": "object",
"required": [
"question"
],
"properties": {
"topK": {
"type": "number",
"default": 5,
"description": "Number of results to return (default 5, max 20)"
},
"question": {
"type": "string",
"description": "Natural language question to search for"
}
}
} {
"type": "object",
"required": [
"question",
"chunks"
],
"properties": {
"chunks": {
"type": "array",
"items": {
"type": "object",
"required": [
"content",
"source",
"score"
],
"properties": {
"score": {
"type": "number"
},
"source": {
"type": "string"
},
"content": {
"type": "string"
},
"heading": {
"type": "string"
}
}
}
},
"question": {
"type": "string"
}
}
}