ask_rag_filtered
Query the RAG knowledge base using filters to find specific document types, content structures, or
Instructions
向 RAG 知识库提问,并使用特定过滤器聚焦搜索。 使用场景:
仅搜索 PDF 文档:file_type=".pdf"
查找包含表格的文档:min_tables=1
查找结构良好的文档:min_titles=5
搜索增强处理的文档:processing_method="unstructured_enhanced"
参数: query: 要向知识库提出的问题或查询。 file_type: 按文件类型过滤(例如 ".pdf", ".docx", ".txt")。 min_tables: 文档必须包含的最小表格数量。 min_titles: 文档必须包含的最小标题数量。 processing_method: 按处理方法过滤(例如 "unstructured_enhanced", "markitdown")。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "ask_rag_filtered"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| file_type | No | ||
| min_tables | No | ||
| min_titles | No | ||
| processing_method | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |