mistralM

Docs

sideBar

Search Index

Understand Search Index and choose how to ingest and retrieve your company data.

A Search Index stores searchable document chunks for your agents and workflows. We host the storage, and you choose the embedding model and the fields needed for search and filtering.

pen

Search Index is in public preview. Its API, behavior, and tooling can change during the preview, and an update can require changes to your code.

When to use Search Index

Use Search Index to ground answers in company documents without operating a vector database. Add documents, retrieve passages with vector or keyword search, and filter on typed fields such as product, category, or publication date.

The Search Toolkit provides the Python client and components for extraction, splitting, embedding, and retrieval. Search Index is the hosted backend for those pipelines; the toolkit can also connect to other backends.

How it works

  • 1.

    Create an index. Choose a name, an embedding model, and a document schema.
  • 2.

    Add documents. Split content into chunks, embed them, and send the chunks with their fields.
  • 3.

    Retrieve results. Use vector search, keyword search, or hybrid retrieval with filters.
  • 4.

    Use the results. Provide relevant passages to an agent or workflow as context.

Custom fields on documents and chunks let you combine semantic retrieval with structured filtering. Index creation and schema changes are asynchronous: wait for the index to be ready before using it.

Access

Use an API key from the workspace that holds your indexes. To create an index, you need the workspace create_search_indexes permission. If an index isn't visible, check the workspace of your API key and your permissions on the index. Keep API keys out of source control.

Get started

Quickstart: create and query an index
illustrationRocket

Quickstart: create and query an index

Run an end-to-end Python example.

Basic operations
illustrationServer

Basic operations

Define fields, create an index, ingest and search documents, update the schema, and delete data.

Search Toolkit
illustrationMagnifyingGlass

Search Toolkit

Build ingestion and retrieval pipelines.