Static method to create a new OpenSearchVectorStore from an existing OpenSearch index, embeddings, and OpenSearch client arguments.
fromExistingIndex(
embeddings: EmbeddingsInterface,
dbConfig: OpenSearchClientArgs
): Promise<OpenSearchVectorStore>| Name | Type | Description |
|---|---|---|
embeddings* | EmbeddingsInterface | The embeddings used to convert the documents into vectors. |
dbConfig* | OpenSearchClientArgs | The OpenSearch client arguments. |