Repository navigation
Add support for Simple ReRanker or similar locally hosted version #9102
Replies: 5 comments 8 replies
|
Thanks @kalaspuffar we were thinking of adding something like to the RAG API, feel free to make a PR there: |
|
@danny-avila I've now pushed 3 PRs with changes in rag_api, agents, and Librechat LibreChat-AI/rag-api#190 Also had to do a strange change to get my respository to work Might be something that is solved later. Realized that I run everything in Node 22 so I'll look into switching to Node 20. |
|
@kalaspuffar thank you very much for your work! I would be very happy if the feature were merged, as we ourselves are interested in hosting as much as possible ourselves and are now at the same stage with regard to web search, where only the reranker is still missing. Is assistance required here? For example, testing of the PRs for this? |
|
+1 AnswerDotAI's rerankers library which provides: 1.)Unified API for multiple backends 2.)Lightweight dependencies and easy installation 3.)Community maintained with active development |
|
Search reranking can be a fairly low-compute task and CPU-friendly, so adding local reranker support would make LibreChat an even stronger open-source stack by removing the need for an external provider. In my case, my stack already uses a cross-encoder reranker for a custom RAG pipeline and it runs without any trouble on CPU alone with a dozen users. |
Uh oh!
There was an error while loading. Please reload this page.
I've been playing around with locally hosting a version of LibreChat, and to get it really useful, a web search feature was a requirement. I've hosted SearXNG and FireCrawl locally. Also ran Jina to do the reranking. But I could not find a locally hosted open source solution for reranking. So I set out to create one.
I found this repository:
https://github.com/AnswerDotAI/rerankers
And created a small wrapper Docker image api for it:
https://github.com/kalaspuffar/simple-reranker
It should pretty much be a slot-in solution alongside Jina and Cohere.
This was the code I tried with and never got to work:
I'm willing to help out in the development process and share any of my work with the community. What you have done so far is great, and I'm looking forward to working with you.
Best regards
Daniel
All reactions