ollama client uses the keyword 'input' for embeddings, but Ollama 0.11.4 requires 'prompt' ? #294

Open
opened 2026-02-15 16:29:40 -05:00 by yindo · 0 comments
Owner

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...

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...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#294