Skip to content

feat: add custom reranker provider support in web search config#12121

Open
JumpLink wants to merge 2 commits intodanny-avila:mainfrom
faktenforum:feat/custom-reranker-provider
Open

feat: add custom reranker provider support in web search config#12121
JumpLink wants to merge 2 commits intodanny-avila:mainfrom
faktenforum:feat/custom-reranker-provider

Conversation

@JumpLink
Copy link

@JumpLink JumpLink commented Mar 7, 2026

Summary

  • Add CUSTOM to RerankerTypes enum in data-provider config
  • Add customRerankerApiUrl, customRerankerApiKey, customRerankerModel fields to web search schema
  • Add custom reranker auth configuration in data-schemas
  • Update loadWebSearchConfig to handle new fields

Motivation

Enable using any Jina-compatible /v1/rerank endpoint (Scaleway, vLLM, LiteLLM, etc.) as a reranker provider with fully configurable URL, API key, and model name. The docs already mention "Planned Rerankers: Additional third-party reranking services".

Configuration

webSearch:
  rerankerType: custom
  customRerankerApiUrl: "https://api.scaleway.ai/v1/rerank"
  customRerankerApiKey: "${SCALEWAY_API_KEY}"
  customRerankerModel: "qwen3-embedding-8b"

Test plan

  • npm run build:data-provider succeeds
  • No changes needed in packages/api/src/web/web.ts (generic auth loading handles new config automatically)
  • No changes needed in handleTools.js (authResult spread passes fields through)

Depends on: danny-avila/agents#66
Relates to: #12119

Related issues:

🤖 Generated with Claude Code

Add 'custom' to RerankerTypes enum and support for customRerankerApiUrl,
customRerankerApiKey, and customRerankerModel configuration fields. This
enables using any Jina-compatible /v1/rerank endpoint (e.g. Scaleway,
vLLM, LiteLLM) as a reranker provider.

Depends on: danny-avila/agents#65

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant