Construct BESVectorStore wrapper from documents.
from_documents(
cls,
documents: List[Document],
embedding: Optional[Embeddings] = None,
**kwargs: Any = {}
) -> BESVectorStore| Name | Type | Description |
|---|---|---|
documents* | List[Document] | List of documents to add to the Elasticsearch index. |
embedding | Optional[Embeddings] | Default: NoneEmbedding function to use to embed the texts. Do not provide if using a strategy that doesn't require inference. |
kwargs | Any | Default: {}create index key words arguments |