AIInterviewTraining logoAIInterview/Training
AI ENGINEERING · CUSTOMER DEPLOYMENTS

Harvey AI Engineer interview questions

Harvey builds legal AI, and its engineers sit inside a single BigLaw client for months at a time, turning idiosyncratic firm workflows into working LLM applications. Others own the RAG and multi-step pipelines behind the product and take new surfaces from zero to one. Interviews emphasize coding fundamentals, structured architecture thinking, and committing to a decision under ambiguity, which legal work supplies in quantity.

The Harvey AI Engineer interview process

Documented
RoleSoftware Engineer / Applied AI / ML Operations Engineer (legal AI; embedded former-lawyer Applied Legal Researchers). Beware GTM/sales loops on GlassdoorLoopSWE: 3-5 rounds, 2-4 weeks; candidates praise transparency (recruiters explain each round's purpose)
  1. 1
    Online assessment / tech phone screenPractical coding: reported 'spreadsheet' challenges, circular-dependency detection, and an in-memory hierarchical file system. Harvey publicly revamped front-end interviews away from DSA toward role-relevant questions.
  2. 2
    Hiring-manager screen (30 min)Background and motivation.
  3. 3
    Onsite (~2-hour block, ~4 sub-interviews)System design (production-grade file storage; indexing large legal documents at scale), a project deep-dive, and behavioral.
  4. 4
    ML Operations Engineer track (variant)Hands-on and practical, any tools allowed, with no explicit behavioral round.
WHAT THEY'RE EVALUATING
  • Practical coding (spreadsheets, dependency detection, in-memory file systems)
  • RAG and document-indexing system design for high-stakes legal work
  • Role-relevant problems over DSA
  • Customer/domain judgment; transparency is mutual

Compiled from our research and publicly available information (candidate reports and company interview guides). Interview loops change and are continuously iterated, and they vary by team, level, and region. Treat this as directional preparation, not an official spec, and confirm the exact rounds with your recruiter or hiring point of contact.

Questions modeled on Harvey loops

10 questions · 0 unlocked for you

More from the tracks Harvey's loop tests

The highest-signal questions across Harvey's core tracks.

16 questions · 13 unlocked for you

Go deeper on the topics Harvey's loop tests

The tracks that map to a Harvey AI Engineer loop, in the order to work through them.

The concepts Harvey's AI Engineer loop assumes you know

The vocabulary and mental models behind Harvey's questions, from our curriculum. Start with the foundations free; the deeper, interview-defining ideas are part of premium.

RETRIEVAL & AGENTS

Foundational
The RAG PipelineRetrieval-Augmented Generation anchors an LLM in outside knowledge: when a query arrives you pull the most relevant chunks from a knowledge base into the prompt, letting the model respond from actual sources rather than memory. This is the go-to remedy for hallucination and outdated knowledge, and refreshing it needs no retraining. Its stages are ingest and chunk, embed and index, retrieve (frequently rerank), then generate with citations. AI, ML, and GenAI interviews test it because RAG is the most common production LLM architecture.
CoreSign in
Vector Search and ANN IndexesVector search locates the embeddings closest to a query vector. Exact nearest-neighbor runs O(n) per query and will not scale, so production relies on Approximate Nearest Neighbor (ANN) indexes (HNSW, IVF, product quantization) that give up a little recall for enormous speedups. In practice the hard parts are the recall-vs-latency-vs-memory trade-off, metadata filtering, and coping with updates. AI, ML, and GenAI interviews test it because it is the engine beneath RAG and semantic search, and how you tune it directly sets retrieval quality and cost.
CoreSign in
Choosing and Adapting Embedding ModelsChoosing an embedding model is a call about retrieval quality, cost, and operational risk on your own data, not about which model leads a public leaderboard. The hard parts are benchmarking against your own queries, weighing dimensionality against storage and latency, judging whether to fine-tune for your domain, and preparing for the re-embedding migration whenever the model changes. AI, ML, and GenAI interviews test it because candidates reach for the leaderboard winner and overlook the drift and migration costs that bite later.
Advanced🔒 Premium
Agent Reliability and Long-Horizon RobustnessAgents over long horizons break down because per-step reliability multiplies: a step that works 95 percent of the time drops to roughly 60 percent across ten steps. The discipline spans consistent completion (not pass@k), recovering from errors, step and token budgets, human-in-the-loop checkpoints, and stopping cascading failure inside multi-agent systems. AI, ML, and GenAI engineer interviews test this to tell apart people who built a demo from people who shipped an agent that survives thousands of runs.

FOUNDATIONS OF LLMS & GENAI

Foundational
From RNNs to Transformers: RNN, LSTM, Seq2SeqRecurrent networks walk through a sequence one position at a time via a hidden state, an approach that is principled but slow and weak on long-range dependencies because gradients shrink across many steps. Gates in LSTMs and GRUs carry information further, and seq2seq encoder-decoder models with attention broke the single-vector bottleneck, the idea transformers later pushed all the way. AI, ML, and GenAI engineer interviews probe this because it explains where attention came from and why the field traded recurrence for parallelism.
Foundational
Classic NLP: Bag-of-Words, TF-IDF, and Word2VecBefore learned embeddings, text became sparse high-dimensional vectors through bag-of-words and TF-IDF, which tally words and weight them by distinctiveness while ignoring meaning and order. Word2Vec and GloVe swapped counts for dense vectors trained so words sharing contexts sit near each other, capturing semantic similarity. AI, ML, and GenAI engineer interviews probe this because sparse methods still win as cheap baselines and as the lexical half of hybrid retrieval, and because they clarify what dense embeddings actually repaired.
Foundational
TokenizationModels read neither characters nor words; they read tokens, subword chunks produced by an algorithm like BPE that maps text to integer IDs. Tokenization sets how many tokens a piece of text costs (driving price, latency, and context usage), why models miscount letters or stumble on rare words, and why non-English text costs more. AI, ML, and GenAI engineer interviews probe it because token accounting is the first thing that bites a production LLM bill.
Advanced🔒 Premium
Policy Optimization: PPO and GRPOPPO and GRPO are the reinforcement-learning algorithms that optimize an LLM against a reward, the RL step in RLHF and in training reasoning models. PPO is the established workhorse, nudging the policy in small, clipped steps to stay stable; GRPO (used by DeepSeek-R1) removes PPO's separate value network and instead normalizes rewards within a group of samples, which is simpler and cheaper for LLMs. AI, ML, and GenAI interviews probe it because it explains how alignment and reasoning training actually run, and why RL on verifiable rewards scales.

CODING & ENGINEERING CRAFT

Foundational
Parsing Messy, Real-World DataProduction data arrives messy: formats vary, fields go missing, encodings break, records come malformed, and edge cases appear that you never planned for. Defensive parsing tackles the unhappy path on purpose, checking input, choosing per record whether to skip, default, or fail, and keeping one bad record from taking down the batch. Applied-AI interviews test this (frequently as a coding screen) because feeding documents and data into AI systems is half the work, and fragile parsers built for clean input break the moment they hit production.
Foundational
The Big-O That Actually MattersBig-O complexity counts most where it actually hurts in real AI systems: dodge accidental O(n^2) (all-pairs comparisons, repeated linear scans), reach for hash maps to get O(1) lookups, and understand that vector search stays approximate exactly because exact nearest-neighbor costs O(n) per query. The useful skill is catching the quadratic trap and the data-structure fix, not naming complexity classes. Applied-AI interviews test it because the gap between O(n) and O(n^2) separates a system that scales from one that topples over.
CoreSign in
Testable Design for AI SystemsAI systems resist testing because models are non-deterministic and reach out to external services, so testability must be built in from the start: put the non-deterministic model behind an interface so you can mock it, split deterministic logic (parsing, retrieval, formatting) away from the model call and test it as usual, and check metric tolerances instead of exact outputs. Applied-AI interviews test this because untestable LLM code regresses without warning, and the habit of mocking the model and testing the deterministic pieces is what keeps a system reliable.
CoreSign in
Streaming and BackpressureWhen data is too large to hold in memory or keeps arriving without end, you handle it as a stream, one piece at a time, with bounded memory, rather than pulling it all in. Backpressure is the mechanism that keeps a fast producer from swamping a slow consumer, by signaling 'slow down' instead of buffering without limit until memory runs out. Applied-AI interviews test it because AI pipelines chew through huge datasets and token streams, and the naive load-everything approach OOMs while unbounded buffering crashes under load.

BEHAVIORAL & PROJECT DEEP-DIVES

Foundational
Requirements DiscoveryThe priciest AI errors trace back to building the wrong thing, and the reason is nearly always discovery that got skipped. Requirements discovery is surfacing the real problem hiding behind the stated request: who the user is, what success means, what the data actually looks like, and the constraints, all before you build. The central skill is asking the right questions and reasoning backwards from the user's outcome rather than their proposed solution. AI, ML, and GenAI engineer interviews probe it because understanding the problem is the half of the job most engineers under-train.
Foundational
Scoping Under AmbiguityReal AI projects begin ambiguous: fuzzy goals, unknown data, requirements that shift. Scoping under ambiguity means advancing regardless, locating the smallest version that delivers value (an MVP), ranking work by impact, stating assumptions openly, and de-risking the unknowns early instead of holding out for perfect clarity. AI, ML, and GenAI engineer interviews probe it because trimming a fuzzy problem to a shippable first slice, and acting decisively without full information, is what sets senior engineers apart.
Foundational
Translating Technical Trade-offsAI, ML, and GenAI engineers constantly translate between technical reality and business stakeholders: explaining the accuracy-latency-cost triangle, why the model cannot be 100% reliable, and what a trade-off means for the user, in the stakeholder's language rather than jargon. The skill is framing decisions as business impact and risk, and staying honest about uncertainty. These interviews probe it because the best technical answer is worthless if you cannot help a non-technical decision-maker choose, and AI's probabilistic nature makes this translation essential.
Foundational
Communicating with Non-Technical StakeholdersA large share of AI, ML, and GenAI engineering work is explaining complex systems to non-technical people: executives, customers, domain experts. The skill is meeting the audience where they are, leading with the outcome and the 'so what', favoring analogies over jargon, staying honest about limitations, and tailoring depth to who is listening. These interviews probe it because making an AI system understandable and trustworthy to a non-expert is half the job, and explaining a model's behavior to a skeptical stakeholder is a routine task.
HARVEY INTERVIEW FAQ
What is the Harvey AI Engineer interview process?

Software Engineer / Applied AI / ML Operations Engineer (legal AI; embedded former-lawyer Applied Legal Researchers). Beware GTM/sales loops on Glassdoor. Typical loop: SWE: 3-5 rounds, 2-4 weeks; candidates praise transparency (recruiters explain each round's purpose). Stages: Online assessment / tech phone screen → Hiring-manager screen (30 min) → Onsite (~2-hour block, ~4 sub-interviews) → ML Operations Engineer track (variant). Key focus: Practical coding (spreadsheets, dependency detection, in-memory file systems). Compiled from public reports; loops change over time, so confirm the exact rounds with your recruiter.

What kind of AI engineers does Harvey hire?
What does the Harvey interview test?
What makes legal RAG hard?

Prep the whole Harvey loop, not just one round

Every question, in a sequenced journey, with answers that get offers, plus the curriculum behind them. Free questions and concepts in each track, no card needed.

Independent and not affiliated with Harvey. All trademarks belong to their owners.