Add embeddings to the vectorstore.
add_embeddings(
self,
texts: Sequence[str],
embeddings: List[List[float]],
metadatas: Optional[List[dict]] = None,
ids: Optional[List[str]] = None,
**kwargs: Any = {}
) -> List[str]| Name | Type | Description |
|---|---|---|
texts* | Sequence[str] | Iterable of strings to add to the vectorstore. |
embeddings* | List[List[float]] | List of list of embedding vectors. |
metadatas | Optional[List[dict]] | Default: NoneList of metadatas associated with the texts. |
ids | Optional[List[str]] | Default: NoneOptional list of ids for the documents. If not provided, will generate a new id for each document. |
kwargs | Any | Default: {}vectorstore specific parameters |