← All certifications

GenAI · 20 topics

Testing with Generative AI study glossary

Generative AI concepts, applications and evaluation.

Read the GenAI preparation guide →
01

Zero-Shot vs Few-Shot Prompting

In Generative AI testing, prompting is the primary interaction method. Zero-shot prompting provides no examples, expecting the model to rely on pre-trained knowledge. Few-shot prompting provides a few input-output examples to guide the model's logic and output format.

02

Retrieval-Augmented Generation (RAG)

RAG is an architecture that improves LLM accuracy by retrieving external documents and adding them to the prompt context before generation; retrieval may improve grounding but does not guarantee up-to-date information or eliminate hallucinations.

03

LLM Hallucinations

A hallucination occurs when an LLM generates text that is grammatically correct and sounds highly confident, but is factually incorrect, nonsensical, or completely unsupported by the provided context.

04

Prompt Injection & Jailbreaking

Prompt Injection is a critical GenAI security vulnerability where a malicious user inputs text designed to override the LLM's original system instructions. Jailbreaking is a specific type of injection aimed at bypassing the model's ethical and safety guardrails.

05

LLM-as-a-Judge Evaluation

LLM-as-a-Judge is a modern evaluation paradigm where a stronger, more capable LLM (like GPT-4) is used to automatically score and evaluate the outputs of a weaker or system-integrated LLM based on specific rubrics (e.g., politeness, factual accuracy).

06

Temperature and Top-P Parameters

Temperature and Top-P are sampling parameters that control the creativity and randomness of an LLM's output. A lower temperature generally reduces variation, while a higher temperature can increase it; behavior depends on the model and settings.

07

Chain of Thought (CoT) Prompting

Chain of Thought (CoT) is an advanced prompt engineering technique that asks an LLM to work through intermediate steps before a final answer. It can help on some tasks, but does not guarantee correct reasoning or improved results.

08

BLEU vs ROUGE Metrics

BLEU and ROUGE are traditional automated evaluation metrics for AI-generated text. BLEU measures precision (how much of the generated text matches the human reference), heavily used in translation. ROUGE measures recall (how much of the human reference is captured in the generated text), heavily used in summarization.

09

Semantic Similarity Testing

Semantic Similarity Testing evaluates LLM outputs by comparing the underlying meaning of the generated text against a reference text, regardless of the specific words used, typically utilizing vector embeddings and cosine similarity.

10

Non-Determinism in LLMs

Non-determinism in Generative AI means that providing the exact same input prompt to the model multiple times may result in different output text across runs, which can make strict string assertions brittle for some tasks.

11

Fine-Tuning vs Prompt Engineering

Fine-tuning permanently alters an LLM's internal weights by training it on a new dataset to change its fundamental behavior or tone. Prompt Engineering temporarily guides the model's behavior at runtime without changing its underlying architecture.

12

Red Teaming GenAI Systems

Red Teaming is a proactive security testing practice where QA engineers act as malicious adversaries to intentionally stress-test an LLM, attempting to bypass safety filters, extract sensitive data, or force the model to generate harmful content.

13

PII & Data Privacy in GenAI

Data Privacy testing in GenAI assesses risks around Personally Identifiable Information (PII), including training data, input handling, retention and outputs. Testing can reduce risk but cannot guarantee that a model has never memorized PII.

14

Bias & Toxicity in Outputs

Toxicity refers to LLM outputs that contain hate speech, harassment, or dangerous content. Bias refers to outputs that unfairly favor or stereotype specific demographics, originating from unbalanced representation in the massive datasets used to train the model.

15

Vector Databases & Embeddings

Embeddings are mathematical arrays (vectors) that represent the semantic meaning of text. A Vector Database stores these embeddings, allowing RAG systems to perform similarity searches to instantly find documents that are conceptually related to a user's prompt.

16

Prompt Drift

Prompt Drift (or Model Drift) occurs when an LLM provider updates their underlying foundational model in the cloud, causing previously stable and tested prompts to suddenly return different formats, lower quality answers, or unexpected behaviors.

17

Model Collapse

Model Collapse is a degenerative process affecting generative AI where models trained heavily on data generated by other AI models eventually lose information about the "tails" of the original human distribution, producing increasingly bland, repetitive, or nonsensical output.

18

Autonomous AI Agents

Autonomous AI Agents are advanced GenAI systems that do not just generate text, but are given access to Tools (like web browsers, calculators, or APIs) and the agency to plan and execute multi-step actions to achieve a high-level goal without human intervention.

19

System Prompts vs User Prompts

In modern LLM API structures, the System Prompt provides the foundational instructions, persona, and boundary rules for the AI. The User Prompt contains the specific task or question from the end-user.

20

Tokenization and Context Limits

Tokenization is the process of breaking raw text into smaller chunks (tokens) that an LLM can mathematically process. The Context Limit is the maximum number of tokens (input + output combined) that a model can "remember" and process in a single interaction.