From 859b2f312d0876f7abdb44518e8cbf7098cffdd4 Mon Sep 17 00:00:00 2001 From: Quentin BEY Date: Tue, 14 Oct 2025 21:18:17 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=B0=EF=B8=8F(RAG)=20remove=20old=20`RAG?= =?UTF-8?q?=5FWEB=5FSEARCH=5FBACKEND`=20setting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This settings has been removed when we switched to tool calls. --- .../views/chat/conversations/test_conversation.py | 3 --- .../conversations/test_conversation_with_history.py | 3 --- src/backend/conversations/settings.py | 13 +------------ 3 files changed, 1 insertion(+), 18 deletions(-) diff --git a/src/backend/chat/tests/views/chat/conversations/test_conversation.py b/src/backend/chat/tests/views/chat/conversations/test_conversation.py index e4ed9cc..44fd464 100644 --- a/src/backend/chat/tests/views/chat/conversations/test_conversation.py +++ b/src/backend/chat/tests/views/chat/conversations/test_conversation.py @@ -35,9 +35,6 @@ def ai_settings(settings): settings.AI_API_KEY = "test-api-key" settings.AI_MODEL = "test-model" - # Disable web search backend for tests - settings.RAG_WEB_SEARCH_BACKEND = None - return settings diff --git a/src/backend/chat/tests/views/chat/conversations/test_conversation_with_history.py b/src/backend/chat/tests/views/chat/conversations/test_conversation_with_history.py index 6e3c5a3..1804784 100644 --- a/src/backend/chat/tests/views/chat/conversations/test_conversation_with_history.py +++ b/src/backend/chat/tests/views/chat/conversations/test_conversation_with_history.py @@ -32,9 +32,6 @@ def ai_settings(settings): settings.AI_API_KEY = "test-api-key" settings.AI_MODEL = "test-model" - # Disable web search backend for tests - settings.RAG_WEB_SEARCH_BACKEND = None - return settings diff --git a/src/backend/conversations/settings.py b/src/backend/conversations/settings.py index dd4993a..5187d01 100755 --- a/src/backend/conversations/settings.py +++ b/src/backend/conversations/settings.py @@ -566,12 +566,6 @@ class Base(BraveSettings, Configuration): ) # Web search - RAG_WEB_SEARCH_BACKEND = values.Value( - # "chat.agent_rag.web_search.albert_api.AlbertWebSearchManager", - "chat.agent_rag.web_search.mocked.MockedWebSearchManager", - environ_name="RAG_WEB_SEARCH_BACKEND", - environ_prefix=None, - ) RAG_WEB_SEARCH_PROMPT_UPDATE = values.Value( """ You are a subject-matter expert assistant. @@ -794,12 +788,7 @@ USER QUESTION: } ) - # Sanity check to ensure that the RAG_WEB_SEARCH_BACKEND and RAG_DOCUMENT_SEARCH_BACKEND - if features.web_search and not self.RAG_WEB_SEARCH_BACKEND: - raise RuntimeError( - "RAG_WEB_SEARCH_BACKEND is not set, but web_search feature flag is enabled." - ) - + # Sanity check to ensure that if document upload is enabled, a backend is set if features.document_upload and not self.RAG_DOCUMENT_SEARCH_BACKEND: raise RuntimeError( "RAG_DOCUMENT_SEARCH_BACKEND is not set, "