Skip to content
Eldan.ai
Writing

Glossary

The words of AI engineering in plain language: a short definition, the usual mistake and what to do instead.

A

  • ADR (architecture decision record)

    An architecture decision record is a short document that captures one significant decision: the context, the choice made, the options rejected and why, the consequences and a date to review it. It lets a team understand later why a system looks the way it does, and gives a decision a testable reason to be revisited.

  • Agent

    An agent is a program that lets a model decide its own next steps: it calls tools, reads the results and repeats until it judges the task done or a limit stops it. Autonomy is a spectrum, and the smallest design that works, often a fixed workflow with one model call, is usually the right starting point.

  • Agent loop

    The agent loop is the cycle at the heart of every agent: send the conversation to the model, and if it asks for tools, run them, append the results and send again. It ends when the model answers in plain text or a limit is hit. The message list is the whole state of the run.

C

  • Chunking

    Chunking is splitting documents into pieces small enough to index and retrieve individually. The size and boundaries decide what search can find: too large and a chunk mixes topics, too small and it loses the context that makes it meaningful. Splitting along headings and list items usually beats fixed character counts.

  • Context window

    The context window is the maximum number of tokens a model can take into account in one request, covering the prompt, the conversation and, depending on the provider, the reply. It is working memory for a single call, not long-term memory: anything you want the model to use has to be sent again every time.

E

  • Embedding

    An embedding is a list of numbers that represents the meaning of a piece of text, produced by an embedding model. Texts with similar meaning get vectors that are close together, which makes semantic search possible. Vectors from different embedding models cannot be compared with each other.

  • Error analysis

    Error analysis is the habit of reading failed cases, sorting them into a few named groups and counting each group to decide what to fix next. It beats guessing and beats adding metrics. The biggest group usually is not the one you expected, so read real failures before you change anything.

  • Eval

    An eval is a repeatable test for software that uses a model. It has a set of inputs, a way to run your feature on them and a grader that scores each output, and it returns a rate instead of a pass or fail. Run it on every change to a prompt, model or retrieval setting.

F

  • Fine-tuning

    Fine-tuning continues the training of a model on your own examples so that it adopts a style, a format or a narrow skill. It rarely teaches reliable new facts, and it needs good data and an eval to prove the gain. Try better prompts, examples and retrieval first, and fine-tune when those are not enough.

  • Forward deployed engineer (FDE)

    A forward deployed engineer is a software engineer embedded with a customer to scope, build and deploy a working solution inside the customer's own environment, and then turn the lessons into a repeatable pattern. The role is about half engineering and half judgement: discovery, expectation management and proving value with a number the customer trusts.

G

  • Golden set

    A golden set is a collection of real inputs, each paired with a known good answer or a labelling rubric, used to evaluate a model-backed feature. It should cover every category, include deliberately hard cases and be labelled before you look at model output. Keep part of it held out so tuning does not overfit.

  • Grounding

    Grounding means tying a model's answer to supplied sources: it should say only what the retrieved passages support, cite them, and admit when the sources do not contain the answer. A grounded system is checkable by a reader. Faithfulness is the metric that tests whether each claim appears in the sources.

  • Guardrails

    Guardrails are checks placed around a model: input filters, output validators, classifiers for unsafe content and rules that block certain actions. They reduce risk and catch common failures, but none is perfect against natural language. Treat them as one layer among several, never as the only defence.

H

  • Hallucination

    A hallucination is model output that reads fluently but is false or unsupported by the sources it was given. It is not a rare bug that a patch removes. It follows from how models generate text. You reduce it with grounding and verification and measure it with faithfulness checks.

  • Human in the loop

    Human in the loop means a person reviews or approves the system's action at defined points before it takes effect. It is the main control for risky or irreversible actions. It only works when the review shows exactly what will happen and the person has the time and context to say no.

  • Hybrid search

    Hybrid search combines keyword search, which is good at exact terms such as error codes and names, with vector search, which is good at paraphrases and meaning. The two ranked lists are merged, commonly with reciprocal rank fusion. On most real corpora the combination beats either method alone.

I

  • Idempotency

    An operation is idempotent when doing it several times has the same effect as doing it once. This matters for agents because retries are common: a timeout may hide a call that actually succeeded. An idempotency key lets the receiving system recognise a repeat and ignore it.

L

  • Least privilege

    Least privilege means giving a system only the permissions it needs for its task and nothing more. For agents it applies to each tool and credential: narrow scopes, separate read and write access, short-lived tokens. If a model is manipulated, the damage is limited to what its tools are allowed to do.

  • LLM as judge

    LLM as judge means using a model to grade another model's output against a written rubric, typically with yes or no criteria. It scales evaluation of open-ended text, but a judge is just another prompt with its own biases. Check its agreement with human labels, for example with Cohen's kappa, before it gates anything.

