bootstrap_models
Pre-download the embedding model and optional reranker to prevent sync delays. Run before initializing a project.
Instructions
Pre-download the embedding model (and optionally the reranker) so syncs never wait on them.
Downloads the local embedding model (bge-small-en-v1.5, ~130MB ONNX) into
the project-local cache, ASYNCHRONOUSLY, via onnxruntime/fastembed (no
torch/transformers dependency). Returns a job_id immediately. This is the
recommended first step after installing/configuring the server — call it
BEFORE init_jama_project so the first sync isn't slowed by a model
download. Models already cached are skipped. Poll progress with
get_bootstrap_progress roughly every 2 minutes, reporting each sample to
the user, until status is DONE or ERROR.
The cross-encoder reranker (ms-marco-MiniLM-L-6-v2, ~80MB ONNX) is only
downloaded when explicitly enabled via RERANKER_ENABLED=1. The default
search path is pure RRF ordering (benchmarking showed it outperforms
rerank), so a default install needs NO reranker weights and bootstrap
completes after the embedding model alone.
Returns:
{"job_id": "...", "status": "RUNNING"} or, if a bootstrap is already
running, {"job_id": "...", "status": "RUNNING", "note": "..."}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||