MCPcopy
hub / github.com/langchain-ai/langchain / from_texts

Method from_texts

libs/core/langchain_core/vectorstores.py:712–725  ·  view source on GitHub ↗

Return VectorStore initialized from texts and embeddings. Args: texts: Texts to add to the vectorstore. metadatas: Optional list of metadatas associated with the texts. embedding: Embedding function to use.

(
        cls: Type[VST],
        texts: List[str],
        embedding: Embeddings,
        metadatas: Optional[List[dict]] = None,
        **kwargs: Any,
    )

Source from the content-addressed store, hash-verified

710 @classmethod
711 @abstractmethod
712 def from_texts(
713 cls: Type[VST],
714 texts: List[str],
715 embedding: Embeddings,
716 metadatas: Optional[List[dict]] = None,
717 **kwargs: Any,
718 ) -> VST:
719 """Return VectorStore initialized from texts and embeddings.
720
721 Args:
722 texts: Texts to add to the vectorstore.
723 metadatas: Optional list of metadatas associated with the texts.
724 embedding: Embedding function to use.
725 """
726
727 @classmethod
728 async def afrom_texts(

Callers 11

chain.pyFile · 0.45
chain.pyFile · 0.45
chain.pyFile · 0.45
chain.pyFile · 0.45
ingest.pyFile · 0.45
blurb_matcher.pyFile · 0.45
ingest_documentsFunction · 0.45
chain.pyFile · 0.45
from_documentsMethod · 0.45
from_examplesMethod · 0.45
from_examplesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected