You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sem_extract operator fails with Ollama/Phi-3 model due to LiteLLM transformation error
Description
When trying to use the sem_extract operator with an Ollama-hosted Phi-3 model, the operation fails with a KeyError in LiteLLM's response transformation layer. This appears to be due to assumptions about function calling capabilities that may not be supported by all models.
Environment
LOTUS version: latest
Python version: 3.10
LiteLLM version: latest
Model: phi3:3.8b-mini-128k-instruct-q3_K_M via Ollama
Hey @sekharmalla I opened an issue with the LiteLLM folks. I was able to get your example to work with a one line change to the LiteLLM codebase so lets see what the maintainers say.
@sidjha1 thanks so much. Appreciate for the support. My and my colleague working on building a search engine for a sample database using lotus. When we test given examples they are working very well but when working with actual database as data frame we are not seeing expected results. Would really appreciate if provided any resources/Documentation other than the ones we have or if possible for a google meet where we can explain our business use case. Thanks for the hard work the team has been doing.
sem_extract operator fails with Ollama/Phi-3 model due to LiteLLM transformation error
Description
When trying to use the sem_extract operator with an Ollama-hosted Phi-3 model, the operation fails with a KeyError in LiteLLM's response transformation layer. This appears to be due to assumptions about function calling capabilities that may not be supported by all models.
Environment
Steps to Reproduce
Error Message
The text was updated successfully, but these errors were encountered: