Mikeplockhart commited on
Commit
15233ff
·
verified ·
1 Parent(s): 06d377d

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -30,7 +30,7 @@ def chroma_upserting(collection, payload:list[dict]):
30
  print(type(item))
31
  collection.add(
32
  documents=item['doc'],
33
- embeddings=embedding_function(item['doc']).tolist,
34
  #metadatas=item,
35
  ids=f"id_{idx}"
36
  )
 
30
  print(type(item))
31
  collection.add(
32
  documents=item['doc'],
33
+ embeddings=[list(embedding_function(item['doc']))],
34
  #metadatas=item,
35
  ids=f"id_{idx}"
36
  )