Embed text with Forge
embedGenerate vector representations for texts via Forge's hosted API to power semantic search, RAG, clustering, or similarity; use query/document input types.
Instructions
Generate vector embeddings for one or more texts with Forge (Voxell's hosted embedding API). Use it to turn text into vectors for semantic search, RAG, clustering, or similarity. Set input_type='query' for search queries and 'document' for content you index. Choose model by quality/cost: turbo (1024d, fast, default) -> pro (2560d) -> ultra (4096d, highest quality). Optionally set dim to truncate (Matryoshka, re-normalized).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dim | No | Truncate to N dimensions (Matryoshka, re-normalized) — fewer dims = smaller, cheaper vectors. Omit for the model's native size. | |
| input | Yes | A text, or array of texts, to embed. | |
| model | No | Model by quality/cost: turbo (1024d, fast, default), pro (2560d), ultra (4096d, highest quality). | |
| input_type | No | 'query' applies a retrieval prefix; 'document' is raw. Default 'document'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dim | Yes | ||
| count | Yes | ||
| model | Yes | ||
| tokens | Yes | ||
| embeddings | Yes |