From 5f9702b91c5bca8ffbc3e348d91d1b176e1ba08f Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 12 Mar 2025 13:47:16 +0000 Subject: [PATCH] fix: /search --- application/api/answer/routes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/api/answer/routes.py b/application/api/answer/routes.py index 5a221e8d..8488a56d 100644 --- a/application/api/answer/routes.py +++ b/application/api/answer/routes.py @@ -706,7 +706,6 @@ class Search(Resource): retriever = RetrieverCreator.create_retriever( retriever_name, - question=question, source=source, chat_history=[], prompt="default", @@ -716,7 +715,7 @@ class Search(Resource): user_api_key=user_api_key, ) - docs = retriever.search() + docs = retriever.search(question) retriever_params = retriever.get_params() user_logs_collection.insert_one(