mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Error message is not helpful when the input to a model exceeds the limit. #176
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 @gamer-mitsuha on GitHub (Dec 1, 2024).
Originally assigned to: @ParthSareen on GitHub.
Context: I tried to send chunked texts to an embedding model using Ollama and got the following error:
It was not clear what happened and I had to check the failed batch of examples and examine what happened. Eventually I was able to figure out the reason is that the chunk limit is higher than the allowed input size, and thus the server returns error for such long inputs.
I'm wondering if it's possible to produce more helpful error message in such cases?
@ParthSareen commented on GitHub (Dec 1, 2024):
Hey @gamer-mitsuha - sorry about that. Seems like the Ollama server didn't give an output back or we should have captured that. Thanks for raising - will take a look!