You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @raulescalantem we follow the signature of langchain_core.vecorstores.VectorStore where add_texts is
@abstractmethod
def add_texts(
self,
texts: Iterable[str],
metadatas: Optional[List[dict]] = None,
**kwargs: Any,
) -> List[str]:
"""Run more texts through the embeddings and add to the vectorstore.
Args:
texts: Iterable of strings to add to the vectorstore.
metadatas: Optional list of metadatas associated with the texts.
kwargs: vectorstore specific parameters
Returns:
List of ids from adding the texts into the vectorstore.
"""
The metadata for each text is a dict.
For example:
texts = ["This is the page 1", "This is the page 2"]
Each text should be able to have a list of metadatas, however, current version only accepts List[dict]
The text was updated successfully, but these errors were encountered: