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,
set_name: Optional[str] = None,
embedding_chunk_size: int = 1000,
index_name: Optional[str] = None,
wait_for_index: 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 metadata associated with the texts. |
ids | Optional[List[str]] | Default: NoneOptional list of ids to associate with the texts. |
set_name | Optional[str] | Default: NoneOptional aerospike set name to add the texts to. |
batch_size* | unknown | Batch size to use when adding the texts to the vectorstore. |
embedding_chunk_size | int | Default: 1000Chunk size to use when embedding the texts. |
index_name | Optional[str] | Default: NoneOptional aerospike index name used for waiting for index completion. If not provided, the default index_name will be used. |
wait_for_index | bool | Default: TrueIf True, wait for the all the texts to be indexed before returning. Requires index_name to be provided. Defaults to True. |
kwargs | Any | Default: {}Additional keyword arguments to pass to the client upsert call. |