Implux Field GuideAGENTIC AI · FORWARD DEPLOYED ENGINEERING

A practical reference for designing agents, delivering software, and proving outcomes.

THE PRACTITIONER'S REFERENCE
Questions · Patterns · Practice

Technical deep dive / Retrieval systems

Vector search and database design

Prepare for embedding, approximate nearest-neighbor, metadata filtering, hybrid retrieval, reranking, and vector database trade-off questions. The core interview skill is to connect index behavior to the user's retrieval workload.

Exact vs approximate searchRecall / latency / costTenant-safe retrieval
Start from the retrieval job

A vector index is a retrieval component, not a knowledge base or authorization system by itself. Define the source of truth, update and deletion needs, query types, metadata filters, tenant boundary, quality target, traffic shape, and operational owner before selecting an index.

PrepareVersioned text + metadata
RetrieveDense / lexical / filters
RankFuse + rerank
GroundEvidence + citations
MeasureRecall + outcome + cost
A retrieval path keeps source governance and evaluation attached to vector similarity.

Embeddings and similarity

An embedding maps an input into a vector representation. Search ranks candidates according to a distance or similarity function such as cosine distance, dot product, or Euclidean distance. Those values are not a calibrated probability that a document is correct. The embedding model, vector dimension, preprocessing, and chosen metric must agree between query and indexed data. If the embedding model or chunking strategy changes, treat it as a new retrieval version and evaluate it before replacing the current one.

Exact search, ANN, and index trade-offs

Exact nearest-neighbor search scans the candidate space and can provide exact rankings, but its query cost grows with corpus size. Approximate nearest-neighbor (ANN) indexes search a smaller candidate region to reduce latency, trading some recall and adding index memory, build, and update costs. HNSW and IVFFlat are common examples: understand the graph-versus-cluster intuition, then measure recall and p95 latency under the actual filters and data distribution instead of memorizing one universally best setting. pgvector's official guide documents exact search, HNSW, IVFFlat, filtering, and iterative scans.

Metadata filtering is a correctness boundary

Filters express constraints that embeddings cannot reliably encode: tenant, document ACL, locale, status, product, time range, or data classification. Check whether filtering occurs before candidate search, during index traversal, or after approximate candidates are selected. Filter selectivity can change both result count and recall. For multi-tenant data, prevent one tenant's data from appearing in another tenant's result, and test both access correctness and whether a shared approximate index creates noisy-neighbor effects. Index metadata fields that are used frequently and benchmark representative small and large tenant slices.

Hybrid retrieval and reranking

Dense retrieval helps match semantic paraphrases; lexical methods such as BM25 can preserve exact identifiers, names, and rare terms. Hybrid search combines candidate lists, often using rank fusion, then may rerank a smaller candidate set with a more expensive model. Each stage spends latency and compute to improve a different quality dimension. Qdrant's docs explain dense and sparse retrieval, RRF, and multi-stage queries; Weaviate's search guide contrasts vector, hybrid, and filtered search. Compare methods on a labeled set that includes paraphrases, exact terms, rare entities, stale sources, and unanswerable queries.

Choose the storage architecture from constraints

OptionGood reason to consider itQuestions and costs
Postgres + pgvectorThe team already operates Postgres; vectors need joins, transactions, or close association with relational records.Measure ANN recall under filters, index memory/build time, write freshness, vacuum/reindex operations, and whether the DB workload remains healthy.
Dedicated vector serviceVector retrieval has distinct scaling, throughput, or operational needs that justify another data system.Compare metadata semantics, tenant isolation, replication/regions, backups, consistency, integration effort, spend, and migration/export path.
Search platform with vector capabilityKeyword, filters, faceting, and semantic retrieval need a shared query and relevance pipeline.Validate hybrid ranking control, vector limitations, index lifecycle, relevance evaluation, and data/security guarantees for the workload.

Do not answer “use a vector database” as a complete design. Explain why existing relational or search infrastructure is insufficient, how writes stay consistent with source records, and how the team will recover or rebuild the index.

Operations and migration

  1. Keep lineage

    Store stable source IDs, tenant/access metadata, content version, parser/chunker version, embedding model/version, and ingestion timestamp.

  2. Update safely

    Make upserts and deletes idempotent. Handle source changes, tombstones, retries, and partial ingestion so stale chunks cannot win retrieval.

  3. Benchmark before cutover

    Build a parallel index, compare recall and access checks on a holdout set, observe tail latency and spend, then switch traffic with a rollback route.

  4. Monitor behavior

    Track empty-result rate, relevant-document recall, filter rejection, source freshness, query latency, index health, and user correction or escalation.

Vector search interview practice

