This commit is contained in:
Daniel Persson 2025-12-15 19:49:37 +00:00 committed by GitHub
commit 0c60f78807
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 12 additions and 2 deletions

View file

@ -76,6 +76,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

@ -1316,6 +1316,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

@ -120,7 +120,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

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

View file

@ -12,7 +12,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: { },
},
};