InterviewStack.io LogoInterviewStack.io

NLP & Generative AI Questions

Natural Language Processing (NLP) and Generative AI topics, including language modeling, transformer architectures, large language models, text generation, prompt engineering, evaluation, and deployment considerations for AI-powered systems.

MediumTechnical
45 practiced
Explain approaches for privacy-preserving ML in NLP inference: client-side inference, model distillation to smaller models that run locally, secure enclaves (TEEs), homomorphic encryption, and differential privacy during fine-tuning. For each approach discuss latency, accuracy, and practicality trade-offs for a customer data sensitive application.
MediumTechnical
41 practiced
You must decide between two third-party LLMs for a knowledge assistant: a faster, cheaper model with slightly lower factual accuracy vs a slower, costlier model with better factuality. Discuss how you'd evaluate and choose (benchmarks, user experience metrics, latency SLOs, cost-per-query, fallback strategies) and how you might combine both to meet product goals.
EasyTechnical
33 practiced
Describe automatic evaluation metrics used for generated text (BLEU, ROUGE, METEOR, BERTScore). Explain what each focuses on, common pitfalls when applying them to open-ended generation (dialogue, creative writing), and when you must use human evaluation instead.
MediumTechnical
35 practiced
You must choose a vector database for a production semantic search service that will store 1M embeddings (dim 768), require 95th-percentile latency <50ms, support near-real-time inserts/deletes, and run on cloud-managed service with multi-region replication. Compare FAISS (self-hosted), Milvus, and a managed service like Pinecone. For each, discuss scalability, operational burden, index types, and recovery strategies.
MediumTechnical
42 practiced
Describe strategies for incremental updates of a large ANN (approximate nearest neighbor) vector index to support frequent inserts and deletes while keeping query latency low. Discuss trade-offs between background reindexing, multiple index generations, write buffers, and hybrid exact+approx search approaches.

Unlock Full Question Bank

Get access to hundreds of NLP & Generative AI interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.