Evidence at a Glance
BGE small English v1.5 retrieved an expected source for all eight answerable cases in the v0 set.
Eight answerable questions and two deliberately out-of-scope questions run through one repeatable suite.
Both baselines missed the two negative cases, a documented failure that defines the next experiment.
Overview
CloudLens is an observable retrieval baseline for official AWS serverless documentation. Version zero deliberately stops before answer generation: it returns ranked evidence with source URLs and similarity scores so retrieval failures remain visible instead of being disguised by fluent generated prose.
A six-page corpus covering Lambda, API Gateway HTTP APIs, DynamoDB integrations, and IAM is parsed into section-aware chunks with source, service, section, license, and retrieval metadata. Chunks and 384-dimensional vectors live in PostgreSQL with pgvector; a credential-free feature-hashing embedder provides the control baseline and FastEmbed's BGE small English v1.5 provides the semantic comparison.
Every search stores its query, embedding configuration, latency, and ranked results. A ten-case JSONL golden suite writes trace-linked evaluation reports, turning retrieval changes into measurable experiments rather than one-off chat demonstrations.
The Challenge
Generation makes a weak retrieval system look more complete than it is. If expected evidence is missing or an out-of-domain query still returns confident-looking chunks, adding an LLM only makes the root failure harder to diagnose.
The initial evaluation is intentionally small, which makes its measurements useful for development but not a production-quality claim. It must expose both the improvement from semantic embeddings and the negative cases the current similarity threshold cannot reject.
Key Engineering Decisions
Prove Retrieval Before Generation
The v0 contract returns evidence only. Generated answers and claim-level citation validation remain explicitly deferred until retrieval quality is visible and repeatable.
Preserve Provenance by Construction
Every chunk retains its source URL, title, service, section, retrieval date, and license context so ranked evidence never loses where it came from.
Make Embeddings Replaceable
Small interfaces allow the hashing baseline and local BGE semantic model to share ingestion, storage, retrieval, API, tracing, and evaluation contracts.
Publish the Failed Negative Test
The baseline report records 0% abstention accuracy instead of tuning the story around successful answerable queries.
What I Owned
Results
Valuable Lessons
A smaller honest retrieval milestone is more useful than a full RAG demo whose failure modes cannot be attributed.
Perfect recall on answerable questions does not imply a trustworthy system; negative-set behavior has to be measured separately.
