From 87932daef809be63c5dd0ef9b598b0dc192256ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=B4=D0=B5=D0=BB=D0=B8=D0=BD=D0=B0=20=D0=A1=D0=B0?= =?UTF-8?q?=D1=82=D1=82=D0=B0=D1=80=D0=BE=D0=B2=D0=B0?= Date: Thu, 4 Jun 2026 14:30:18 +0000 Subject: [PATCH] add tools.py --- tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools.py b/tools.py index 07c0ec6..5946908 100644 --- a/tools.py +++ b/tools.py @@ -12,7 +12,7 @@ if not client.has_collection(collection_name): client.create_collection(name=collection_name, vectors_config={"size": 384, "distance": "Cosine"}) embeddings = OllamaEmbeddings(model="nomic-embed-text") -text_splitter = RecursiveCharacterTextSplitter(chunk_size=500, chunk_overlap=50) +text_splitter = RecursiveCharacterTextSplitter(chunk_size=500, chunk_overlap=100) @tool("search_knowledge_base", description="Semantic search in knowledge base") def search_knowledge_base(query: str, max_results: int = 5):