Add more texts to the vectorstore.
add_texts(
self,
texts: Iterable[str],
metadatas: Optional[List[dict]] = None,
embeddings: Optional[List[List[float]]] = None,
batch_size: int = 1000,
clean_metadata: bool = True,
**kwargs: Any = {}
) -> List[str]| Name | Type | Description |
|---|---|---|
texts* | Iterable[str] | Iterable of strings/text to add to the vectorstore. |
metadatas | Optional[List[dict]] | Default: NoneOptional list of metadatas. Defaults to None. |
embeddings | Optional[List[List[float]]] | Default: NoneOptional pre-generated embeddings. Defaults to None. |
keys* | List[str]) or ids (List[str] | Identifiers of entries. Defaults to None. |
batch_size | int | Default: 1000Batch size to use for writes. Defaults to 1000. |