Overview
Index Settings controls how Onyx indexes your documents for search. To open the page, go to the Admin Panel and select Index Settings under Documents & Knowledge. You must be a member of the Admin group.Index Settings is available on self-hosted deployments. On Onyx Cloud, Onyx manages the embedding model and the index,
and the Admin Panel does not show this page. Onyx Lite
has no search index, so it does not show this page.

Applying Changes
Onyx does not save a change when you make it. A card with a change gets a colored border, and the banner at the top of the page tells you what applying the change will do. The embedding rate limit is an exception: it saves when you leave the field.1
Choose a re-index option
After you change one or more settings, select in the banner how Onyx re-indexes your documents.
The table below describes the options.
2
Apply the changes
Click Apply & Re-index.

Changes Without a Re-index
Some changes do not need a re-index when they are the only change on the page:- Image processing: the banner selects Do Not Re-index, and the apply button changes to Apply without Re-index. The new settings apply to the documents that Onyx indexes after you save.
- Contextual retrieval turned off, or a different Contextual Retrieval LLM: click Apply to new and updated documents. Existing documents keep the context that they have. To rebuild all documents instead, select a re-index option and click Rebuild all existing documents.
Monitoring a Re-index
While a re-index runs, the banner shows its progress. The re-index moves each connector, and the files of each user, to the new index. The counts show how many of these items are waiting, in progress, completed, failed, and paused.
- Onyx tries a failed item again automatically. If an item fails again and again at the same point, Onyx pauses it.
- A paused item stops the switch to the new index. Search uses the current index until you resume the item and it completes. With Switch Before Re-index, search does not find all the documents of a paused item until you resume it and it completes.
- If an item failed or paused, click the button next to the counts. Re-index Attention shows the items and their errors. Fix the cause of the error, and then click Resume to try a paused item again.
- To stop the re-index, click Cancel Re-index & Revert. Search continues to use the current index and its settings, and Onyx discards the re-index progress. Image processing changes that you applied with the re-index stay saved.
Embedding Model
The embedding model converts documents and search queries into vectors. Onyx stores the vectors in OpenSearch and uses them for semantic search. A better model can make search results more accurate, but it can cost more or need more compute. The card shows the current model. New deployments start with a self-hosted model that ships with Onyx. To change the model:1
Open the model list
Click View All Models. The models are on two tabs, Cloud-based and Self-hosted.
2
Select a model
Click Select Model on the model. If the model shows Connect, connect its provider first.
See Cloud Models.
3
Apply the change
Click Apply & Re-index in the banner. See Applying Changes.
Cloud Models
Cloud models run on the provider’s servers: Cohere, OpenAI, Google, or Voyage. Onyx sends your document text and your search queries to the provider to embed them. To connect a provider, click Connect on one of its models, enter the provider’s API key, and click Connect. Onyx tests the key with an embedding request before it saves the key. Then Onyx selects the model. You cannot disconnect the provider of the current model.
Google Embeddings
Google embedding models use Vertex AI. Google supports two authentication methods:- Service Account JSON: upload the service account’s JSON key. Existing Google embedding configurations continue to use this method.
- Workload Identity (GKE): available on self-hosted Onyx. Onyx uses Application Default Credentials from the pods that make embedding requests, so no JSON key is required.

roles/aiplatform.user in the Vertex AI project to every identity used by the API server and embedding workers,
including document-processing and user-file processing workers.
Those pods must run on node pools with the GKE Metadata Server enabled. Cloud embeddings are called from these services,
rather than the self-hosted model server.
In the Google connection form,
select Workload Identity (GKE) and enter the GCP Project ID where Vertex AI is enabled.
This project can differ from the GKE cluster’s project.
Set Google Cloud Region Name to a location supported by your embedding model; the default is global.
The Vertex AI location is independent of the cluster’s location.

iam.gke.io/gcp-service-account annotation and roles/iam.workloadIdentityUser binding.
Ensure the Vertex AI API is enabled and allow time for new IAM grants to propagate.
Do not set GOOGLE_APPLICATION_CREDENTIALS to a JSON key file when you intend to use the GKE pod identity:
ADC checks that variable before the metadata server.
Self-hosted Models
Self-hosted models run on Onyx’s model servers, so your documents do not leave your deployment. Each model shows how many documents it can embed per minute on one CPU core, and how much memory it needs.For large document sets, a GPU on the indexing model server makes indexing faster.
We recommend a GPU for the models with the GPU recommended tag.

Bring Your Own Model or Proxy
To use a model that is not in the list, expand Advanced: bring your own model or proxy at the bottom of a tab. On the Cloud-based tab, click Add Configuration for LiteLLM, Azure, or Bifrost. On the Self-hosted tab, click Add Custom Model.
The model details are the model name, the model dimension, the query and passage prefixes, and normalization.
Use the values from the model’s documentation. Incorrect or missing prefixes make the embeddings less accurate.
Legacy Models
Some older models have a Legacy tag. If the current model is a legacy model, it continues to work, and you can re-index with it, for example to change the vector quantization. You cannot select a legacy model for a new index. The model list shows a legacy model only while it is the current model.Vector Quantization
Vector quantization stores the document vectors in OpenSearch with fewer bits for each dimension. This decreases the memory that vector search uses. Fewer bits can decrease the search quality. To set it, use the Vector Quantization field in the Embedding Model section.
When the index is quantized, Onyx rescores the top search results with the full-precision vectors.
OpenSearch keeps the full-precision vectors on disk for this, so the disk usage increases slightly.
The quantization is part of the index, so a change needs a re-index. If you change only the quantization,
Onyx copies the stored vectors to the new index and does not embed the documents again.
The OpenSearch that ships with Onyx (Docker Compose and Helm) is version 3.6.0.
If you connect Onyx to an external OpenSearch cluster that is older than 3.6, Onyx does not accept the 1-bit option.

Retrieval Optimization
These settings change how Onyx chunks and enriches documents during indexing. They can increase the embedding cost.
Multipass Indexing
Multipass indexing indexes documents as chunks of different sizes. It is temporarily unavailable, so you cannot change it.Contextual Retrieval
Contextual retrieval adds document-level context to each chunk before Onyx embeds the chunk. This can make hybrid search more relevant. The Contextual Retrieval LLM writes a summary of each document and a short context for each chunk. To turn on contextual retrieval:1
Set up a language model
Contextual retrieval needs a language model.
2
Turn it on
Turn on Contextual Retrieval and select a Contextual Retrieval LLM.
3
Apply the change
Click Apply & Re-index. The re-index adds context to the documents that are already indexed.
ENABLE_CONTEXTUAL_RAG environment variable is set to true, contextual retrieval stays on. To turn it off,
unset the variable and restart Onyx.
Image Processing
Image processing extracts the images in your documents during indexing. A vision-capable language model writes a description of each image, and Onyx indexes the descriptions so that search can find them.
If an image is larger than 3 MB,
Onyx shrinks it to at most 1024 pixels on each side before the Captioning LLM describes it.
This keeps every image within the size limits of model providers. Transparent areas become white,
and photos keep their orientation. Connectors also skip very large files when they download them,
so there’s no size setting to manage.
Onyx describes images only after you select a Captioning LLM. To change the settings in this section,
you need a vision-capable language model. Until you set one up,
you cannot change Extract & Caption Images: connectors download images, but Onyx does not describe them.
Image processing changes apply to the documents that Onyx indexes after you save them.
A re-index from this page uses the content that is already in the index,
so it does not describe the images in documents that are already indexed.
A Full Re-index from a connector’s page skips a document that did not change at its source,
unless the document has images and Extract & Caption Images was off when Onyx indexed it.
Images that Onyx extracted while no Captioning LLM was selected get descriptions when their documents change.
Embedding Rate Limit
The embedding rate limit sets the maximum number of embedding requests that indexing sends in a time window. All indexing workers share the limit. It applies to cloud providers and to self-hosted models. Use it to stay below the rate limits of your embedding provider.