From c9d4cd453bbae3e84cd2c7ce8471f7d296449212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=80=D0=B8=D1=8F=20=D0=91=D0=B5=D1=80=D0=B4?= =?UTF-8?q?=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2=D0=B0?= Date: Thu, 28 May 2026 13:33:05 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20tools.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools.py b/tools.py index 34dfb04..387c646 100644 --- a/tools.py +++ b/tools.py @@ -19,9 +19,8 @@ def search_knowledge_base(query: str, max_results: int = 5) -> str: output_lines = [f"Found {len(results)} result(s):\n"] for i, r in enumerate(results, 1): title = r["metadata"].get("title", "Unknown") - score = r["score"] content = r["content"] - output_lines.append(f"[{i}] Title: {title} | Score: {score}") + output_lines.append(f"[{i}] Title: {title}") output_lines.append(f" {content}\n") return "\n".join(output_lines)