An index entry is not permission.
Tenant-owned document records determine which version is current and ready. Versioned passages and cached citations are checked before reuse.
Engineering / From event to evidence
A document workspace is also a lifecycle problem. Ownership, versions, retries, and source eligibility have to stay aligned while work moves between services.
The application distributes ingestion across queues and compute jobs. Embeddings and generation come from hosted APIs.
Download project brief PDF01 / The architecture
The Next.js client calls a Hono API on Cloudflare Workers. Cognito authenticates users; DynamoDB owns document state. Explore how an upload becomes usable evidence.
An authenticated upload creates a tenant-owned DynamoDB record with an opaque object key, version, and job identity. An object event identifies work; it does not grant authority to process it.
02 / The decisions
Tenant-owned document records determine which version is current and ready. Versioned passages and cached citations are checked before reuse.
Conditional state writes bind work to a source, version, and job. Workflow executions use separate intermediate paths so retries cannot silently share output.
Gemini document and query embeddings share a model space. Switching to another model requires reindexing, even when the vector lengths match.
03 / Reproducible evidence
The v2 corpus describes a fictional ML workspace. Its facts are test material, separate from the application's operating configuration.
This fixed lexical reference uses no gold labels or model calls. It scores 14 development questions. It retrieves most labeled evidence, while failing to abstain correctly on the two unanswerable development questions.
Download evaluation summaryReference-retriever results only. These figures do not measure generated-answer accuracy, deployed application performance, latency, or cost. Precision uses a fixed K denominator.
04 / Reliability in practice
Focused checks exercise document ownership, replaced jobs, stale context, embedding shape, complete vector deletion, and corpus integrity. The release passed all seven repository CI jobs.
A separate bounded synthetic ingestion run produced 224 ready vectors from 100,000 tokens with matching document/version metadata. That observation establishes ingestion correctness for that run; throughput, answer quality, and cost need their own measurements.
The website and example walkthrough work independently of cloud ingestion. Live document processing depends on configured AWS and model-provider access. Legacy vectors produced with an earlier embedding fallback require reindexing.