Add the given texts and embeddings to the vectorstore.
add_embeddings(
self,
text_embeddings: Iterable[Tuple[str, List[float]]],
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 |
|---|---|---|
text_embeddings* | Iterable[Tuple[str, List[float]]] | Iterable pairs of string and embedding 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 |