Spaces:
Sleeping
Sleeping
upsert
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ client = chromadb.Client()
|
|
46 |
collection = client.get_or_create_collection(name="embeddings_mxbai")
|
47 |
|
48 |
for batch in tqdm(batched_ds, desc="Processing dataset batches"):
|
49 |
-
collection.
|
50 |
ids=batch["id"],
|
51 |
metadatas=batch["metadata"],
|
52 |
documents=batch["document"],
|
|
|
46 |
collection = client.get_or_create_collection(name="embeddings_mxbai")
|
47 |
|
48 |
for batch in tqdm(batched_ds, desc="Processing dataset batches"):
|
49 |
+
collection.upsert(
|
50 |
ids=batch["id"],
|
51 |
metadatas=batch["metadata"],
|
52 |
documents=batch["document"],
|