Archon icon indicating copy to clipboard operation
Archon copied to clipboard

Feature request to use a self-hosted embedding model

Open tinuva opened this issue 4 months ago • 6 comments

Would it be possible to use a self-hosted embedding mode?

Something along the lines of: ghcr.io/huggingface/text-embeddings-inference

Where you can provide a model like: sentence-transformers/all-MiniLM-L6-v2

Let me know if this is a silly idea, but I would like to use a self hosted model without being forced to use openai/gemini, then at the same time the chat model can be from something behind litellm.

tinuva avatar Aug 19 '25 12:08 tinuva

Hey, this should already work with ollama. Did not test with the model you mentioned but this would be the configs:

  1. Setting LLM_PROVIDER=ollama (coming soon => but works basiscally already)
  2. Setting EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2 (or any other model, not sure if you need to pull it yourself first at the moment)
  3. Running the embedding service on localhost:11434

leex279 avatar Aug 19 '25 22:08 leex279

@tazmon95 Assigned to you as i think your PR will solve this?

Wirasm avatar Aug 20 '25 19:08 Wirasm

@Wirasm What I'm working on will enable selfhosted Ollama embedding models, but not directly from a Hugging Face model hosted locally. I'd put this in the backlog right now

tazmon95 avatar Aug 21 '25 14:08 tazmon95

I can confirm successful use of ollama, at least for embedding using nomic model. But the documentation to that regard is quite scarce. I had to use an openai compatible url: http://<ollama_url>:11434/v1 where the v1 is mandatory.

vlebourl avatar Aug 27 '25 09:08 vlebourl

@vlebourl a bigger update for Ollama is coming in the next days and better docs. @tazmon95 please take a look so cover this if not, but I guess it is :)

leex279 avatar Aug 27 '25 10:08 leex279

looking forward to it as I'm dirty patching the code on my end to make it semi work for now 😅. Do you have a feature branch to test somewhere and report bugs if it can help?

vlebourl avatar Aug 28 '25 07:08 vlebourl