Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ export default function ApiKeyDialog({
},
},
},
{
key: RerankerTypes.SIMPLE,
label: localize('com_ui_web_search_reranker_simple'),
inputs: {},
},
];

const scraperOptions: DropdownOption[] = [
Expand Down
1 change: 1 addition & 0 deletions client/src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,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",
Expand Down
3 changes: 2 additions & 1 deletion packages/api/src/web/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions packages/data-provider/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,7 @@ export enum ScraperProviders {
export enum RerankerTypes {
JINA = 'jina',
COHERE = 'cohere',
SIMPLE = 'simple',
}

export enum SafeSearchTypes {
Expand Down
2 changes: 1 addition & 1 deletion packages/data-provider/src/types/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions packages/data-schemas/src/app/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const webSearchAuth = {
jinaApiUrl: 0 as const,
},
cohere: { cohereApiKey: 1 as const },
simple: { },
},
};

Expand Down