continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
15.32k stars 1.15k forks source link

Text Embeddings Interface (TEI) as a Reranker #1701

Open LLukas22 opened 1 month ago

LLukas22 commented 1 month ago

Validations

Problem

TEI provides a /rerank endpoint which could be implemented as one of the rerankers, since there are currently a lot of available open source models that perform quite well such as e.g. jinaai/jina-reranker-v2-base-multilingual.

Solution

Add a simple wrapper around the defined /rerank endpoint.

sestinj commented 1 month ago

Definitely a good idea, thanks for pointing this out!