Skip to content

Commit 5a181f2

Browse files
aclark4lifeCopilot
andauthored
Update libs/langchain-mongodb/tests/utils.py
Co-authored-by: Copilot <[email protected]>
1 parent c17603b commit 5a181f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libs/langchain-mongodb/tests/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ def bulk_embed_and_insert_texts(
6464
ids: Optional[List[str]] = None,
6565
) -> List:
6666
"""Patched insert_texts that waits for data to be indexed before returning"""
67-
ids_inserted = bulk_embed_and_insert_texts(texts, metadatas, ids)
67+
ids_inserted = bulk_embed_and_insert_texts(
68+
self.embedding, self.collection, self._embedding_field_config, texts, metadatas, ids
69+
)
6870
n_docs = self.collection.count_documents({})
6971
start = monotonic()
7072
while monotonic() - start <= TIMEOUT:

0 commit comments

Comments
 (0)