eliot-hub commited on
Commit
f9d97e5
·
1 Parent(s): bfa3459
Files changed (2) hide show
  1. app.py +1 -0
  2. hf_to_chroma_ds.py +1 -1
app.py CHANGED
@@ -65,6 +65,7 @@ collection = import_into_chroma(
65
  dataset=Memoires_DS,
66
  embedding_function=huggingface_ef #Memoires_DS.embedding_function
67
  )
 
68
  db = Chroma(
69
  client=client,
70
  collection_name=f"embeddings_mxbai",
 
65
  dataset=Memoires_DS,
66
  embedding_function=huggingface_ef #Memoires_DS.embedding_function
67
  )
68
+ del Memoires_DS
69
  db = Chroma(
70
  client=client,
71
  collection_name=f"embeddings_mxbai",
hf_to_chroma_ds.py CHANGED
@@ -69,7 +69,7 @@ class Memoires_DS(Dataset):
69
 
70
 
71
 
72
- def import_into_chroma(chroma_client, dataset, collection_name=None, embedding_function=None, batch_size=5000):
73
  """
74
  Imports a dataset into Chroma in batches.
75
 
 
69
 
70
 
71
 
72
+ def import_into_chroma(chroma_client, dataset, collection_name=None, embedding_function=None, batch_size=10000):
73
  """
74
  Imports a dataset into Chroma in batches.
75