Interview preparation
UNDERSTAND. EXPLAIN. REPEAT.

Question library

Explained questions for the decisions developers make.

Filters
660 questions

What is RAG?

AI Engineering·RAG

RAG retrieves relevant external evidence and gives it to a model before answering. It lets the insurance assistant use current private policy documents and produce source-backed explanations instead of relying only on learned knowledge.

Foundation2 min read

RAG or long context?

AI Engineering·RAG

If the task already identifies a small permitted document set, long context may be simpler. For a large changing corpus, retrieval selects relevant evidence more efficiently. Both need access control, applicability checks, and answer evaluation.

Intermediate2 min read

How do you debug wrong RAG answers?

AI Engineering·RAG

I inspect parsing, document version and permissions, chunk boundaries, candidate recall, ranking, supplied context, and answer support in that order. I score retrieval and generation separately, then improve the failing stage rather than automatically using a…

Advanced2 min read

An answer cites a real document but is wrong. Why?

AI Engineering·RAG

The cited document may be irrelevant, expired, inapplicable, or missing an exception; the answer may also misinterpret it. I validate source eligibility and claim support, not just whether the link exists.

Advanced2 min read

Embeddings

AI Engineering·Interview preparation

Beginner — Explain an embedding.

Intermediate2 min read

Explain an embedding.

AI Engineering·Embeddings

It is a numerical vector that represents useful features of content, often meaning. Similar wording or meaning tends to produce nearby vectors, enabling retrieval of “vehicle collision” for a query about “car accident.”

Foundation2 min read

What does cosine similarity tell you?

AI Engineering·Embeddings

It compares vector direction and helps rank related content. A high score is not a probability that the passage is true or sufficient. I use a compatible metric and calibrate thresholds on domain-specific queries.

Intermediate2 min read

How do you upgrade embedding models?

AI Engineering·Embeddings

I version models and index data, re-embed the intended corpus into a separate compatible space, evaluate filtered retrieval, and switch query/index routing together. I preserve source data and support rollback instead of mixing arbitrary old and new vectors.

Advanced2 min read

Policy-code search fails despite good semantic search. What do you do?

AI Engineering·Embeddings

I add exact identifier fields and lexical/hybrid retrieval. Embeddings may not preserve rare codes or precise numbers well. I test actual identifiers and keep them intact during query rewriting and text preprocessing.

Advanced2 min read

Vector databases

AI Engineering·Interview preparation

Beginner — Why use a vector index?

Intermediate2 min read

Why use a vector index?

AI Engineering·Vector databases

It makes repeated similarity queries efficient over a growing corpus. Small datasets can use exact comparison, but larger collections need indexing and careful metadata filtering for relevance and eligibility.

Foundation2 min read

Exact versus approximate search?

AI Engineering·Vector databases

Exact search examines eligible vectors thoroughly; approximate search trades some nearest-neighbor recall for speed and scale. I benchmark with realistic filters, corpus sizes, and query patterns rather than assuming ANN is always required.

Intermediate2 min read

Dedicated vector store or existing database?

AI Engineering·Vector databases

I first test the existing database's vector capability against filtered recall, latency, lifecycle, security, and cost needs. A dedicated store is justified when it solves measured limitations enough to offset another operational dependency.

Advanced2 min read

Unauthorized documents are removed after top-k, leaving no results. What is wrong?

AI Engineering·Vector databases

The retrieval process selected candidates from an ineligible corpus. I move supported eligibility filters into retrieval and recheck object permissions before evidence reaches the model. Post-filtering alone can both underfill results and expose data upstream.

Advanced2 min read

LangChain

AI Engineering·Interview preparation

Beginner — What does LangChain provide?

Intermediate2 min read

What does LangChain provide?

AI Engineering·LangChain

Reusable model, prompt, tool, and retrieval components and higher-level agent integrations. It helps compose applications but does not own domain security or guarantee output truth.

Foundation2 min read

What is a chain?

AI Engineering·LangChain

A sequence of transformations or calls, such as prompt → model → parser. A chain can be deterministic and is not automatically an agent; an agent chooses some actions based on observations.

Intermediate2 min read

When would you avoid LangChain?

AI Engineering·LangChain

For a small direct API call with clear validation, plain SDK code may be easier to understand and maintain. I adopt abstractions when they reduce actual integration complexity and keep provider requests, costs, and failures inspectable.

Advanced2 min read

Difficulty is an editorial estimate. Completion means you chose to mark a question as understood.