mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-22 06:39:52 +00:00
fix: respect table_name argument when calling from_texts (#21252)
valid for from_documents() as well fixes #21251
This commit is contained in:
parent
bebf46c4a2
commit
d9a61c0fa9
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user