The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
fix: respect table_name argument when calling from_texts (#21252)
Jan Soubustad9a61c0fa98d
diff --git a/libs/community/langchain_community/vectorstores/lancedb.py b/libs/community/langchain_community/vectorstores/lancedb.pyindex 671ac47efa..ea86cec20a 100644--- a/libs/community/langchain_community/vectorstores/lancedb.py+++ b/libs/community/langchain_community/vectorstores/lancedb.py@@ -259,6 +259,7 @@ class LanceDB(VectorStore):vector_key: Optional[str] = "vector",id_key: Optional[str] = "id",text_key: Optional[str] = "text",+ table_name: Optional[str] = "vectorstore",**kwargs: Any,) -> LanceDB:instance = LanceDB(@@ -267,6 +268,7 @@ class LanceDB(VectorStore):vector_key=vector_key,id_key=id_key,text_key=text_key,+ table_name=table_name,)instance.add_texts(texts, metadatas=metadatas, **kwargs)