ragflow_retrieval
Search RAGFlow datasets to retrieve matching text chunks and their source documents, with optional filters for documents, metadata, similarity, and reranking.
Instructions
Search datasets and return the matching chunks with their exact text and source document.
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": {
"question": "<question>",
"dataset_ids": "<dataset_ids>"
},
"name": "ragflow_retrieval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, starting at 1 | |
| top_k | No | Candidates considered before reranking | |
| keyword | No | Expand the query with LLM keywords | |
| question | Yes | Query, ideally in the documents' language | |
| page_size | No | ||
| rerank_id | No | Rerank model as model_name@factory | |
| dataset_ids | Yes | Datasets to search | |
| document_ids | No | Limit the search to these documents | |
| metadata_condition | No | Metadata filter, as in ragflow_update_metadata | |
| similarity_threshold | No | ||
| vector_similarity_weight | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||