From cb2158a79490467d705c5b7b462a69d68683fc6e Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 10 Apr 2024 00:51:16 -0700 Subject: [PATCH] fix --- backend/apps/rag/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/apps/rag/main.py b/backend/apps/rag/main.py index 8846e4dce..8739fa6c4 100644 --- a/backend/apps/rag/main.py +++ b/backend/apps/rag/main.py @@ -167,6 +167,7 @@ async def update_embedding_model( ) if sentence_transformer_ef: + app.state.RAG_EMBEDDING_MODEL = form_data.embedding_model app.state.RAG_EMBEDDING_MODEL_PATH = embedding_model_path app.state.sentence_transformer_ef = sentence_transformer_ef