allegro mod
This commit is contained in:
parent
5da854395e
commit
2d82373bc8
|
|
@ -21,10 +21,11 @@ client = weaviate.WeaviateClient(
|
||||||
)
|
)
|
||||||
client.connect()
|
client.connect()
|
||||||
|
|
||||||
|
collection = client.collections.get("Document")
|
||||||
|
|
||||||
# 2️⃣ Pobranie dokumentów z Weaviate
|
# 2️⃣ Pobranie dokumentów z Weaviate
|
||||||
def fetch_documents():
|
def fetch_documents():
|
||||||
collection = client.collections.get("Document")
|
response = collection.query.fetch_objects()
|
||||||
response = collection.query.fetch_objects().TemporaryDirectory()
|
|
||||||
documents = []
|
documents = []
|
||||||
for o in response.objects:
|
for o in response.objects:
|
||||||
file_name = o.properties.get("fileName", "unknown_file")
|
file_name = o.properties.get("fileName", "unknown_file")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue