Five connected vector search and RAG domains
A RAG system is a data, search, security, generation, and operations pipeline. A vector can be dimensionally valid yet stale. An ANN index can be fast yet miss eligible evidence after filtering. A hybrid rank can be relevant yet unauthorized. A fluent answer can cite a passage that does not support its claim. This roadmap treats each boundary as a testable engineering contract.
Embeddings, dimensions, chunking, and metadata
Weeks 1-2Build a reproducible representation pipeline. Treat source authority, structure, permissions, freshness, model, dimensions, and preprocessing as one versioned contract.
- Explain embeddings as vectors whose distance or similarity ranks related items
- Record model, deployment, dimensions, tokenizer, preprocessing, and normalization behavior
- Keep document and query vectors in a compatible versioned embedding space
- Relate unit normalization to cosine, dot product, and L2 ranking
- Compare fixed, paragraph, heading, procedure, table, and parent-child chunking
- Tune size and overlap on labeled boundary cases rather than folklore
- Preserve document/chunk IDs, source URI, section, checksum, product, version, language, and dates
- Preserve tenant and ACL metadata without exposing secrets
- Design idempotent updates, tombstones, deletes, re-embedding, and rollback
- Measure chunks, duplicates, embedding tokens, storage, ingestion latency, and failed items
Exact search, ANN indexes, metrics, and filters
Weeks 3-4Use exact eligible neighbors as ground truth, then tune approximate indexes and filters along an evidence-based speed-recall-resource frontier.
- Implement exact nearest-neighbor search as an ANN recall baseline
- Understand how HNSW navigates a multilayer proximity graph
- Tune HNSW construction and search candidates against recall, latency, memory, and writes
- Understand how IVFFlat or IVF-style indexes train lists and probe selected clusters
- Build IVF-style indexes after representative data exists and tune lists/probes
- Match cosine, dot-product, or L2 indexes to the embedding model and query operator
- Test warm/cold latency, p95/p99, throughput, concurrency, inserts, deletes, and rebuilds
- Measure low, medium, and highly selective filters
- Compare prefilter, postfilter, iterative scan, partial index, and partitioning behavior where supported
- Use query plans, backend diagnostics, exact comparisons, and filled top-k counts to troubleshoot
Hybrid retrieval, RRF, reranking, citations, and freshness
Weeks 5-6Protect exact identifiers with lexical search, broaden conceptual recall with vectors, fuse ranks, rerank bounded candidates, and carry authorized current provenance into every answer.
- Create separate lexical and vector baselines for exact and conceptual queries
- Run both under the same trusted permission and freshness scope
- Use RRF or a documented fusion method without treating raw score scales as interchangeable
- Preserve codes, names, dates, versions, and specialist terms during query processing
- Rerank only a bounded candidate set and measure incremental gain
- Deduplicate overlapping chunks and preserve parent/neighbor relationships
- Assemble token-bounded context with immutable source and chunk identifiers
- Map material claims to authorized current supporting passages
- Abstain or escalate on missing, stale, conflicting, or insufficient evidence
- Measure source-to-index lag, update/delete propagation, citation validity, latency, and cost
Multi-tenant security, privacy, and AI risk management
Week 7Keep authorization and authority outside the model. Treat every query, source, retrieved passage, model output, citation, and telemetry event as data crossing a controlled boundary.
- Derive tenant, user, and group scope from authenticated identity in trusted code
- Enforce document access before reranking, model context, caching, citations, and telemetry
- Use row security, permission metadata, index partitioning, or supported permission-aware retrieval deliberately
- Run cross-tenant, forged-claim, removed-group, owner-bypass, and stale-ACL negative tests
- Treat retrieved instructions as untrusted evidence, never authority
- Keep secrets, system policy, allowlists, and credentials outside retrieved/model-controlled content
- Block arbitrary tools, files, networks, URLs, and data exports unless explicitly required and authorized
- Minimize and redact prompts, chunks, identity data, and outputs in telemetry
- Apply NIST AI RMF Govern, Map, Measure, and Manage throughout the lifecycle
- Define incident, correction, retention, deletion, evidence publication, and retirement controls
Evaluation, observability, failure injection, cost, and cleanup
Week 8Operate quality as a service characteristic. Separate ingestion, retrieval, ranking, answer, policy, and infrastructure failures, then make every release measurable and reversible.
- Build representative, adversarial, permission, freshness, and no-answer query slices
- Measure recall@k, MRR, nDCG, filter correctness, duplicate rate, and eligible top-k fill
- Measure answer correctness, completeness, claim support, citations, abstention, and safety
- Calibrate automated graders against deterministic checks and human review
- Trace ingestion, embedding, search, filters, fusion, reranking, context, generation, and evaluation
- Dashboard freshness, versions, quality probes, p50/p95/p99 latency, throughput, failures, resources, tokens, and cost
- Inject stale vectors, partial batches, malformed metadata, selective filters, overload, timeouts, and telemetry loss
- Use versioned manifests, canaries, release gates, kill controls, rebuilds, and rollback
- Attribute embeddings, text/vector storage, index memory, queries, reranking, generation, evaluation, and telemetry
- Stop ingestion and delete data, indexes, models, identities, secrets, telemetry, infrastructure, and billing footprint
PrepKloud vector search and RAG learning surfaces
Twenty-five original scenarios across representations, indexes, hybrid ranking, security, evaluation, latency, cost, and troubleshooting. Vector search and RAG flashcards
Review dimensions, metrics, chunking, HNSW, IVF, filters, RRF, reranking, citations, authorization, evaluation, and operations. Two substantial projects
Build secure cited support RAG and a retrieval evaluation/operations platform with dashboards and failure injection. Complete vector search and RAG guide
Read the practical architecture, quality, security, governance, operations, troubleshooting, and portfolio strategy. AI, data, search, platform, and cloud jobs
Explore roles that use retrieval, search infrastructure, applied AI, data engineering, platform engineering, and SRE skills. Editorial policy
Review PrepKloud's sourcing, independence, correction, and update approach.
Official and authoritative primary sources
Study exact and approximate search, HNSW, IVFFlat, metrics, filters, iterative scans, hybrid retrieval, monitoring, multitenancy, and row-level security.
Open pgvector docs · PostgreSQL row securityVerify vector index, k-NN, filtering, neural and lexical queries, score normalization, rank fusion, search pipelines, storage, and troubleshooting against the deployed version.
Open vector search docs · Hybrid searchUse official documentation for vector index schemas, HNSW and exhaustive KNN, cosine/dot/L2, filter modes, hybrid RRF, semantic ranking, and permission-aware retrieval.
Vector search · Hybrid searchReview embedding dimensions and normalization, semantic search, attributes, filters, ranking, chunking, vector-store lifecycle, synthesis, evaluations, usage, and current cost.
Embeddings · RetrievalGround component and end-to-end evaluation in current official evaluators and separate retrieval quality from grounded answer quality and operational behavior.
RAG evaluatorsApply Govern, Map, Measure, and Manage to accountability, context, impacts, measurement, monitoring, incident response, and retirement.
NIST AI RMF · Generative AI ProfileFrequently asked questions
Is this vector search and RAG path a certification?
No. It is an independent practical engineering path with original checks and projects. It is not an exam, certification, credential, passing-score program, or guarantee.
Which vector database is required?
None is mandatory. Use pgvector, OpenSearch, Azure AI Search, or another authorized disposable environment whose current official documentation supports the experiments. Learn portable contracts and measure implementation-specific behavior.
Does a higher similarity score prove an answer is correct?
No. Similarity orders candidates under a selected embedding and metric. It does not prove source authority, freshness, permission, claim support, or final answer correctness.
How is secure multi-tenant RAG implemented?
Trusted code derives tenant and group scope from authenticated identity and enforces it before unauthorized chunks reach reranking, context, caches, citations, or telemetry. Negative tests must prove cross-scope access fails.
What projects are included?
The first builds secure cited product-support RAG with hybrid retrieval and authorization filters. The second compares exact, HNSW, IVF-style, chunking, filter, fusion, and reranking variants through dashboards, release gates, and injected failures.
Learn retrieval by measuring every boundary
Check design judgment, review the core concepts, and build systems that can authorize, retrieve, rank, cite, abstain, resist hostile content, evaluate, alert, recover, roll back, and clean up.