From 2d82373bc823d0fff420d415dfc3d33fd1c429be Mon Sep 17 00:00:00 2001 From: "l.gabrysiak" Date: Fri, 28 Feb 2025 21:17:08 +0100 Subject: [PATCH] allegro mod --- allegro.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/allegro.py b/allegro.py index 71c80a1..94e3a35 100644 --- a/allegro.py +++ b/allegro.py @@ -21,10 +21,11 @@ client = weaviate.WeaviateClient( ) client.connect() +collection = client.collections.get("Document") + # 2️⃣ Pobranie dokumentów z Weaviate def fetch_documents(): - collection = client.collections.get("Document") - response = collection.query.fetch_objects().TemporaryDirectory() + response = collection.query.fetch_objects() documents = [] for o in response.objects: file_name = o.properties.get("fileName", "unknown_file")