[GH-ISSUE #6496] Add option to /api/embed to not normalize embeddings #4089

Open
opened 2026-04-12 14:59:39 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @chriswolfram on GitHub (Aug 25, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6496

The old /api/embeddings endpoint does not seem to normalize embeddings. However, the new /api/embed endpoint does:

0f92b19bec/server/routes.go (L388)

This is probably the right behavior as normalized embeddings are what most people want. However, it would be nice if there were an optional argument to /api/embed where one could specify 'normalization':false.

Originally created by @chriswolfram on GitHub (Aug 25, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6496 The old /api/embeddings endpoint does not seem to normalize embeddings. However, the new /api/embed endpoint does: https://github.com/ollama/ollama/blob/0f92b19bec97198b035a7801eda14e3d48149033/server/routes.go#L388 This is probably the right behavior as normalized embeddings are what most people want. However, it would be nice if there were an optional argument to /api/embed where one could specify `'normalization':false`.
GiteaMirror added the feature requestapi labels 2026-04-12 14:59: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#4089