Spaces:
Sleeping
Sleeping
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 |
)
|