Glossary
Re-indexing
Rebuilding a search or vector index from its source content, usually because the embedding model, chunking, schema or index settings changed in a way that affects every document.
Re-indexing is rebuilding a search index from its source content: every document is processed again and written to a fresh index. In a RAG pipeline it is needed when something changes that affects all documents at once, such as a new embedding model, a different chunking strategy or a new index configuration. It differs from incremental indexing, which updates only the documents that changed and is what keeps an index current day to day.
When a full re-index is needed
Incremental updates assume that every document in the index was processed the same way. Any change to that processing breaks the assumption, because old and new entries would no longer be comparable.
Trigger | Why incremental updates are not enough |
|---|---|
New embedding model | Vectors from two models live in different spaces and cannot be compared |
Different embedding dimensions | The index expects one vector size |
New chunking strategy | Old documents keep old chunk boundaries until reprocessed |
New metadata fields | Old chunks lack the fields that filters depend on |
Index settings changed, such as HNSW parameters or vector quantization | The structure itself has to be rebuilt |
Old terms were tokenised differently | |
Heavy churn from deletes | Recall can degrade until the vector index is rebuilt |
The embedding model case is the most common. Mixing vectors from two models in one index produces embedding drift: queries embedded with the new model match new documents well and old documents poorly, and nothing raises an error.
How to re-index without downtime
The usual pattern is a parallel build. A second index is created with the new settings and filled from source while the live index keeps serving queries. New and changed documents are written to both during the build, so the new index does not start out stale. When the build finishes, queries switch to the new index, often by moving an alias, and the old one is kept for a short time in case the switch needs reversing.
Before switching, compare the two. A golden dataset of real questions scored with recall at k or another retrieval evaluation metric shows whether the new model or chunking improves results, and catches regressions such as broken metadata filtering.
What re-indexing costs
A full rebuild re-embeds every chunk, so embedding cost scales with corpus size. It also takes time: a large corpus can take hours or days, mostly because embedding APIs apply rate limiting and the job has to back off and retry with exponential backoff. Running the embeddings as batch inference is usually cheaper than real-time calls. If extraction output was not stored, the source files also have to be parsed again, which is often the slowest step. Keeping extracted text and chunks alongside the index makes future rebuilds much faster.
For multi-tenant systems with a per-tenant index, rebuilds can be staged tenant by tenant, which limits risk and spreads the cost.
Re-indexing fixes structural problems in the index. It does not fix stale knowledge unless the rebuild reads from up-to-date sources, so it belongs inside a wider knowledge base maintenance routine.
Re-indexing on Exabase
On Exabase, extraction, chunking and indexing happen inside storage. Files stored as Resources are indexed when they are written and searched through Deep Search, so the embedding model, chunk size and index settings are not configuration you maintain, and the usual triggers for a rebuild on your side do not apply. The post on the end of the embedding pipeline discusses that design, and the searching resources guide shows the query side.
What remains is content. When source documents change outside Exabase, a scheduled Worker can re-extract them so the index reflects what they say now, as described in the knowledge base solution. A failed Extract job can be retried with the reprocess endpoint without uploading the file again. Each tenant’s Base has its own index, which suits multi-tenant SaaS products. If you run your own vector database instead, best vector databases and Exabase vs Weaviate compare the options.
FAQs
What is re-indexing?
Re-indexing is rebuilding a search or vector index by processing every source document again and writing the results to a new index, rather than updating individual entries.
When should I re-index a vector database?
When you change the embedding model, the vector dimensions, the chunking strategy, the metadata schema or the index settings. Routine document changes only need incremental updates.
Can I mix embeddings from two models in one index?
No. Vectors from different models are not comparable, so similarity scores between them are meaningless. Rebuild the index with one model.
How do I re-index without downtime?
Build a new index in parallel, write new changes to both, evaluate the new index against a test set, then switch queries to it and keep the old index briefly as a fallback.
How long does re-indexing take?
It depends on corpus size and embedding throughput. Rate limits on embedding APIs are often the bottleneck, so large rebuilds are usually run as batch jobs over hours or days.
Do I need to re-index on Exabase?
Not for model or chunking changes, since those are handled inside Exabase storage. Content that changes at its source can be re-extracted by a scheduled Worker.
Related pages: Incremental indexing, Embedding drift, Stale knowledge, Document freshness, Knowledge base maintenance, Vector index, Embedding model, Knowledge base, RAG pipelines use case, Exabase vs Pinecone.