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")