eliot-hub commited on
Commit
846bd95
1 Parent(s): 9599b7c
Files changed (1) hide show
  1. app.py +1 -1
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.add(
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"],