Skip to content

Commit c17603b

Browse files
aclark4lifeCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <[email protected]>
1 parent c2e5671 commit c17603b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

libs/langchain-mongodb/langchain_mongodb/vectorstores.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,14 @@ def add_documents(
451451
)
452452
result_ids.extend(
453453
bulk_embed_and_insert_texts(
454-
texts=texts, metadatas=metadatas, ids=ids[start:end]
454+
embedding_model=self._embedding,
455+
collection=self._collection,
456+
text_key=self._text_key,
457+
embedding_key=self._embedding_key,
458+
metadata_key=self._metadata_key,
459+
texts=texts,
460+
metadatas=metadatas,
461+
ids=ids[start:end],
455462
)
456463
)
457464
start = end

0 commit comments

Comments
 (0)