From 50b27927cda3cf13ddc78e72296db402cb339993 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 16:07:48 +0000 Subject: [PATCH] revert c9d4cd453bbae3e84cd2c7ce8471f7d296449212 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit revert Обновить tools.py --- tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools.py b/tools.py index 387c646..34dfb04 100644 --- a/tools.py +++ b/tools.py @@ -19,8 +19,9 @@ 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}") + output_lines.append(f"[{i}] Title: {title} | Score: {score}") output_lines.append(f" {content}\n") return "\n".join(output_lines)