Expand description
The POST /api/v1/store/ingest request contract and its validation.
Body: {"vectors":[[id,[8 floats]],...],"dedup":true}. Anything else is
rejected: wrong shape, wrong dimensionality, non-finite floats, an empty
or oversize batch, unknown keys.
Structs§
- Ingest
Batch - A validated batch.
- Ingest
Vector - One vector of a batch.
Enums§
- Ingest
Error - Why a request was refused. Maps to an HTTP status.
Constants§
- DIMS
- Dimensionality of an ingested vector (the ADR-069 feature packet).
- INGEST_
PATH - Path every cog posts to.
- MAX_
BODY_ BYTES - Largest request body the bridge reads.
- MAX_
VECTORS_ PER_ BATCH - Most vectors in one request.
Functions§
- parse_
batch - Parse and validate a request body.
- valid_
project_ id - True for a project id: a canonical ULID, the same check every other
project id passes (
clawft_types::project::validate_id).