[GH-ISSUE #9417] Website example broken #52652

Closed
opened 2026-04-28 23:57:35 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @axkibe on GitHub (Feb 28, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/9417

Is this the right place for website things?

The example given here does not work:
https://ollama.com/blog/embedding-models

  query_embeddings=[response["embedding"]],

should IMO be:

  query_embeddings=[response["embeddings"]],

I still get tough
ValueError: Expected embeddings to be a list of floats or ints, a list of lists, a numpy array, or a list of numpy arrays, got [[[ ...

Which I dont know how to fix.

Originally created by @axkibe on GitHub (Feb 28, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/9417 Is this the right place for website things? The example given here does not work: https://ollama.com/blog/embedding-models ``` query_embeddings=[response["embedding"]], ``` should IMO be: ``` query_embeddings=[response["embeddings"]], ``` I still get tough ```ValueError: Expected embeddings to be a list of floats or ints, a list of lists, a numpy array, or a list of numpy arrays, got [[[ ...``` Which I dont know how to fix.
GiteaMirror added the ollama.com label 2026-04-28 23:57:35 -05:00
Author
Owner

@hoyyeva commented on GitHub (Feb 28, 2025):

hey @axkibe thanks for bringing this to our attention! It’s now fixed in production. Appreciate it!

<!-- gh-comment-id:2691649077 --> @hoyyeva commented on GitHub (Feb 28, 2025): hey @axkibe thanks for bringing this to our attention! It’s now fixed in production. Appreciate it!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#52652