Spaces:
Sleeping
Sleeping
Mikeplockhart
commited on
Update utils.py
Browse files
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'])
|
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 |
)
|