Search Index
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.
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
- Create an index. Choose a name, an embedding model, and a document schema.
- Add documents. Split content into chunks, embed them, and send the chunks with their fields.
- Retrieve results. Use vector search, keyword search, or hybrid retrieval with filters.
- 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: run an end-to-end Python example.
- Basic operations: define fields, create an index, ingest and search documents, update the schema, and delete data.
- Search Toolkit: build ingestion and retrieval pipelines.