Skip to main content

Overview

OpenSearch is the document index Onyx uses for keyword and vector retrieval. It replaced Vespa. Every full deployment needs one OpenSearch cluster. Onyx Lite runs without a document index, so connectors and search over indexed documents are disabled there. In the Onyx Helm chart, the opensearch section defines the OpenSearch instance, and the auth.opensearch section defines its credentials. Both are enabled by default. When you install the chart, Helm starts a single-node OpenSearch cluster and sets the host, port, and credential environment variables on every Onyx service. In the Onyx Docker Compose file, the opensearch service defines both the instance and its credentials. The application reads the same environment variables from your .env file.

Auth

OpenSearch requires initial admin credentials. Onyx uses them to authenticate every request. The password must have at least 8 characters, with at least one uppercase letter, one lowercase letter, one digit, and one special character. With Docker Compose, no action is required. The Compose file sets an initial password that matches the default Onyx uses when OPENSEARCH_ADMIN_PASSWORD is not set. To use a different password, set OPENSEARCH_ADMIN_PASSWORD in the .env file before the first start. The Compose file passes it to both OpenSearch and the Onyx services. With Helm, there is no default password. Set one in your values file:
values.yaml

Configuration variables

If using your own managed OpenSearch

If you provisioned a managed instance, you do not need Helm to start an OpenSearch cluster. Disable it in your Helm values file:
values.yaml
Then set the connection variables for your cluster. Helm passes them to every Onyx service.
values.yaml
See External Services for other managed OpenSearch options.