NLP engineer interview questions and how to answer them

NLP engineer interview questions focus on building language features that work in production: collecting and labeling text data, choosing between rules, classic models, fine-tuned transformers and prompted LLMs, evaluating them honestly, and serving them within latency and cost limits. A typical loop has a coding round, an NLP and machine learning depth round, an NLP system design case and a project deep dive, plus behavioral questions. Interviewers want to see that you pick the simplest approach that meets the requirement and can prove it works.

By Published 8 min read

What an NLP engineer does day to day

An NLP engineer turns text into product behavior. Typical work includes routing support tickets, extracting fields from contracts or invoices, understanding search queries, detecting abuse, summarizing conversations and building retrieval and chat features on top of large language models. The job spans the whole pipeline: getting data and labels, building a baseline, training or prompting a model, measuring it on the cases that matter, deploying it behind an API and watching it after launch.

Titles overlap. A machine learning engineer covers all model types and more infrastructure; a generative AI engineer works mainly on LLM applications; research scientist roles lean toward new methods and papers. For concept questions such as how tokenizers, embeddings or BLEU work, use our NLP interview questions page. This page is about the role: the rounds, the engineering decisions and how to talk about your projects.

How the interview loop is usually structured

  1. Recruiter conversationWhich NLP problems you have shipped, languages and domains you have worked with, and whether you lean toward modeling, infrastructure or LLM applications.
  2. Coding roundA general algorithms problem or a practical text task in Python, such as building an n-gram counter, a simple tokenizer, a span-merging function or an evaluation script.
  3. NLP and ML depthTransformers, fine-tuning, embeddings, evaluation and the failure modes of language models, often driven by follow-up questions on your own answers.
  4. NLP system designDesign an end-to-end system for a text problem: data, labels, model, serving, evaluation and monitoring.
  5. Project deep dive and behavioralOne project in detail, then questions about working with product managers, annotators and other engineers.

Data and annotation questions

Data questions, what they test, and what a strong answer shows
QuestionWhat it testsWhat a strong answer shows
How do you write annotation guidelines for a new labeling task?Label designClear definitions with positive and negative examples, rules for ambiguous and multi-label cases, a pilot round on a small sample, then revisions based on where annotators disagreed.
How do you measure label quality?Data qualityOverlap a sample between annotators and compute agreement such as Cohen's kappa for two annotators, review disagreements, add gold questions, and track per-annotator accuracy over time.
You have only a few hundred labeled examples. What are your options?Low-resource strategyA strong prompted LLM baseline, fine-tuning a small pretrained encoder, few-shot methods, weak supervision with labeling rules, using an LLM to pre-label for human review, and active learning to choose which examples to label next.
How would you handle severe class imbalance in text classification?ImbalancePick metrics that show the rare class (per-class recall, precision-recall curves), use class weights or resampling, collect more rare examples on purpose, and tune the decision threshold to the business cost.
How do you split text data so the evaluation is honest?LeakageAvoid near-duplicates across splits, split by customer, document or time where the product will see new ones, and keep a test set nobody tunes against.
What does LLM-generated training data risk?Synthetic dataIt can be repetitive, carry the generator's errors and miss the messy language real users write. Mix it with real data, check diversity and keep a human-labeled test set.
How do you deal with personal data in a text corpus?PrivacyKnow what the data contains, minimize what you collect, detect and redact or pseudonymize personal fields before training, restrict access, and follow the company's retention rules.
Data questions, what they test, and what a strong answer shows. Scroll sideways on a small screen.
from collections import Counter


def cohens_kappa(a, b):
    """Agreement between two annotators, corrected for chance."""
    n = len(a)
    observed = sum(x == y for x, y in zip(a, b)) / n
    ca, cb = Counter(a), Counter(b)
    expected = sum(ca[k] * cb[k] for k in set(a) | set(b)) / (n * n)
    return (observed - expected) / (1 - expected)


