embed
Generate semantic vectors from text or files with a local model to deduplicate, cluster, or find similar items. Returns raw vectors; compare with cosine similarity.
Instructions
Embed text/files with an embedding model on the local provider — for semantic dedup, clustering, or find-similar work that generation can't do. Needs an embedding model (e.g. nomic-embed-text, embeddinggemma) — check list_models capabilities. Returns raw vectors; cosine-similarity them yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | Glob pattern, e.g. 'src/**/*.ts' | |
| path | No | Single file path (read server-side — never enters your context) | |
| text | No | Inline text instead of files | |
| model | No | ||
| paths | No | Multiple file paths | |
| provider | No |