Run more texts through the embeddings and add to the vectorstore.
add_texts(
self,
texts: Iterable[str],
metadatas: Optional[List[dict]] = None,
ids: Optional[List[str]] = None,
refresh_indices: bool = True,
**kwargs: Any = {}
) -> List[str]| Name | Type | Description |
|---|---|---|
texts* | Iterable[str] | Iterable of strings to add to the vectorstore. |
metadatas | Optional[List[dict]] | Default: NoneOptional list of metadatas associated with the texts. |
ids | Optional[List[str]] | Default: NoneOptional list of unique IDs. |
refresh_indices | bool | Default: Truebool to refresh ElasticSearch indices |