ann1 = ["billing", "billing", "bug", "bug", "other", "billing", "bug", "other", "billing", "bug"]
ann2 = ["billing", "bug", "bug", "bug", "other", "billing", "bug", "billing", "billing", "bug"]
print(round(cohens_kappa(ann1, ann2), 3))   # 0.677
Inter-annotator agreement from scratch: Cohen's kappa corrects raw agreement (80 percent here) for the agreement expected by chance. Interviewers sometimes ask you to write this in the coding round.

Modeling choice questions

  • When would you use rules or regular expressions instead of a model? For narrow, stable patterns such as order numbers or dates in a fixed format, or as a fast first filter. Rules are cheap and explainable but break when the language varies.
  • When is a TF-IDF and logistic regression baseline enough? When categories are separated by vocabulary, data is moderate and latency or cost is tight. Always build it first; it tells you how much a larger model is really adding.
  • Fine-tune a small encoder or prompt a large LLM for classification? Prompting is fast to start and handles few labels, but costs more per request and drifts when the provider updates the model. A fine-tuned encoder is cheaper and faster at scale and fully under your control once you have enough labeled data.
  • How would you do named entity extraction for a new domain such as legal documents? Define the entity types with the domain experts, label a seed set, start from a pretrained token-classification model or an LLM with a strict output schema, and measure exact-span and partial-match scores separately.
  • When does parameter-efficient fine-tuning such as LoRA make sense? When you need to adapt a large model to a style or task but cannot afford to update and store all its weights. It trains small adapter matrices while the base model stays frozen.
  • How do you decide between retrieval-augmented generation and fine-tuning for a knowledge task? Retrieval when facts change or must be cited; fine-tuning to teach format, tone or a skill. They are often combined.
  • How do you handle long documents beyond a model's context window? Chunk with overlap, retrieve the relevant chunks, use hierarchical summarization, or choose a long-context model while watching cost and accuracy in the middle of long inputs.
  • How do you get structured output reliably from an LLM? Define a schema, use the provider's structured output or function calling feature where available, validate every response, and retry or fall back when validation fails.

Evaluation, serving and production questions

Production questions
QuestionWhat it testsWhat a strong answer shows
Your model has high offline F1 but users complain. Why?Offline versus onlineThe test set does not match production traffic, an important slice is weak, the threshold is wrong for the business cost, or preprocessing differs between training and serving. Compare real traffic samples and check slices.
How do you evaluate a summarization or chat feature?Generative evaluationA rubric for human review (faithfulness, coverage, tone), a fixed test set of real inputs, automatic checks for format and grounding, and LLM-as-judge only after checking it agrees with humans on a sample.
The model must answer in under 50 milliseconds. What can you do?LatencyUse a smaller or distilled model, quantize, export to an optimized runtime, batch requests, cache frequent inputs, truncate inputs sensibly and run on hardware that fits the throughput.
How do you monitor an NLP model after launch?MonitoringInput drift (length, language, vocabulary), prediction distribution, confidence, user feedback, a sample sent to human review each week, and alerts when any of these move.
How do you support several languages?MultilingualA multilingual pretrained model, test sets per language labeled by native speakers, attention to tokenization cost for some scripts, and deciding whether to translate first or model natively.
What is prompt injection, and how do you limit it?LLM securityUntrusted text containing instructions that try to override the system's. Separate instructions from content, restrict what tools the model can call, validate outputs, and never give the model more permissions than the user has.
How do you roll out a new model version safely?ReleaseShadow it against live traffic, compare on the evaluation set and on slices, release to a small share of users, watch business and quality metrics, and keep the old version ready for rollback.
Production questions. Scroll sideways on a small screen.

NLP system design questions

  • Design automatic routing of customer support tickets to the right team. Clarify categories and how often they change, start from historical tickets and agents' reassignments as labels, build a baseline, add a confidence threshold below which tickets go to a human queue, and track misroutes.
  • Design a system that extracts fields from scanned invoices. OCR first, then layout-aware extraction or an LLM with a schema, validation rules (totals add up, dates are valid), human review for low confidence and a feedback loop from corrections.
  • Design query understanding for an e-commerce search box. Spelling correction, intent and category classification, attribute extraction (size, color, brand), synonyms and embeddings for semantic matching, with offline relevance labels and online click metrics.
  • Design a content moderation pipeline for user comments. Fast filters for known bad patterns, a classifier per policy category, thresholds tuned per category, human review for borderline cases, appeals, and regular checks for bias against dialects.
  • Design an internal question-answering assistant over company documents. Ingestion and chunking, embeddings and a vector index with access control enforced at retrieval time, a model that answers with citations, evaluation on real employee questions and a way to report wrong answers.

