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,
bulk_size: Optional[int] = None,
**kwargs: Any = {}
) -> List[str]Optional Args:
vector_field: Document field embeddings are stored in. Defaults to "vector_field".
text_field: Document field the text of the document is stored in. Defaults to "text".
| 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. |
bulk_size | Optional[int] | Default: NoneBulk API request count; Default: 500 |