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,
batch_size: int = 32,
**kwargs: Any = {}
) -> List[str]| Name | Type | Description |
|---|---|---|
texts* | Iterable[str] | Texts to add to the vectorstore. |
metadatas | Optional[List[dict]] | Default: NoneList of metadata corresponding to each chunk of text. |
ids | Optional[List[str]] | Default: NoneList of IDs corresponding to each chunk of text. |
batch_size | Optional[int] | Default: 32Size of batch of chunks of text to insert at once. |