Interview preparation
UNDERSTAND. EXPLAIN. REPEAT.

Question library

Explained questions for the decisions developers make.

Filters
117 questions matching “Coding”

Hybrid workflows and state machines

AI Engineering·Deterministic and agentic workflows

A hybrid workflow combines deterministic control with model-driven interpretation or planning. A state machine defines named states and permitted transitions. The state machine constrains what can happen even when a model proposes something else.

Intermediate2 min read

Schema validation: Zod and Pydantic

AI Engineering·Guardrails

Schema validation verifies data shape, types, required fields, and declared constraints at runtime. Zod is commonly used in TypeScript; Pydantic serves a similar role in Python. These validators check structure, not whether facts are true or actions are…

Intermediate2 min read

Moderation and PII detection

AI Engineering·Guardrails

Content moderation categorizes content that may violate a product policy. PII detection identifies potentially private identity-linked information for masking, routing, or restricted handling. Both can use rules and models, and neither is perfectly accurate.

Intermediate2 min read

Hallucination mitigation, business rules, and approval

AI Engineering·Guardrails

Hallucination mitigation reduces unsupported model claims using evidence, constraints, validation, and abstention. Business-rule validation checks authoritative domain requirements. Human approval permits a specific action after a person reviews its concrete…

Intermediate2 min read

Golden datasets, test cases, and regression testing

AI Engineering·AI evaluation

A golden dataset is a curated set of representative inputs with expected outcomes, reference evidence, and scoring criteria. Regression testing reruns these cases after changes. AI tests often allow multiple acceptable phrasings while requiring the same…

Intermediate2 min read

Token optimization, prompt compression, and context trimming

AI Engineering·Cost and performance

Token optimization removes unnecessary model input/output while preserving task information. Prompt compression shortens instructions or evidence; context trimming selects only relevant history and sources. Shorter is useful only if important conditions…

Intermediate2 min read

PDFs, OCR, and document AI

AI Engineering·Multimodal AI

Document AI combines text extraction, OCR, layout/table understanding, and field extraction. A PDF may already contain usable text or require image interpretation. OCR reads characters; document understanding connects them to fields and structure.

Intermediate2 min read

Speech-to-text, text-to-speech, and audio understanding

AI Engineering·Multimodal AI

Speech-to-text converts spoken words into text. Text-to-speech produces spoken output from text. Audio understanding can also process nontext information in audio, depending on the model, but reliable interpretation of emotions or identity should not be…

Intermediate2 min read

Ollama, Hugging Face, and Transformers

AI Engineering·Local AI

Ollama simplifies running supported models locally through a runtime and API. Hugging Face hosts models, datasets, and libraries; Transformers is its widely used library for loading and using supported model architectures. A model repository is a distribution…

Intermediate2 min read

Tools and their safe contracts

AI Engineering·Insurance AI reference project

Never accept a model's customerId as proof of the current customer. Never let the model supply an unrestricted email URL, SQL query, database filter, or role field.

Advanced2 min read

Project 1 — Basic LLM chatbot

AI Engineering·Practical project roadmap

Build in this order. Each project extends a capability, not necessarily a separate repository. These are future learning projects; the notes remain in this one file. Move forward when you can explain the trade-offs and demonstrate the acceptance criteria,…

Intermediate2 min read

Project 5 — Tool-calling agent

AI Engineering·Practical project roadmap

Requirements: Read claim status, lookup policy, retrieve instructions, ask for missing IDs, and escalate. Start read-only.

Intermediate2 min read

Project 9 — Deterministic plus agentic workflow

AI Engineering·Practical project roadmap

Requirements: Interpret input, prepare a draft, validate required fields, wait for review, execute once, and notify reliably.

Intermediate2 min read

LangChain

AI Engineering·Interview preparation

Beginner — What does LangChain provide?

Intermediate2 min read

LangGraph

AI Engineering·Interview preparation

Beginner — What are nodes, edges, and state?

Intermediate2 min read

Workflows

AI Engineering·Interview preparation

Beginner — Deterministic versus agentic workflow?

Intermediate2 min read

Evaluation

AI Engineering·Interview preparation

Beginner — Why isn't normal unit testing enough?

Intermediate2 min read

Observability

AI Engineering·Interview preparation

Beginner — What do you trace in an AI request?

Intermediate2 min read

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