mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
Fix: Adjusted emebedding function state to handle multiple embedders
This commit is contained in:
parent
8a3927a528
commit
ebd2a8fa8a
@ -715,7 +715,7 @@ app.state.config.FIRECRAWL_API_BASE_URL = FIRECRAWL_API_BASE_URL
|
|||||||
app.state.config.FIRECRAWL_API_KEY = FIRECRAWL_API_KEY
|
app.state.config.FIRECRAWL_API_KEY = FIRECRAWL_API_KEY
|
||||||
app.state.config.TAVILY_EXTRACT_DEPTH = TAVILY_EXTRACT_DEPTH
|
app.state.config.TAVILY_EXTRACT_DEPTH = TAVILY_EXTRACT_DEPTH
|
||||||
|
|
||||||
app.state.EMBEDDING_FUNCTION = None
|
app.state.EMBEDDING_FUNCTION = {}
|
||||||
app.state.ef = {}
|
app.state.ef = {}
|
||||||
app.state.rf = {}
|
app.state.rf = {}
|
||||||
|
|
||||||
@ -738,7 +738,7 @@ except Exception as e:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
app.state.EMBEDDING_FUNCTION = get_embedding_function(
|
app.state.EMBEDDING_FUNCTION["DEFAULT"] = get_embedding_function(
|
||||||
app.state.config.RAG_EMBEDDING_ENGINE,
|
app.state.config.RAG_EMBEDDING_ENGINE,
|
||||||
app.state.config.RAG_EMBEDDING_MODEL,
|
app.state.config.RAG_EMBEDDING_MODEL,
|
||||||
app.state.ef,
|
app.state.ef,
|
||||||
|
Loading…
Reference in New Issue
Block a user