Add text to the collection.
add_texts(
self,
texts: Iterable[str],
metadatas: Optional[List[dict]] = None,
timeout: Optional[int] = None,
batch_size: int = 1000,
**kwargs: Any = {}
) -> List[str]Note:
If the collection has not yet been created, this method will create a new collection.
| Name | Type | Description |
|---|---|---|
texts* | Iterable[str] | An iterable that contains the text to be added. |
metadatas | Optional[List[dict]] | Default: NoneAn optional list of dictionaries, |
timeout | Optional[int] | Default: NoneOptional timeout, in seconds. |
batch_size | int | Default: 1000The number of texts inserted in each batch, defaults to 1000. |
**kwargs | Any | Default: {}Other optional parameters. |