M

  • MCP (Model Context Protocol)

    The Model Context Protocol is an open protocol for connecting AI applications to tools and data. A server exposes tools, resources and prompts. A client inside the application discovers them and calls them. It lets one integration work with many applications instead of one custom connector per pair.

  • Model routing

    Model routing sends each request to the model best suited to it, usually a cheaper, faster model for easy cases and a stronger one for hard cases. It can cut cost and latency a lot, but only if you can measure quality per route and know how often the cheap model is good enough.

O

  • Observability

    For AI systems, observability means recording enough about every request to explain it later: the prompt version, the inputs, the retrieved passages, each tool call, the output, token counts, latency and cost. Traces turn a vague user complaint into something you can read, and failed traces become new test cases.

P

  • Prompt

    A prompt is everything you send to a model in one request: instructions, examples, the conversation so far, retrieved documents and the user's input. The model produces its reply from this text alone. Because outputs depend entirely on the prompt, it deserves the same version control and testing as code.

  • Prompt caching

    Prompt caching is a provider feature that reuses the work done on the unchanging beginning of a prompt, so repeated prefixes are billed at a lower rate and answered faster. It only helps when stable content such as instructions and examples comes first and varies last. Minimum lengths and lifetimes differ between providers.

  • Prompt injection

    Prompt injection is an attack in which text the model reads, typed by a user or hidden in an email, web page or document, contains instructions that override the developer's intent. Indirect injection arrives through retrieved or tool-supplied content. It cannot be fully filtered out, so defences have to limit what a persuaded model can do.

R

  • RAG (retrieval-augmented generation)

    RAG retrieves passages relevant to a question from your own documents and puts them into the prompt so the model can answer from them. It is two systems in sequence, a search step and a generation step. The answer can only be as good as the passages that the search returned.

  • Recall at k

    Recall at k is the share of questions for which at least one relevant passage appears among the top k retrieved results. It measures the ceiling of a RAG system: if the right passage is not retrieved, the generator cannot use it. You compute it on a set of real questions with known answer locations.

  • Red teaming

    Red teaming is adversarial testing: you attack your own system the way a malicious user would, to find failures before others do. For AI it means jailbreak and injection attempts, data-extraction probes and abuse of tools. Good findings become permanent regression cases in an automated suite that runs in CI.

  • Reranking

    Reranking is a second search stage in which a model reads the question together with each candidate passage and rescores relevance more precisely than vector similarity can. You typically retrieve a few dozen candidates cheaply and rerank them down to the best handful. It improves ranking but adds latency and cost.

S

  • Spaced repetition

    Spaced repetition is a study method in which you review each item at growing intervals, just before you would forget it. Retrieving an answer from memory strengthens it more than re-reading, and spacing the retrievals lasts longer than cramming. Eldan.ai schedules reviews with FSRS, an open memory-model algorithm.

  • Structured output

    Structured output means getting a model to return data in a fixed shape, usually JSON that matches a schema, instead of free prose. Some providers can constrain generation to a schema. In every case you should still validate the result in code, because a valid shape does not mean correct values.

  • System prompt

    A system prompt is the developer-written part of a prompt that sets the model's role, rules and output format for the whole conversation. Models give it extra weight, but it is guidance, not enforcement. A determined user or a hostile document can still talk the model out of following it.

T

  • Temperature

    Temperature is a sampling setting that controls how much randomness the model uses when choosing each next token. Lower values make outputs more predictable, higher values more varied. Even at zero, results are not guaranteed to be identical between runs, and some model families do not let you change the setting at all.

  • Token

    A token is the unit of text a model reads and writes: usually a word fragment, a whole short word or a punctuation mark. Providers count and bill in tokens, and context limits are measured in them. English averages roughly four characters per token, while Russian text usually needs more tokens per word.

  • Tool calling

    Tool calling, also called function calling, lets a model request that your code run a named function with structured arguments. The model never executes anything itself. It returns a request, your code validates and runs it, and the result goes back into the conversation for the next step.

V

  • Vector database

    A vector database stores embeddings together with ids and metadata and finds the nearest vectors to a query quickly. Most use approximate nearest-neighbour indexes that trade a little accuracy for speed. You can use a dedicated store, or the pgvector extension in Postgres if you already run it.

The Eval Habit, by email

Seven short lessons by email that take one feature of yours to a measured score and a check in CI. One lesson a day, free, no account needed.

A confirmation email comes first. Leave with one click from any lesson. Privacy

36 terms, in English and Russian. Last updated 23 Nov 2026.