[GH-ISSUE #1608] Is it possible to use ollama to generate embeddings? #891

Closed
opened 2026-04-12 10:33:46 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @almosnow on GitHub (Dec 19, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1608

Sorry about the noob-ish question but am not familiar with how ollama does things.

I have a bunch of text snippets that I'd like to generate embeddings for, could ollama (any model, idc at tje moment) be used for this?

Originally created by @almosnow on GitHub (Dec 19, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1608 Sorry about the noob-ish question but am not familiar with how ollama does things. I have a bunch of text snippets that I'd like to generate embeddings for, could ollama (any model, idc at tje moment) be used for this?
Author
Owner

@easp commented on GitHub (Dec 19, 2023):

There is an embeddings endpoint in the API: https://github.com/jmorganca/ollama/blob/main/docs/api.md#generate-embeddings

Note that Ollama (and llama.cpp) doesn't support many/most models designed for embedding use.

<!-- gh-comment-id:1863226128 --> @easp commented on GitHub (Dec 19, 2023): There is an embeddings endpoint in the API: https://github.com/jmorganca/ollama/blob/main/docs/api.md#generate-embeddings Note that Ollama (and llama.cpp) doesn't support many/most models _designed for_ embedding use.
Author
Owner

@almosnow commented on GitHub (Dec 19, 2023):

Awesome, thanks. Idk how I missed that :P

<!-- gh-comment-id:1863396672 --> @almosnow commented on GitHub (Dec 19, 2023): Awesome, thanks. Idk how I missed that :P
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#891