Index generations
See the serving index, estimate the cost of a new embedding model, build a new generation alongside and serve it.
A generation is one complete index built with one embedding model and one index format. Searches always use the serving generation. A new one is built alongside, from the mirrors and the stored work items, while searches go on; changes that arrive meanwhile reach both. When it is complete it serves, and the generation it replaces is dropped a day later.
A new generation starts in two ways:
- You change the embedding model. Synaxis never re-embeds everything on its own: you see the cost first and start it.
- A release changes the index format. The upgrade starts a generation by itself, in the background.
To switch to a new embedding model
- Choose the model on Available (Embedding) with Use for the index (or change the embedding settings in the deployment files) and restart (Embeddings). Generations now warns: "The serving index was built with old model; the settings name new model. Start a generation to switch."
- Set the
embeddingbudget's price for the new model, so the estimate has a cost (Budgets). - In Generations, select New generation (see the cost first).
- Read the Cost estimate: how many points the generation embeds, about how many tokens, and the cost at the
embeddingbudget's price (or "No price is set for the model"). - Select Start the generation. The console answers The generation is building.
- Follow Progress: refs indexed of the total, and the connections whose work items are written. When every in-scope ref and every connection's work is in, the generation serves by itself.
From the CLI:
synaxis generations start --estimate
synaxis generations start --yes
synaxis generations list
Generation states
| State | Means |
|---|---|
| Building | Being filled, while searches use the serving one. One generation builds at a time |
| Serving | Answers every search, since Serving since |
| Retired | Replaced; its collection is dropped a day after |
| Dropped | Its collection is gone |
| Canceled | Stopped before it served |
Serve now or cancel
- Serve now makes a building generation serve before it is complete ("(forced)" is shown beside the date). The
refs it still lacks are indexed again at once. CLI:
synaxis generations serve <n>. - Cancel stops a building generation; the serving one is untouched. CLI:
synaxis generations cancel <n>.
Note: Building a generation embeds the whole index again, against the
embeddingbudget. If the budget runs out, the generation's jobs are held until there is room; searches keep using the serving generation.