diff --git a/libs/langchain/langchain/vectorstores/opensearch_vector_search.py b/libs/langchain/langchain/vectorstores/opensearch_vector_search.py index 81d58f8a8a249..711aa67e0dc8f 100644 --- a/libs/langchain/langchain/vectorstores/opensearch_vector_search.py +++ b/libs/langchain/langchain/vectorstores/opensearch_vector_search.py @@ -414,7 +414,7 @@ def add_texts( metadatas=metadatas, ids=ids, bulk_size=bulk_size, - kwargs=kwargs, + **kwargs, ) def add_embeddings( @@ -451,7 +451,7 @@ def add_embeddings( metadatas=metadatas, ids=ids, bulk_size=bulk_size, - kwargs=kwargs, + **kwargs, ) def similarity_search(