Usage
Run it as gluon fixtures corpus (in the repository, cargo run -p gluon-cli -- fixtures corpus).
Console / text
Index a large contract corpus into a scratch Elastic index, for result-set latency (F14)
Usage: gluon fixtures corpus [OPTIONS]
Options:
--count <COUNT> [default: 1000000]
--environment <ENVIRONMENT> [default: ""]
--dims <DIMS> [default: 8]
--batch <BATCH> [default: 20000]
--start <START> [default: 0]
-h, --help Print help
What it reads and writes
It writes --count synthetic contracts (default 1,000,000) in batches of --batch into the Elastic index of the environment you name with --environment, and prints progress. --start continues an interrupted run. It refuses the configured environment, so the corpus never lands in the index your server reads. To query it, serve the scratch environment with GLUON_ENVIRONMENT and GLUON_EMBEDDING_DIMS set to match.
Before you run it
It needs Elastic and the key service, and the default run writes a million documents. Try a small --count first.
