diff --git a/allegro.py b/allegro.py index 80c24a2..71c80a1 100644 --- a/allegro.py +++ b/allegro.py @@ -24,9 +24,9 @@ client.connect() # 2️⃣ Pobranie dokumentów z Weaviate def fetch_documents(): collection = client.collections.get("Document") - response = collection.query.fetch_objects() + response = collection.query.fetch_objects().TemporaryDirectory() documents = [] - for o in response.objects.TemporaryDirectory(): + for o in response.objects: file_name = o.properties.get("fileName", "unknown_file") content = o.properties.get("content", "") if content: