Static method to create an ElasticVectorSearch instance from an existing index in the Elasticsearch database. It checks if the index exists, then returns the ElasticVectorSearch instance if it does.
fromExistingIndex(
embeddings: EmbeddingsInterface,
dbConfig: ElasticClientArgs
): Promise<ElasticVectorSearch>| Name | Type | Description |
|---|---|---|
embeddings* | EmbeddingsInterface | The embeddings to use for the documents. |
dbConfig* | ElasticClientArgs | The configuration for the Elasticsearch database. |