ComfyUI Node
Ollama Embed
Generate text embeddings using an Ollama embedding model. Returns a JSON array of embedding vectors.
Ollama Embed
- embeddings_json
◄urlhttp://127.0.0.1:11434►
◄model▾►
◄input►
◄split_linesfalse►
◄truncatetrue►
CategoryOllama
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| url | STRING | http://127.0.0.1:11434 | URL of the Ollama server. |
| model | COMBO | Embedding model to use (e.g. nomic-embed-text, mxbai-embed-large). | |
| input | STRING | Text to embed. For multiple inputs, separate with a newline and enable split_lines. | |
| split_lines | BOOLEAN | false | If enabled, splits input on newlines and embeds each line separately (batch embedding). |
| truncate | BOOLEAN | true | Truncate input to the model's context length if it exceeds it. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| embeddings_json | STRING | — |