GGiriBioAI

/ glossary

Glossary

66 terms from across the modules. Each one links to the lab where you can try it. Tip: press Ctrl K anywhere to search.

A

activation function
The non-linear squash (ReLU, sigmoid, tanh) that lets networks learn curves, not just lines.
Neural Network Basics
agent loop
Call the model, run any tool it asks for, append the result, repeat until it gives a final answer.
Agent Loop Tracer
attention head
One independent attention pattern. Models run many heads in parallel, each spotting different relations.
Embeddings & Attention

B

backpropagation
The chain-rule bookkeeping that computes how much each weight contributed to the error.
Neural Network Basics
BPE
Byte-Pair Encoding, which learns frequent subwords.
Tokens

C

chain of thought
Asking the model to think step by step before answering.
Prompt Training
constraints
What to avoid, length limits, safety rules, refusal policy.
Prompt Builder
context
Background facts, data, and constraints from your world.
Prompt Builder
context window
Max number of tokens a model can read at once.
Tokens
cosine similarity
How aligned two vectors are, from -1 (opposite) to 1 (same direction).
Embeddings & Attention
coverage
% of corpus words representable by the vocab.
Vocabulary

E

embedding
A vector that captures meaning. Similar text → close vectors.
Embeddings & Attention
eval
A repeatable test set plus a scoring rule that tells you if a change made the model better.
Evals, Safety & Quantization

F

few-shot
1 to 3 example input/output pairs the model can imitate.
Prompt Builder
format
Shape of the output such as JSON, table, bullet list, essay.
Prompt Builder

G

gradient descent
Repeatedly nudge every weight a little in the direction that lowers the loss.
Neural Network Basics
grounding
Forcing answers to come from retrieved or pasted context, reducing hallucinations.
Retrieval (RAG)
grouped-query attention
Several query heads share one key/value head, shrinking the KV cache (used by Llama 3).
Context, KV Cache & MoE
guardrails
Checks on inputs and outputs: hide personal data (PII), enforce the expected format, block unsafe content.
Orchestration

H

hallucination
A confident answer that is not supported by the input or reality.
Prompt Training
hidden layer
Neurons between input and output. They build intermediate features the output layer combines.
Neural Network Basics

K

k-mer
A DNA substring of length k. Overlapping k-mers are a common way to tokenize genomes.
Bio-AI with LLMs
KV cache
Stored keys and values of earlier tokens, so each new token only computes its own.
Context, KV Cache & MoE

L

layer norm
Rescales each token vector to zero mean and unit variance to keep training stable.
Transformer Walkthrough
learning rate
How aggressively weights change per step. Too high = chaos; too low = stuck.
Fine-tuning
LLM-as-judge
Using a model with a written rubric to grade another model's answers.
Evals, Safety & Quantization
logits
Raw, unnormalized scores the model gives every token in the vocabulary.
Sampling & Decoding
LoRA
Low-Rank Adaptation. Trains < 1% of the params.
Fine-tuning
loss
How wrong predictions are. Lower = better.
Pre-training
lost in the middle
Models recall facts at the start and end of a long context better than those in the middle.
Context, KV Cache & MoE

M

masked language modeling
Hide a token and train the model to guess it from both sides. How BERT and ESM learn.
Bio-AI with LLMs
max steps
A hard cap on loop iterations so a confused agent cannot run (and spend) forever.
Agent Loop Tracer
MCP
Model Context Protocol: a standard JSON-RPC way for AI apps to discover and call tools and data sources.
Agent Loop Tracer
mixture of experts
Many expert MLPs per layer; a router sends each token to only a few, so compute stays low.
Context, KV Cache & MoE
MLP / feed-forward
The per-token two-layer network inside each block that stores much of the model's knowledge.
Transformer Walkthrough

N

neuron
Multiplies inputs by weights, adds a bias, then applies an activation function.
Neural Network Basics

O

OOV
Out-of-vocabulary, meaning a word the tokenizer can't represent.
Vocabulary
overfitting
Train loss falls, val loss rises. The model memorized your data.
Fine-tuning

P

parameters
The learned numbers (weights) inside the model.
Pre-training
positional encoding
A vector added to each token embedding so the model knows word order.
Transformer Walkthrough
prompt injection
Untrusted text (a web page, a document) that tries to override your instructions.
Evals, Safety & Quantization
protein language model
A model trained on millions of protein sequences, learning which residues fit where (e.g. ESM).
Bio-AI with LLMs

Q

quantization
Storing weights with fewer bits (16 → 8 → 4) to cut memory, at a small quality cost.
Evals, Safety & Quantization
query, key, value
Three projections of each token: the question it asks, the label it offers and the content it shares.
Transformer Walkthrough

R

ReAct loop
Reason → Act → Observe → repeat until the agent answers.
Orchestration
refusal policy
Explicit rules for when to say 'I do not know' instead of guessing.
Prompt Training
repetition penalty
Lowers the odds of tokens that were already generated, to avoid loops.
Sampling & Decoding
residual connection
Adding a layer's input back to its output, so information and gradients flow through deep stacks.
Transformer Walkthrough
residue
One amino acid inside a protein chain, written as a single letter such as A, K or W.
Bio-AI with LLMs
role
Who the model should act as. Sets tone, expertise, vocabulary.
Prompt Builder
router / gate
The small network in an MoE layer that scores experts for each token.
Context, KV Cache & MoE

S

self-attention
Each token builds its new representation as a weighted mix of every other token.
Embeddings & Attention
SMILES
A line notation that writes a molecule as text, e.g. CCO for ethanol.
Bio-AI with LLMs
softmax
Turns raw scores into probabilities that sum to 1.
Embeddings & Attention
system prompt
The instruction the model sees before every user turn. Great place for role and rules.
Prompt Training

T

task
The exact job to do, phrased as an instruction.
Prompt Builder
temperature
Sampling randomness. Low for facts, higher for brainstorming. 0 = greedy.
Sampling & Decoding
token
A chunk of text mapped to an integer ID.
Tokens
tool / function call
Structured output the LLM emits to trigger an external action.
Orchestration
tool schema
A JSON Schema describing a tool's name and arguments, sent to the model so it can call it correctly.
Agent Loop Tracer
top-k (retrieval)
How many retrieved chunks to send to the LLM.
Retrieval (RAG)
top-k (sampling)
Only the k most likely next tokens are allowed.
Sampling & Decoding
top-p (nucleus)
Keep the smallest set of tokens whose probabilities add up to p, then sample from those.
Sampling & Decoding

U

unembedding
The final matrix that turns a token's vector into one logit per vocabulary entry.
Transformer Walkthrough

V

vocab size
Count of unique tokens the model recognizes.
Vocabulary