Return VectorStore initialized from texts and embeddings. Args: texts: Texts to add to the vectorstore. metadatas: Optional list of metadatas associated with the texts. embedding: Embedding function to use.
(
cls: Type[VST],
texts: List[str],
embedding: Embeddings,
metadatas: Optional[List[dict]] = None,
**kwargs: Any,
)
| 710 | @classmethod |
| 711 | @abstractmethod |
| 712 | def from_texts( |
| 713 | cls: Type[VST], |
| 714 | texts: List[str], |
| 715 | embedding: Embeddings, |
| 716 | metadatas: Optional[List[dict]] = None, |
| 717 | **kwargs: Any, |
| 718 | ) -> VST: |
| 719 | """Return VectorStore initialized from texts and embeddings. |
| 720 | |
| 721 | Args: |
| 722 | texts: Texts to add to the vectorstore. |
| 723 | metadatas: Optional list of metadatas associated with the texts. |
| 724 | embedding: Embedding function to use. |
| 725 | """ |
| 726 | |
| 727 | @classmethod |
| 728 | async def afrom_texts( |
no outgoing calls
no test coverage detected