Creates an instance of DuckDB and populates it with texts and their embeddings.
from_texts(
cls: Type[VST],
texts: List[str],
embedding: Embeddings,
metadatas: Optional[List[dict]] = None,
**kwargs: Any = {}
) -> DuckDB| Name | Type | Description |
|---|---|---|
texts* | List[str] | List of strings to add to the vector store. |
embedding* | Embeddings | The embedding function or model to use for generating embeddings. |
metadatas | Optional[List[dict]] | Default: NoneOptional list of metadata dictionaries associated with the texts. |
kwargs | Any | Default: {}Additional keyword arguments including:
|