Class method that returns a ZepVectorStore instance initialized from texts.
If the collection does not exist, it will be created.
from_texts(
cls,
texts: List[str],
embedding: Optional[Embeddings] = None,
metadatas: Optional[List[dict]] = None,
collection_name: str = '',
api_url: str = '',
api_key: Optional[str] = None,
config: Optional[CollectionConfig] = None,
**kwargs: Any = {}
) -> ZepVectorStore| Name | Type | Description |
|---|---|---|
texts* | List[str] | The list of texts to add to the vectorstore. |
embedding | Optional[Embeddings] | Default: NoneOptional embedding function to use to embed the texts. |
metadatas | Optional[List[Dict[str, Any]]] | Default: NoneOptional list of metadata associated with the texts. |
collection_name | str | Default: ''The name of the collection in the Zep store. |
api_url | str | Default: ''The URL of the Zep API. |
api_key | Optional[str] | Default: NoneThe API key for the Zep API. |
config | Optional[CollectionConfig] | Default: NoneThe configuration for the collection. |
kwargs | Any | Default: {}Additional parameters specific to the vectorstore. |