Skip to content
tezvyn:

LLMs & Generative AI

Large language models, chatbots, agents, prompt engineering

182 bites

Test yourself: Top 30 intermediate LLMs & Generative AI interview questionsMultiple choice, with the correct answer and why it is correct on every question. Free, no sign-in.

Intermediate everything in LLMs & Generative AI, page 7

Post-Training Quantization: Shrink Models Without Retraining
intermediate2 min read

Post-Training Quantization: Shrink Models Without Retraining

Post-Training Quantization (PTQ) shrinks a pre-trained model by converting its weights to lower precision, like turning a WAV file into an MP3. Use it to run large models on consumer GPUs without costly retraining.

intermediate2 min read

ML Interpretability: Cracking Open the Black Box

ML interpretability cracks open the 'black box' to explain *why* a model made a specific decision. It's essential in high-stakes fields like finance or medicine to ensure automated decisions are fair. The footgun is trusting accuracy alone.

Adversarial Attacks: Tricking LLMs into Misbehaving
intermediate2 min read

Adversarial Attacks: Tricking LLMs into Misbehaving

Adversarial attacks are inputs designed to trick an LLM, bypassing its safety alignment. This is how "jailbreaks" coax models into generating harmful content. The footgun is assuming safety training makes a model foolproof; it just makes attacks more subtle.

LLM Guardrails: Keeping Model Outputs on Track
intermediate2 min read

LLM Guardrails: Keeping Model Outputs on Track

LLM guardrails are safety policies that steer model outputs, acting like bumpers in a bowling alley to prevent responses from going off-topic, leaking data, or generating harmful content. They are crucial for topic control and preventing prompt injections.

LLM Red Teaming: Adversarial Security Testing
intermediate2 min read

LLM Red Teaming: Adversarial Security Testing

LLM Red Teaming is a simulated attack where you proactively try to break your own AI to find security flaws. It's used to test for vulnerabilities like prompt injection or data leakage, which traditional security tools miss.

intermediate2 min read

HellaSwag: A Benchmark Designed to Fool LLMs

HellaSwag is a commonsense benchmark designed to fool language models. It asks an AI to pick the most logical sentence ending, but the wrong answers are specifically generated to trick machines, not humans. It's used to test for true contextual understanding.

intermediate2 min read

Inception Score: Judging AI Art for Quality and Variety

Inception Score judges an AI image generator on quality and variety, using a classifier to check if images are distinct and the overall set is diverse. Its main footgun is that it only measures what another AI can classify, not what a human finds appealing.

intermediate2 min read

Text-to-Speech (TTS): Turning Text into Spoken Audio

Text-to-Speech (TTS) systems are digital voice actors, converting written language into artificial human speech. They are the core of any system that needs to speak text aloud.

Audio Spectrograms: Turning Sound into Images for AI
intermediate2 min read

Audio Spectrograms: Turning Sound into Images for AI

A spectrogram turns sound into an image, plotting frequency against time, with color showing intensity. This lets vision-based AI models "see" audio for tasks like speech recognition or music generation. The footgun is mistaking it for a simple waveform.

intermediate2 min read

Large Multimodal Models (LMMs): Beyond Text

An LMM is like a large language model that can also see and hear. It processes and connects information from multiple sources—like text, images, and audio—to perform tasks like describing a picture or answering questions about a video.

intermediate2 min read

Multimodal Fusion: Combining Senses for AI

Multimodal fusion lets an AI combine data types like text, images, and audio into one understanding, much like a human brain. It's key for visual question answering or analyzing video sentiment.

intermediate2 min read

Joint Embedding Space: A Rosetta Stone for AI

A joint embedding space acts like a Rosetta Stone, mapping different data types—like images and text—to a shared coordinate system where similar concepts are close together. This powers text-to-image models and cross-modal search.

intermediate2 min read

Fréchet Inception Distance (FID): Grading AI Art

FID grades AI-generated images by comparing their statistical "vibe" to real ones. It uses a pre-trained network (InceptionV3) to see if a batch of generated images has similar feature distributions to a real dataset. A lower score is better.

intermediate2 min read

Mode Collapse: When Your AI Gets Stuck in a Rut

Mode collapse is when a generative AI finds a “cheat” and produces the same few outputs over and over. This is a classic failure in GANs where the generator stops learning the full data distribution.

Text-to-Image Synthesis: From Prompt to Picture
intermediate2 min read

Text-to-Image Synthesis: From Prompt to Picture

Text-to-image models translate words into pixels by learning statistical links between text and images. They power creative tools like DALL-E but don't truly understand prompts, leading to errors in logic like counting or spatial arrangement.

intermediate2 min read

Task Decomposition: Teaching LLMs to Plan

Task decomposition for an LLM agent is like writing a recipe: break a big goal into a checklist of small, executable steps. It's vital for complex requests like planning a trip, but a bad initial plan can cause cascading failures that doom the entire process.

LLMs Get 'Lost in the Middle' of Long Contexts
intermediate2 min read

LLMs Get 'Lost in the Middle' of Long Contexts

LLMs struggle to find information buried in the middle of long prompts. Performance is highest when key facts are at the beginning or end of the context. This impacts multi-document QA and RAG.

intermediate2 min read

Context Stuffing: Giving LLMs Short-Term Memory

Context stuffing adds external documents to an LLM's prompt, giving it temporary, task-specific knowledge. Use it for one-off questions on specific docs, but beware: it fails when documents exceed the model's context window limit, causing truncated data.

Hybrid Search: Combining Keyword and Vector Search
intermediate2 min read

Hybrid Search: Combining Keyword and Vector Search

Hybrid search combines keyword precision with vector search's conceptual understanding in one query. It excels at retrieving relevant documents for RAG by finding both exact matches (like names) and similar ideas.

Dense Passage Retrieval (DPR): Semantic Search for QA
intermediate2 min read

Dense Passage Retrieval (DPR): Semantic Search for QA

DPR finds answers by meaning, not just keywords. It converts questions and documents into vectors and finds the closest matches, forming the core of Retrieval-Augmented Generation (RAG).

We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.

See open roles