mod allegro

This commit is contained in:
l.gabrysiak 2025-02-28 21:16:27 +01:00
parent 74f912e7e3
commit 5da854395e
1 changed files with 2 additions and 2 deletions

View File

@ -24,9 +24,9 @@ client.connect()
# 2⃣ Pobranie dokumentów z Weaviate # 2⃣ Pobranie dokumentów z Weaviate
def fetch_documents(): def fetch_documents():
collection = client.collections.get("Document") collection = client.collections.get("Document")
response = collection.query.fetch_objects() response = collection.query.fetch_objects().TemporaryDirectory()
documents = [] documents = []
for o in response.objects.TemporaryDirectory(): for o in response.objects:
file_name = o.properties.get("fileName", "unknown_file") file_name = o.properties.get("fileName", "unknown_file")
content = o.properties.get("content", "") content = o.properties.get("content", "")
if content: if content: