Skip to main content
For the complete documentation index for agents and LLMs, see llms.txt.

Configure Index Settings

Control how an index runs and which files it processes. Turn on GPU acceleration, pin a Haystack version, filter files by name prefix

, and choose the instance size of the indexing pod.


About This Task​

Most index settings can be changed only while the index is disabled, because an enabled index is read-only. Disable the index first, change the setting, and enable the index again. For details, see Edit an Index.

The indexing pod size is the exception. You can change it while the index is enabled.

Enable GPU Acceleration​

By default, indexes run on CPU. You can enable GPU acceleration for an index to speed it up. This is especially useful for pipelines that include components that run faster on a GPU, like DoclingConverter or SentenceTransformersDocumentEmbedder.

When you enable GPU acceleration, the index checks whether a component needs a GPU and assigns one automatically. GPUs are only used when required and are not reserved for the entire index processing.

If GPU acceleration is disabled and your index includes components that rely on a GPU, those components run on the CPU instead. This can slow down processing and may cause timeouts, especially for larger or more complex indexes.

To enable GPU acceleration:

  1. Go to Indexes and click the index you want to enable GPU acceleration for. This opens the Builder.
  2. Open the Settings tab and click the GPU Acceleration toggle to turn it on.

If your index needs more CPU or memory rather than a GPU, for example to convert large files, set a larger indexing pod size. For details, see Set the Indexing Instance Size in Index Settings.

Pin a Haystack Version​

By default, an index runs on the Haystack version that Haystack Platform provides. To use a specific haystack-ai version or extra packages, add a top-level dependencies block to the index YAML. The index then processes your files in an isolated environment built from that block. The block works the same way in index YAML you create or update through the API. For details, see Pinning a Haystack Version for an Index.

The index must be disabled.

  1. Log in to Haystack Enterprise Platform and open Indexes.

  2. Click the name of the index you want to update and switch to Build.

  3. In the index YAML, add a top-level dependencies block. Pin the haystack-ai version with == and list any extra packages:

    dependencies:
    - haystack-ai==2.18.0
    - <extra-package>
  4. Save the index.

  5. Enable the index. For details, see Enable an Index. When indexing starts, we validate the dependencies block.

  6. Open the Index Details page and check the logs. If the block is invalid or empty, the indexing job fails right away with an error message that describes the problem, before any file is processed. Fix the block and enable the index again. If the block is valid, indexing continues and processes your files.

On the Index Details page, check the processed files to confirm your files were indexed.

To remove the pin, delete the dependencies block from a disabled index and enable it again. The index then runs on the version Haystack Platform provides.

Choose Files to Index​

By default, an index processes all files in your workspace. You can restrict indexing to a subset of those files:

  • By file name prefix: Index only files whose names start with one of the prefixes you set. For example, legal* matches legal-contract.pdf and legal_memo.docx.

Only files that match your filters are indexed, counted, and listed on the Index Files tab. All other files are skipped.

You can update these filters only while the index is disabled. Disable the index first, then change the filters. Changing the filter does not re-index files that were already indexed.

Set a File Name Prefix Filter​

  1. In Haystack Enterprise Platform, go to Indexes and click the index you want to configure. This opens the Index in Builder.
  2. Open the Settings tab.
  3. In the File Name Prefix Filter section, type one or more prefixes in the Prefixes field.
    • Separate multiple prefixes with commas. A file is indexed if its name matches any of the prefixes.
    • You can end a prefix with * as a wildcard, for example doc* or contracts/.
    • Each prefix can include letters, digits, ., _, -, and /.

Clear the File Name Prefix Filter​

  1. Open the Settings tab for the disabled index.
  2. Clear the Prefixes field in the File Name Prefix Filter section.

Set a File Name Prefix Filter with the API​

To set or clear the prefix filter with the REST API, see Filter Files to Index with the REST API.

What To Do Next​

After you change the settings, enable the index so it applies them. Wait until indexing finishes before you run queries.