[GH-ISSUE #7858] Can you make the normalize optional for embeddings? #30785

Closed
opened 2026-04-22 10:41:39 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @BeNhNp on GitHub (Nov 27, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7858

What is the issue?

https://ollama.com/library/nomic-embed-text:v1.5

curl http://localhost:11434/api/embeddings -d '{
  "model": "nomic-embed-text",
  "prompt": "The sky is blue because of Rayleigh scattering"
}'

access "http://127.0.0.1:%d/embedding" is ok, ollama_llama_server returns the right embedding, while the /api/embed returns a different embedding, can you make the normalize optional?

OS

Linux

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @BeNhNp on GitHub (Nov 27, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7858 ### What is the issue? https://ollama.com/library/nomic-embed-text:v1.5 ```shell curl http://localhost:11434/api/embeddings -d '{ "model": "nomic-embed-text", "prompt": "The sky is blue because of Rayleigh scattering" }' ``` access "http://127.0.0.1:%d/embedding" is ok, [ollama_llama_server](https://github.com/ollama/ollama/blob/main/llm/server.go#L894) returns the right embedding, while the `/api/embed` returns a different embedding, can you make the `normalize` optional? ### OS Linux ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-22 10:41:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#30785