ElasticsearchEmbeddings class it either
- using the
from_credentialsconstructor if you are using Elastic Cloud - or using the
from_es_connectionconstructor with any Elasticsearch cluster
Testing with from_credentials
This required an Elastic Cloud cloud_id
Testing with existing Elasticsearch client connection
This can be used with any Elasticsearch deploymentConnect these docs to Claude, VSCode, and more via MCP for real-time answers.