Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
9f82f5ab
Commit
9f82f5ab
authored
Apr 04, 2024
by
Self Denial
Browse files
Formatting...
parent
075fbedb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
backend/apps/rag/main.py
backend/apps/rag/main.py
+3
-1
No files found.
backend/apps/rag/main.py
View file @
9f82f5ab
...
...
@@ -78,7 +78,9 @@ app.state.CHUNK_SIZE = CHUNK_SIZE
app
.
state
.
CHUNK_OVERLAP
=
CHUNK_OVERLAP
app
.
state
.
RAG_TEMPLATE
=
RAG_TEMPLATE
app
.
state
.
RAG_EMBEDDING_MODEL
=
RAG_EMBEDDING_MODEL
app
.
state
.
RAG_EMBEDDING_MODEL_PATH
=
embedding_model_get_path
(
app
.
state
.
RAG_EMBEDDING_MODEL
,
RAG_EMBEDDING_MODEL_AUTO_UPDATE
)
app
.
state
.
RAG_EMBEDDING_MODEL_PATH
=
embedding_model_get_path
(
app
.
state
.
RAG_EMBEDDING_MODEL
,
RAG_EMBEDDING_MODEL_AUTO_UPDATE
)
app
.
state
.
TOP_K
=
4
app
.
state
.
sentence_transformer_ef
=
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment