allegro mod

This commit is contained in:
l.gabrysiak 2025-02-28 21:17:08 +01:00
parent 5da854395e
commit 2d82373bc8
1 changed files with 3 additions and 2 deletions

View File

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