AiGanak
Scope a project
Reference

AI glossary

Plain definitions of the terms we use with clients, from tokens and context windows to model routing and prompt injection.

In short

Plain definitions of common AI terms used by AiGanak, including small language model, context window, prompt caching, model routing, batch inference, retrieval-augmented generation, quantization, AI agent and prompt injection.

AI agent

A program that uses a language model to decide which steps to take and which tools to call, such as searching a database, sending a message or updating a record, to complete a task with limited human input.

Multi-agent workflows →

Batch inference

Sending many model requests as one job that is processed asynchronously rather than answered immediately. OpenAI and Anthropic both charge 50% less for batch jobs completed within 24 hours.

Reducing LLM API costs →

Context window

The maximum amount of text, measured in tokens, that a model can consider in one request, including the prompt, any retrieved documents and the answer. Usable context on modest hardware is often smaller than the advertised maximum.

Cost per task

The total model cost of completing one unit of work, such as answering one ticket or processing one document, including every model call, retry and agent step involved. A more useful measure than cost per token.

Embedding

A list of numbers that represents the meaning of a piece of text, so that similar texts have similar numbers. Embeddings power semantic search and retrieval-augmented generation.

Evaluation set (golden set)

A fixed collection of real inputs paired with approved outputs, used to score a model or prompt before and after any change. It is the safeguard that stops cost savings from lowering quality.

Fine-tuning

Further training of an existing model on your own examples so it performs a specific task, format or vocabulary better than with prompting alone.

Custom SLM development →

Guardrails

Checks placed around a language model to keep its inputs and outputs within safe and expected limits, such as input filtering, schema validation, content policies and limits on what actions it can take.

Prompt hardening →

Hallucination

An answer from a language model that sounds plausible but is false or unsupported by its sources. Grounding answers in retrieved documents and testing on evaluation sets reduce it.

Large language model (LLM)

A neural network trained on very large amounts of text to understand and generate language. The largest models are usually offered as hosted APIs and are strongest at open-ended reasoning and writing.

Small vs large models →

Model routing

Sending each request to the cheapest model that can handle it well, for example simple classification to a small model and complex questions to a large one. Routing rules should come from tests on your own examples.

LLM Cost Audit →

Multi-agent workflow

A process split into steps handled by several AI agents, each with its own instructions and tools, coordinated by an orchestrator or a workflow tool such as n8n or Make.

n8n vs Make →

On-premise AI

Running models on servers an organisation controls, in its own data centre or private cloud, so that data never reaches a third-party AI provider.

Private deployment →

Prompt caching

A provider feature that bills repeated prompt prefixes at a reduced rate. OpenAI applies it automatically to prompts over 1,024 tokens; Anthropic lets developers mark cache points. It only works when the start of the prompt stays identical between requests.

Reducing LLM API costs →

Prompt injection

An attack in which text given to a model, typed by a user or hidden in a document, email or web page, overrides the developer's instructions. It is listed as LLM01 in the OWASP Top 10 for LLM Applications 2025.

Defending against prompt injection →

Quantization

Storing a model's weights with fewer bits, for example 4 instead of 16, so it needs less memory and runs faster on modest hardware, usually with a small loss of quality.

Quantization-aware training

Training a model while simulating low-precision weights, so that it keeps more of its accuracy when it is later quantized for deployment.

AiGanak-SLM-1B →

Retrieval-augmented generation (RAG)

A technique in which relevant documents are retrieved from your own data and given to the model with the question, so answers are grounded in that content rather than the model's memory.

Small language model (SLM)

A language model with roughly 0.5 to 7 billion parameters, small enough to run on a single server, workstation or edge device. SLMs suit narrow, high-volume tasks and private deployments.

Small vs large models →

Token

The unit of text a language model reads and writes, often a word or part of a word. Providers price input and output by the number of tokens.