Behavioral and project questions

  • Walk me through an NLP project from problem to launch. Cover the business goal, the data and labels, the baseline, what you tried, the metric you chose and why, what shipped, and what you would change.
  • Tell me about a model that failed in production. Say how you noticed, the root cause, the fix, and the check you added so it cannot happen silently again.
  • How did you convince a product manager that a simpler model was enough? Show the numbers side by side, including cost and latency, and agree on the quality bar before the comparison.
  • How do you work with annotators or domain experts? Regular calibration sessions, fast answers to edge-case questions, and treating disagreement as a signal that the guidelines need work.
  • How do you keep up with a field that changes this fast? Name a concrete habit, such as reproducing one paper or model release a month on your own data, rather than a list of newsletters.

Fictional example

Answering "Why did you not use a large language model for that project?"
Interviewer
You built an intent classifier for a bank's chat app with a fine-tuned small encoder. Why not just prompt an LLM?
Candidate
We tried that first, as the baseline. A prompted LLM got close on our labeled test set of about four thousand real messages, but it missed on short, slangy messages and on two intents that differ mainly by account type, and it added noticeable latency to every turn. We also had a requirement that customer messages stay within our own infrastructure. We had around twenty thousand historical messages with agent-assigned intents, so after cleaning those labels we fine-tuned a small multilingual encoder. It matched or beat the LLM on every slice we tracked, ran on CPU within our latency budget and cost far less per message. We kept the LLM for a fallback path that rewrites low-confidence messages for a human agent. If I did it again, I would have built the label-cleaning tools earlier; that took longer than the modeling.

A three-week preparation plan

  • Week 1: refresh transformers, fine-tuning, embeddings and evaluation metrics on the NLP questions page, and solve two text-processing coding problems a day in Python.
  • Week 1: write a one-page summary of two projects: data, labels, baseline, final model, metric, latency, cost and one failure.
  • Week 2: practice three system design cases aloud with a timer, always covering data, baseline, serving, evaluation and monitoring in that order.
  • Week 2: build a tiny end-to-end project if your recent work is thin: a classifier with a TF-IDF baseline, a fine-tuned model and an honest comparison.
  • Week 3: prepare behavioral stories about a failed model, a disagreement on approach and working with annotators, and questions about the team's data, evaluation and release process.

NLP engineers know better than most how much a transcript reveals. Natively, an AI interview assistant for Mac and Windows, transcribes your mock design and project rounds, drafts answer suggestions live when you are stuck, and reads a coding or design prompt from a screenshot so you can compare approaches. With your résumé and the job description added (Pro or the free trial), suggestions draw on your own projects. Reviewing the saved transcript is a quick way to see whether you stated the baseline and the metric before jumping to the model.

Questions people ask

What questions are asked in an NLP engineer interview?

Expect a coding round, questions on transformers, fine-tuning and evaluation, data and annotation quality, choosing between rules, classic models and LLMs, serving under latency limits, an NLP system design case, and a deep dive on one of your projects.

How is an NLP engineer interview different from a machine learning engineer interview?

It goes deeper on text: tokenization, labeling language data, multilingual issues, LLM prompting and retrieval, and evaluation of generated text, with less weight on other data types such as images or tabular features.

What NLP system design questions should I prepare?

Common cases are support ticket routing, extracting fields from documents, search query understanding, content moderation and a question-answering assistant over internal documents.

Do NLP engineer interviews still ask about classic NLP now that LLMs exist?

Often, yes. Interviewers want to see you build a simple baseline such as TF-IDF with logistic regression and justify when a larger model is worth its cost and latency.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP