optimize_collection
Optimize a vector collection to improve query performance and reduce storage by merging segments and rebuilding the index.
Instructions
Optimize the collection (e.g., merge segments, rebuild index).
This operation improves query performance and reduces storage overhead.
Args: params (OptimizeCollectionInput): Validated input parameters containing: - collection_name (str): Collection identifier
Returns: str: Success message or error message
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": {
"params": "<params>"
},
"name": "optimize_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |