This commit is contained in:
Daniel Persson 2026-04-04 23:03:05 +00:00 committed by GitHub
commit b22403083b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 12 additions and 2 deletions

View file

@ -81,6 +81,7 @@
- Search the internet and retrieve relevant information to enhance your AI context
- Combines search providers, content scrapers, and result rerankers for optimal results
- **Customizable Jina Reranking**: Configure custom Jina API URLs for reranking services
- Run local reranking with open source models through the rag_api.
- **[Learn More →](https://www.librechat.ai/docs/features/web_search)**
- 🪄 **Generative UI with Code Artifacts**:

View file

@ -117,6 +117,11 @@ export default function ApiKeyDialog({
},
},
},
{
key: RerankerTypes.SIMPLE,
label: localize('com_ui_web_search_reranker_simple'),
inputs: {},
},
];
const scraperOptions: DropdownOption[] = [

View file

@ -1558,6 +1558,7 @@
"com_ui_web_search_reranker_jina": "Jina AI",
"com_ui_web_search_reranker_jina_key": "Get your Jina API key",
"com_ui_web_search_reranker_jina_url_help": "Learn about Jina Rerank API",
"com_ui_web_search_reranker_simple": "Simple",
"com_ui_web_search_scraper": "Scraper",
"com_ui_web_search_scraper_firecrawl": "Firecrawl API",
"com_ui_web_search_scraper_firecrawl_key": "Get your Firecrawl API key",

View file

@ -151,7 +151,8 @@ export async function loadWebSearchAuth({
}
}
if (requiredKeys.length === 0) continue;
const simpleReRankerChosen = specificService && service === 'simple';
if (!simpleReRankerChosen && requiredKeys.length === 0) continue;
const requiredAuthFields = extractWebSearchEnvVars({
keys: requiredKeys,

View file

@ -912,6 +912,7 @@ export enum ScraperProviders {
export enum RerankerTypes {
JINA = 'jina',
COHERE = 'cohere',
SIMPLE = 'simple',
}
export enum SafeSearchTypes {

View file

@ -11,7 +11,7 @@ export enum DATE_RANGE {
}
export type SearchProvider = 'serper' | 'searxng';
export type RerankerType = 'infinity' | 'jina' | 'cohere' | 'none';
export type RerankerType = 'infinity' | 'jina' | 'cohere' | 'simple' | 'none';
export interface Highlight {
score: number;

View file

@ -31,6 +31,7 @@ export const webSearchAuth = {
jinaApiUrl: 0 as const,
},
cohere: { cohereApiKey: 1 as const },
simple: { },
},
};