mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-20 06:04:41 -04:00
ollama client uses the keyword 'input' for embeddings, but Ollama 0.11.4 requires 'prompt' ? #294
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mcicognani1967 on GitHub (Aug 14, 2025).
Could it be?
I'm using ollama client 0.5.3 and latest ollama (0.11.4) for embeddings.
But the client uses the keyword 'input' that's not recognized by ollama, that returns always empty vectors.
While changing the keyword 'input' with 'prompt' make it works...
For example, testing against Ollama 0.11.4:
Invoke-RestMethod http://127.0.0.1:11435/api/embeddings -Method Post -Body (@{ model = "mxbai-embed-large:latest" input = "This is a test" } | ConvertTo-Json) -ContentType "application/json"returns empty vectors, while using 'prompt' makes it work.
The client 0.5.3 on the other side, sends packets with the 'input keyword.
As a test I made a shim, intercepting the calls, substituting 'input' with 'prompt' and it works.
Cannot understand if the problem arised with ollama server or client...