Create alibaba cloud opensearch vector store instance.
from_documents(
cls,
documents: List[Document],
embedding: Embeddings,
config: Optional[AlibabaCloudOpenSearchSettings] = None,
**kwargs: Any = {}
) -> AlibabaCloudOpenSearchReturns: AlibabaCloudOpenSearch: Alibaba cloud opensearch vector store instance.
| Name | Type | Description |
|---|---|---|
documents* | List[Document] | Documents to be inserted into the vector storage, should not be empty. |
embedding* | Embeddings | Embedding function, Embedding function. |
config | Optional[AlibabaCloudOpenSearchSettings] | Default: NoneAlibaba OpenSearch instance configuration. |
ids* | unknown | Specify the ID for the inserted document. If left empty, the ID will be automatically generated based on the text content. |