Answer each prompt by naming the workload, stating assumptions, choosing a baseline, surfacing the recall/latency/cost or correctness trade-off, and proposing a measurement. Use the answer cue to add the failure path and operational owner.

technical judgment1 source

A product starts with 80,000 support documents and Postgres is already the system of record. How would you choose between pgvector and a separate vector service, and what workload evidence would change the choice?

Source: Synthesized vector-search practice

How to build a strong answer

For a comparison or choice: Choose criteria from the actual workload: quality, control, failure isolation, latency, cost, team skill, and change frequency.

Compare at least two plausible options under the same assumptions; identify the point where the recommendation changes.

Name the migration or fallback path and the signal that would tell you the choice is no longer working.

Topic lens: State the workload and access constraints, explain the recall/latency/storage trade-off, and describe how you would evaluate the result.

Related questions and scenario follow-ups +3

Relevant questions already answered

Variants and interviewer follow-ups

  1. Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?

    Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.

  2. Failure variant: Assume a source is revoked or updated while stale chunks and cached answers remain. What is the safe response, and which system of record determines whether it is complete?

    Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.

  3. Proof probe: Which single test or production signal would most quickly falsify your proposed answer?

    Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.

Use the topic guide’s answer frame, trade-off table, and failure analysis to answer each variant. Follow-ups are synthesized practice, not additional source questions.

fundamentals1 source

Explain exact nearest-neighbor search versus approximate search. When would recall loss be acceptable, and how would you measure the latency and memory trade-off?

Source: Synthesized vector-search practice

How to build a strong answer

For a comparison or choice: Choose criteria from the actual workload: quality, control, failure isolation, latency, cost, team skill, and change frequency.

Compare at least two plausible options under the same assumptions; identify the point where the recommendation changes.

Name the migration or fallback path and the signal that would tell you the choice is no longer working.

Topic lens: State the workload and access constraints, explain the recall/latency/storage trade-off, and describe how you would evaluate the result.

Related questions and scenario follow-ups +3

Relevant questions already answered

Variants and interviewer follow-ups

  1. Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?

    Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.

  2. Failure variant: Assume traffic or context length grows tenfold while the p99 latency target stays fixed. What is the safe response, and which system of record determines whether it is complete?

    Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.

  3. Proof probe: Which single test or production signal would most quickly falsify your proposed answer?

    Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.

Use the topic guide’s answer frame, trade-off table, and failure analysis to answer each variant. Follow-ups are synthesized practice, not additional source questions.

fundamentals1 source

Compare HNSW and IVFFlat at a conceptual level. What are the build, memory, recall, update, and query-time implications you would test for this workload?

Source: Synthesized vector-search practice

How to build a strong answer

For a comparison or choice: Choose criteria from the actual workload: quality, control, failure isolation, latency, cost, team skill, and change frequency.

Compare at least two plausible options under the same assumptions; identify the point where the recommendation changes.

Name the migration or fallback path and the signal that would tell you the choice is no longer working.

Topic lens: State the workload and access constraints, explain the recall/latency/storage trade-off, and describe how you would evaluate the result.

Related questions and scenario follow-ups +3

Relevant questions already answered

Variants and interviewer follow-ups

  1. Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?

    Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.

  2. Failure variant: Assume a dependency times out after a side effect may have committed. What is the safe response, and which system of record determines whether it is complete?

    Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.

  3. Proof probe: Which single test or production signal would most quickly falsify your proposed answer?

    Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.

Use the topic guide’s answer frame, trade-off table, and failure analysis to answer each variant. Follow-ups are synthesized practice, not additional source questions.

technical judgment1 source

A filtered nearest-neighbor query returns too few results for a small tenant. How could approximate candidate generation and post-filtering cause this, and how would you fix it without weakening isolation?

Source: Synthesized vector-search practice

How to build a strong answer

For a design question: Clarify the user, workflow boundary, success condition, scale, data sensitivity, and actions the system may take.

Walk one request end to end. Separate deterministic policy from uncertain model behavior, and say where state and authority live.

Stress one realistic failure, explain recovery and human takeover, then define launch criteria and an operating owner.

Topic lens: State the workload and access constraints, explain the recall/latency/storage trade-off, and describe how you would evaluate the result.

Related questions and scenario follow-ups +3

Relevant questions already answered

Variants and interviewer follow-ups

  1. Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?

    Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.

  2. Failure variant: Assume a dependency times out after a side effect may have committed. What is the safe response, and which system of record determines whether it is complete?

    Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.

  3. Proof probe: Which single test or production signal would most quickly falsify your proposed answer?

    Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.

Use the topic guide’s answer frame, trade-off table, and failure analysis to answer each variant. Follow-ups are synthesized practice, not additional source questions.

