reset-embedders
Reset embedder configurations for a Meilisearch index to restore default settings or clear customizations, enabling vector search management.
Instructions
Reset the embedders configuration for an index
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indexUid | Yes | Unique identifier of the index |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"indexUid": {
"description": "Unique identifier of the index",
"type": "string"
}
},
"required": [
"indexUid"
],
"type": "object"
}
Implementation Reference
- src/tools/vector-tools.ts:113-122 (handler)The handler function for the 'reset-embedders' tool. It sends a DELETE request to the Meilisearch API to reset the embedders configuration for the specified index.async ({ indexUid }) => { try { const response = await apiClient.delete(`/indexes/${indexUid}/settings/embedders`); return { content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } }
- src/tools/vector-tools.ts:110-112 (schema)The input schema for the 'reset-embedders' tool, defining the required 'indexUid' parameter.{ indexUid: z.string().describe("Unique identifier of the index"), },
- src/tools/vector-tools.ts:108-123 (registration)The server.tool() call that registers the 'reset-embedders' tool, including its name, description, schema, and handler."reset-embedders", "Reset the embedders configuration for an index", { indexUid: z.string().describe("Unique identifier of the index"), }, async ({ indexUid }) => { try { const response = await apiClient.delete(`/indexes/${indexUid}/settings/embedders`); return { content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } } );
- src/index.ts:68-68 (registration)The call to registerVectorTools(server) in the main server initialization, which registers the 'reset-embedders' tool among others.registerVectorTools(server);