From 400bfa5a02dce413a63d4e3279894ffd662956f7 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 17 May 2024 19:53:38 -0700 Subject: [PATCH] fix: rag config.json --- backend/apps/rag/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/apps/rag/main.py b/backend/apps/rag/main.py index d2c3964ae..ba25f34f6 100644 --- a/backend/apps/rag/main.py +++ b/backend/apps/rag/main.py @@ -433,12 +433,12 @@ async def update_query_settings( form_data: QuerySettingsForm, user=Depends(get_admin_user) ): app.state.config.RAG_TEMPLATE = ( - form_data.template if form_data.template else RAG_TEMPLATE, + form_data.template if form_data.template else RAG_TEMPLATE ) app.state.config.TOP_K = form_data.k if form_data.k else 4 app.state.config.RELEVANCE_THRESHOLD = form_data.r if form_data.r else 0.0 app.state.config.ENABLE_RAG_HYBRID_SEARCH = ( - form_data.hybrid if form_data.hybrid else False, + form_data.hybrid if form_data.hybrid else False ) return { "status": True,