From 70b56c6b758919879be519361d915e2efc35fd5d Mon Sep 17 00:00:00 2001 From: Hande <159312713+hande-k@users.noreply.github.com> Date: Tue, 24 Jun 2025 10:46:55 +0200 Subject: [PATCH] fix: remove semantic search from responses api (#904) ## Description ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin. --------- Signed-off-by: Diego B Theuerkauf Co-authored-by: Boris Co-authored-by: vasilije Co-authored-by: Igor Ilic <30923996+dexters1@users.noreply.github.com> Co-authored-by: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Co-authored-by: Igor Ilic Co-authored-by: Matea Pesic <80577904+matea16@users.noreply.github.com> Co-authored-by: hajdul88 <52442977+hajdul88@users.noreply.github.com> Co-authored-by: Daniel Molnar Co-authored-by: Diego Baptista Theuerkauf <34717973+diegoabt@users.noreply.github.com> Co-authored-by: Dmitrii Galkin <36552323+dm1tryG@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: lxobr <122801072+lxobr@users.noreply.github.com> Co-authored-by: github-actions[bot] --- cognee/api/v1/responses/default_tools.py | 1 - cognee/api/v1/responses/dispatch_function.py | 2 +- cognee/api/v1/responses/routers/default_tools.py | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cognee/api/v1/responses/default_tools.py b/cognee/api/v1/responses/default_tools.py index df3dff797..abf222d59 100644 --- a/cognee/api/v1/responses/default_tools.py +++ b/cognee/api/v1/responses/default_tools.py @@ -17,7 +17,6 @@ DEFAULT_TOOLS = [ "INSIGHTS", "CODE", "GRAPH_COMPLETION", - "SEMANTIC", "NATURAL_LANGUAGE", ], }, diff --git a/cognee/api/v1/responses/dispatch_function.py b/cognee/api/v1/responses/dispatch_function.py index 37114b32a..564f3b889 100644 --- a/cognee/api/v1/responses/dispatch_function.py +++ b/cognee/api/v1/responses/dispatch_function.py @@ -59,7 +59,7 @@ async def handle_search(arguments: Dict[str, Any], user) -> list: valid_search_types = ( search_tool["parameters"]["properties"]["search_type"]["enum"] if search_tool - else ["INSIGHTS", "CODE", "GRAPH_COMPLETION", "SEMANTIC", "NATURAL_LANGUAGE"] + else ["INSIGHTS", "CODE", "GRAPH_COMPLETION", "NATURAL_LANGUAGE"] ) if search_type_str not in valid_search_types: diff --git a/cognee/api/v1/responses/routers/default_tools.py b/cognee/api/v1/responses/routers/default_tools.py index b5fcaebab..e43620a4b 100644 --- a/cognee/api/v1/responses/routers/default_tools.py +++ b/cognee/api/v1/responses/routers/default_tools.py @@ -17,7 +17,6 @@ DEFAULT_TOOLS = [ "INSIGHTS", "CODE", "GRAPH_COMPLETION", - "SEMANTIC", "NATURAL_LANGUAGE", ], },