technical judgment1 source

How do you choose between dense, sparse or lexical, and hybrid retrieval for natural-language paraphrases mixed with identifiers and exact policy terms?

Source: Synthesized vector-search practice

How to build a strong answer

For a comparison or choice: Choose criteria from the actual workload: quality, control, failure isolation, latency, cost, team skill, and change frequency.

Compare at least two plausible options under the same assumptions; identify the point where the recommendation changes.

Name the migration or fallback path and the signal that would tell you the choice is no longer working.

Topic lens: State the workload and access constraints, explain the recall/latency/storage trade-off, and describe how you would evaluate the result.

Related questions and scenario follow-ups +3

Relevant questions already answered

Variants and interviewer follow-ups

  1. Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?

    Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.

  2. Failure variant: Assume a source is revoked or updated while stale chunks and cached answers remain. What is the safe response, and which system of record determines whether it is complete?

    Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.

  3. Proof probe: Which single test or production signal would most quickly falsify your proposed answer?

    Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.

Use the topic guide’s answer frame, trade-off table, and failure analysis to answer each variant. Follow-ups are synthesized practice, not additional source questions.

technical judgment1 source

A new embedding model is better on a benchmark but has a different dimension and score distribution. How would you migrate the index without mixing incompatible vectors or serving stale records?

Source: Synthesized vector-search practice

How to build a strong answer

For a design question: Clarify the user, workflow boundary, success condition, scale, data sensitivity, and actions the system may take.

Walk one request end to end. Separate deterministic policy from uncertain model behavior, and say where state and authority live.

Stress one realistic failure, explain recovery and human takeover, then define launch criteria and an operating owner.

Topic lens: State the workload and access constraints, explain the recall/latency/storage trade-off, and describe how you would evaluate the result.

Related questions and scenario follow-ups +3

Relevant questions already answered

Variants and interviewer follow-ups

  1. Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?

    Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.

  2. Failure variant: Assume a source is revoked or updated while stale chunks and cached answers remain. What is the safe response, and which system of record determines whether it is complete?

    Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.

  3. Proof probe: Which single test or production signal would most quickly falsify your proposed answer?

    Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.

Use the topic guide’s answer frame, trade-off table, and failure analysis to answer each variant. Follow-ups are synthesized practice, not additional source questions.

system design1 source

Design a retrieval evaluation set and metrics for a vector search service. Separate candidate recall, ranking quality, access correctness, answer grounding, latency, and cost.

Source: Synthesized vector-search practice

How to build a strong answer

For a design question: Clarify the user, workflow boundary, success condition, scale, data sensitivity, and actions the system may take.

Walk one request end to end. Separate deterministic policy from uncertain model behavior, and say where state and authority live.

Stress one realistic failure, explain recovery and human takeover, then define launch criteria and an operating owner.

Topic lens: State the workload and access constraints, explain the recall/latency/storage trade-off, and describe how you would evaluate the result.

Related questions and scenario follow-ups +3

Relevant questions already answered

Variants and interviewer follow-ups

  1. Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?

    Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.

  2. Failure variant: Assume a source is revoked or updated while stale chunks and cached answers remain. What is the safe response, and which system of record determines whether it is complete?

    Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.

  3. Proof probe: Which single test or production signal would most quickly falsify your proposed answer?

    Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.

Use the topic guide’s answer frame, trade-off table, and failure analysis to answer each variant. Follow-ups are synthesized practice, not additional source questions.

technical judgment1 source

Search latency rises after adding metadata filters and a larger HNSW index. What would you inspect, and which recall, filter selectivity, index, and query parameters would you change first?

Source: Synthesized vector-search practice

How to build a strong answer

For an implementation question: State the input/output contract, invariants, trust boundary, and what malformed or partial data means.

Describe the smallest correct implementation and where validation, authorization, and idempotency happen.

Cover edge tests, timeouts, retries, and how a reviewer can reproduce the result.

Topic lens: State the workload and access constraints, explain the recall/latency/storage trade-off, and describe how you would evaluate the result.

Related questions and scenario follow-ups +3

Relevant questions already answered

Variants and interviewer follow-ups

  1. Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?

    Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.

  2. Failure variant: Assume traffic or context length grows tenfold while the p99 latency target stays fixed. What is the safe response, and which system of record determines whether it is complete?

    Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.

  3. Proof probe: Which single test or production signal would most quickly falsify your proposed answer?

    Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.

Use the topic guide’s answer frame, trade-off table, and failure analysis to answer each variant. Follow-ups are synthesized practice, not additional source questions.

Further reading: pgvector, Qdrant hybrid and multi-stage queries, Weaviate search, and Pinecone index configuration.

Connect retrieval to the rest of the design