Return VectorStore initialized from texts and embeddings.
from_texts(
cls: type[VST],
texts: list[str],
embedding: Embeddings,
metadatas: list[dict] | None = None,
*,
ids: list[str] | None = None,
**kwargs: Any = {}
) -> VST| Name | Type | Description |
|---|---|---|
texts* | list[str] | Texts to add to the |
embedding* | Embeddings | Embedding function to use. |
metadatas | list[dict] | None | Default: NoneOptional list of metadatas associated with the texts. |
ids | list[str] | None | Default: NoneOptional list of IDs associated with the texts. |
**kwargs | Any | Default: {}Additional keyword arguments. |