[GH-ISSUE #7105] Embed list of string error. Is the /embed endpoint deprecated? #4512

Closed
opened 2026-04-12 15:26:49 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @firdausai on GitHub (Oct 5, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7105

What is the issue?

This works

curl http://localhost:11434/api/embeddings -d '{
  "model": "mxbai-embed-large",
  "prompt": "Llamas are members of the camelid family"
}'

But this does not work, returns empty list of embeds

curl http://localhost:11434/api/embed -d '{
  "model": "mxbai-embed-large",
  "prompt": ["Llamas are members","of the camelid family"]
}'

{"model":"mxbai-embed-large","embeddings":[]}%

Is the /embed endpoint not supported anymore?

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.3.10

Originally created by @firdausai on GitHub (Oct 5, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7105 ### What is the issue? This works ``` curl http://localhost:11434/api/embeddings -d '{ "model": "mxbai-embed-large", "prompt": "Llamas are members of the camelid family" }' ``` But this does not work, returns empty list of embeds ``` curl http://localhost:11434/api/embed -d '{ "model": "mxbai-embed-large", "prompt": ["Llamas are members","of the camelid family"] }' {"model":"mxbai-embed-large","embeddings":[]}% ``` Is the /embed endpoint not supported anymore? ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.3.10
GiteaMirror added the questionapi labels 2026-04-12 15:26:49 -05:00
Author
Owner

@rick-github commented on GitHub (Oct 5, 2024):

Use input not prompt for /api/embed.

<!-- gh-comment-id:2394950266 --> @rick-github commented on GitHub (Oct 5, 2024): Use `input` not `prompt` for `/api/embed`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#4512