Repository navigation
Conversation
JumpLink
marked this pull request as draft
March 7, 2026 08:42
JumpLink
marked this pull request as ready for review
March 7, 2026 09:12
JumpLink
force-pushed
the
feat/custom-reranker-provider
branch
from
July 28, 2026 15:42
7a009ed to
f6f00fc
Compare
This comment was marked as outdated.
This comment was marked as outdated.
|
To use Codex here, create a Codex account and connect to github. |
Closes LibreChat-AI#12119 Companion to LibreChat-AI/agents#66, which adds the `custom` reranker itself. This is the config side so it can be selected from `librechat.yaml`: ```yaml webSearch: rerankerType: 'custom' customRerankerApiUrl: 'https://api.scaleway.ai/v1/rerank' customRerankerApiKey: '${SCALEWAY_API_KEY}' customRerankerModel: 'qwen3-embedding-8b' ``` - `RerankerTypes.CUSTOM` plus the three fields on the web-search schema, defaulting to `${CUSTOM_RERANKER_*}` placeholders like the existing providers - `webSearchAuth.rerankers.custom` requires URL and model, treats the API key as optional - some self-hosted rerank endpoints (vLLM, TEI) need no auth - `loadWebSearchConfig` passes them through - `customRerankerApiKey` is registered in the admin secret registry with its `customRerankerApiKeyPreview` companion, so it is encrypted at rest and redacted on read like every other web-search key Motivation: any service speaking Jina's `/v1/rerank` shape (Scaleway Generative APIs, vLLM, LiteLLM, TEI) is usable as a reranker, but the provider list and model names are hardcoded today, and `infinity` is still a placeholder returning the default ranking. Verified end to end against Scaleway with `qwen3-embedding-8b`. Drive-by: `RerankerTypes` was imported in `app/web.ts` but never used, which fails the repo's `--max-warnings=0` lint on changed files; removed. (Keying the map off the enum instead would break `isolatedDeclarations`.) Signed-off-by: JumpLink <pascal@artandcode.studio>
JumpLink
force-pushed
the
feat/custom-reranker-provider
branch
from
August 14, 2026 09:33
db2ebf5 to
80374dd
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: add custom reranker provider support in web search config
Closes #12119
Companion to LibreChat-AI/agents#66, which adds the
customreranker itself.This is the config side so it can be selected from
librechat.yaml:RerankerTypes.CUSTOMplus the three fields on the web-search schema,defaulting to
${CUSTOM_RERANKER_*}placeholders like the existing providerswebSearchAuth.rerankers.customrequires URL and model, treats the API key asoptional - some self-hosted rerank endpoints (vLLM, TEI) need no auth
loadWebSearchConfigpasses them throughMotivation: any service speaking Jina's
/v1/rerankshape (Scaleway GenerativeAPIs, vLLM, LiteLLM, TEI) is usable as a reranker, but the provider list and
model names are hardcoded today, and
infinityis still a placeholder returningthe default ranking. Verified end to end against Scaleway with
qwen3-embedding-8b.Drive-by:
RerankerTypeswas imported inapp/web.tsbut never used, whichfails the repo's
--max-warnings=0lint on changed files; removed. (Keying themap off the enum instead would break
isolatedDeclarations.)