From e67b64cf0b843c496f7f451f3c1b5e76a7f626c9 Mon Sep 17 00:00:00 2001 From: HamadaSalhab Date: Wed, 16 Oct 2024 22:54:10 +0300 Subject: [PATCH] Add `alpha` to hybrid search params in system tools execution --- agents-api/agents_api/activities/execute_system.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agents-api/agents_api/activities/execute_system.py b/agents-api/agents_api/activities/execute_system.py index ae3b9fc17..780d4c0fb 100644 --- a/agents-api/agents_api/activities/execute_system.py +++ b/agents-api/agents_api/activities/execute_system.py @@ -109,7 +109,8 @@ async def execute_system( search_params = HybridDocSearchRequest( text=arguments.pop("text"), vector=arguments.pop("vector"), - confidence=arguments.pop("confidence", 0.7), + alpha=arguments.pop("alpha", 0.75), + confidence=arguments.pop("confidence", 0.5), limit=arguments.get("limit", 10), )