mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-22 14:49:29 +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",
|
vector_key: Optional[str] = "vector",
|
||||||
id_key: Optional[str] = "id",
|
id_key: Optional[str] = "id",
|
||||||
text_key: Optional[str] = "text",
|
text_key: Optional[str] = "text",
|
||||||
|
table_name: Optional[str] = "vectorstore",
|
||||||
**kwargs: Any,
|
**kwargs: Any,
|
||||||
) -> LanceDB:
|
) -> LanceDB:
|
||||||
instance = LanceDB(
|
instance = LanceDB(
|
||||||
@ -267,6 +268,7 @@ class LanceDB(VectorStore):
|
|||||||
vector_key=vector_key,
|
vector_key=vector_key,
|
||||||
id_key=id_key,
|
id_key=id_key,
|
||||||
text_key=text_key,
|
text_key=text_key,
|
||||||
|
table_name=table_name,
|
||||||
)
|
)
|
||||||
instance.add_texts(texts, metadatas=metadatas, **kwargs)
|
instance.add_texts(texts, metadatas=metadatas, **kwargs)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user