mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-05 19:17:56 -05:00
feat: add Staan as a native web search provider (#30138)
European deployments that need EU data residency have no hosted web search option out of the box: every plug-and-play provider shipped today is US-based, and the only sovereign alternative is self-hosting SearXNG, which means running and maintaining that infrastructure yourself. Staan (staan.ai) is a European search API with EU data residency, so adding it gives those deployments a drop-in choice. It is configured like any other provider, through the admin UI or STAAN_API_KEY, STAAN_MARKET and STAAN_MAX_SNIPPETS. Market sets the region and language of the results and defaults to en-us. Max snippets asks Staan to fetch each result page and return semantically scored chunks of it, which get merged into that result's snippet so retrieval has more to work with; leaving it at 0 uses the plain search endpoint. Wired the same way as Tavily and Exa, with domain filtering going through the shared get_filtered_results. Requested in #26006.
This commit is contained in:
1 parent
655337f7bf
commit
9ee810ad09
5 files changed
+149
No files matched your search
@@ -36,6 +36,7 @@
|
||||
'serpapi',
|
||||
'duckduckgo',
|
||||
'tavily',
|
||||
'staan',
|
||||
'jina',
|
||||
'bing',
|
||||
'exa',
|
||||
@@ -578,6 +579,50 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
{:else if webConfig.WEB_SEARCH_ENGINE === 'staan'}
|
||||
<div class="mb-2.5 flex w-full flex-col">
|
||||
<div>
|
||||
<div class=" self-center text-xs text-gray-600 dark:text-gray-400 mb-1">
|
||||
{$i18n.t('Staan API Key')}
|
||||
</div>
|
||||
|
||||
<SensitiveInput
|
||||
variant="settings"
|
||||
placeholder={$i18n.t('Enter Staan API Key')}
|
||||
bind:value={webConfig.STAAN_API_KEY}
|
||||
/>
|
||||
</div>
|
||||
<AdminSettingField
|
||||
className="mt-1.5"
|
||||
label={$i18n.t('Market')}
|
||||
forId="staan-market"
|
||||
description={$i18n.t('Region and language of the search results, e.g. en-us.')}
|
||||
>
|
||||
<input
|
||||
id="staan-market"
|
||||
class={inputClass}
|
||||
placeholder="en-us"
|
||||
bind:value={webConfig.STAAN_MARKET}
|
||||
/>
|
||||
</AdminSettingField>
|
||||
<AdminSettingField
|
||||
className="mt-1.5"
|
||||
label={$i18n.t('Max Snippets')}
|
||||
forId="staan-max-snippets"
|
||||
description={$i18n.t(
|
||||
'Maximum extra snippets returned per result. Set to 0 to disable them.'
|
||||
)}
|
||||
>
|
||||
<input
|
||||
id="staan-max-snippets"
|
||||
class={inputClass}
|
||||
type="number"
|
||||
min="0"
|
||||
step="1"
|
||||
bind:value={webConfig.STAAN_MAX_SNIPPETS}
|
||||
/>
|
||||
</AdminSettingField>
|
||||
</div>
|
||||
{:else if webConfig.WEB_SEARCH_ENGINE === 'searchapi'}
|
||||
<div class="mb-2.5 flex w-full flex-col">
|
||||
<div>
|
||||
|
||||
Reference in new issue
Block a user