Get the embeddings for the texts and add them to the vectorstore.
Texts are sent to the embeddings object
in batches of size embedding_chunk_size.
The embeddings are then upserted into the vectorstore
in batches of size batch_size.
aadd_texts(
self,
texts: Iterable[str],
metadatas: Optional[List[dict]] = None,
ids: Optional[List[str]] = None,
batch_size: int = 32,
embedding_chunk_size: int = 1000,
*,
namespace: Optional[str] = None,
**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 ids to associate with the texts. |
batch_size | int | Default: 32Batch size to use when upserting the embeddings. |
embedding_batch_size* | unknown | Chunk size to use when embedding the texts. |
namespace | Optional[str] | Default: NoneNamespace to use from the index. |