Difficulties when running local LLM backends
Tried raglite chainlit with a few models via Ollama:
OLLAMA_API_BASE=http://ollama:11434
CHAINLIT_HOST=0.0.0.0
raglite
--llm ollama/llama3.1:8b
--embedder ollama/mxbai-embed-large:latest
chainlit
I tried following models:
ollama/llama3.1:8bollama/llama3.2:3b-instruct-q8_0ollama/mistral-small
Ollama context was set to 8k in all instances. All replies in chainlit UI were formatted like this:
Debugging further:
- Installed version of
litellmis1.56despite1.60is set in the pyproject- Raglite installed with
raglite[chainlit,pandoc,ragas]
- Raglite installed with
- It appears that litellm has issues with tool calls when using
ollamaandollama_chatprovider with streaming enabled - When trying to use Ollama via OpenAI-compatible adapter in litellm - the latter can't serve
get_emebedding_dimandget_context_sizefrom_litellm - Using
openrouter/openai/gpt-4ocalls tools as intended
So, it doesn't appear there's a way to use RAGLite with a local Ollama for now
Thanks for reporting this @av! We'll investigate and see what the best way to resolve this is.
Upstream issue: https://github.com/BerriAI/litellm/issues/11104
Follow-up upstream issue: https://github.com/BerriAI/litellm/issues/11262
I verified that this was fixed by https://github.com/BerriAI/litellm/pull/11528, which is part of yesterday's LiteLLM v1.72.3 release. Example usage: raglite --llm ollama_chat/qwen3:8b chainlit (you may need to use /nothink to disable Qwen3's thinking).
You can expect a major v1.0 release this evening or tomorrow morning!
Update: we released RAGLite v1.0 yesterday!
This is still happening for me, using @av's Dockerfile