continue icon indicating copy to clipboard operation
continue copied to clipboard

Ollama Reranker support

Open drcrallen opened this issue 1 year ago • 1 comments

Validations

  • [X] I believe this is a way to improve. I'll try to join the Continue Discord for questions
  • [X] I'm not able to find an open issue that requests the same enhancement

Problem

The docs suggest that rerankers are not supported locally. The feature is not yet available under ollama but seems to be in active development. This issue is to track / link to the ollama issues.

Solution

Related Ollama feature issue https://github.com/ollama/ollama/issues/3368 needs to be resolved, then any needed changes to Continue and the docs can be implemented.

drcrallen avatar Oct 07 '24 17:10 drcrallen

Thanks for creating this issue to track things @drcrallen ! Sounds like it's close to being merged in Ollama, excited to get this built.

We'll want to at least update these docs: https://docs.continue.dev/customize/model-providers/ollama#reranking-model

Patrick-Erichsen avatar Oct 07 '24 17:10 Patrick-Erichsen

@sestinj FYI, I've just begun working on this ticket.

malaki12003 avatar Oct 14 '24 20:10 malaki12003

Just a quick update: I'm still awaiting official support from Ollama for the Ranker feature, as well as the addition of models to test and finalize my code: https://github.com/continuedev/continue/compare/dev...malaki12003:continue:ollama-reranker?expand=1

malaki12003 avatar Oct 16 '24 03:10 malaki12003

Curious if there are any updates on this! Thanks

magiusdarrigo avatar Jan 27 '25 18:01 magiusdarrigo

@magiusdarrigo doesn't appear to be any updates on the upstream issue: https://github.com/ollama/ollama/issues/3368

Patrick-Erichsen avatar Jan 27 '25 23:01 Patrick-Erichsen

Check this out: https://ollama.com/qllama/bge-reranker-v2-m3

iomatix avatar Feb 26 '25 17:02 iomatix

@iomatix does it work? I mean, what config.json should i use to tell continue to use that one?

AlbertoSinigaglia avatar Mar 20 '25 01:03 AlbertoSinigaglia

Hi, I was wondering if there's any follow up on this. When I try to use "qllama/bge-reranker-v2-m3" provided by Ollama, the Continue VS Code extension won't allow me, issuing a warning saying "Warning: Unsupported reranking model provider found: ollama", even though I've got the BGE reranker running and have successfully used it before with OpenWebUI+Ollama.

rafaol avatar Apr 16 '25 06:04 rafaol

The same issue for me. If anyone was successful in making a right config for local embedding model and local reranker - please post it, will be very thankful.

A-Yaskevich avatar Apr 18 '25 14:04 A-Yaskevich

The same issue for me. If anyone was successful in making a right config for local embedding model and local reranker - please post it, will be very thankful.

I ended up using Text Embeddings Inference (Hugging face, https://huggingface.co/docs/text-embeddings-inference/en/index) with a local BGE reranker on my Mac. That's supported by Continue for reranking (see: https://docs.continue.dev/customize/model-roles/reranking#text-embeddings-inference).

rafaol avatar Apr 19 '25 01:04 rafaol

You can pull reranker models from hugginface by Ollama:

ollama pull hf.co./...

Shouldn't continue be able to connect to those pulled models?

Saw-mon-and-Natalie avatar Jun 06 '25 15:06 Saw-mon-and-Natalie

This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

github-actions[bot] avatar Sep 05 '25 02:09 github-actions[bot]

This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

github-actions[bot] avatar Dec 06 '25 02:12 github-actions[bot]