Spaces:
Sleeping
Sleeping
Mikeplockhart
commited on
Commit
•
35ed3c5
1
Parent(s):
70ff032
Update utils.py
Browse files
utils.py
CHANGED
@@ -41,7 +41,7 @@ def chroma_upserting(collection, payload:list[dict]):
|
|
41 |
print(type(embedding))
|
42 |
collection.add(
|
43 |
documents=[item['doc'] for item in payload],
|
44 |
-
embeddings=
|
45 |
#metadatas=item,
|
46 |
ids=[f"id_{idx}" for idx, _ in enumerate(payload)]
|
47 |
)
|
|
|
41 |
print(type(embedding))
|
42 |
collection.add(
|
43 |
documents=[item['doc'] for item in payload],
|
44 |
+
embeddings=embedding,
|
45 |
#metadatas=item,
|
46 |
ids=[f"id_{idx}" for idx, _ in enumerate(payload)]
|
47 |
)
|