Retrieval-augmented generation (RAG) is a pattern where an AI system first searches a set of documents for passages relevant to a question, then gives those passages to a language model so it answers from them, ideally with citations.
LLM evaluations (evals) are repeatable tests for an AI feature: a fixed set of realistic inputs, each with a way to grade the output, run every time a prompt, model or retrieval setting changes, so quality is measured instead of judged by feel.
An AI agent is a system where a language model decides, step by step, which tools to call and what to do next until a task is finished, instead of following a fixed sequence written in code. It needs tools, permissions and a stop condition.
Prompt injection is an attack where text a language model reads, typed by a user or hidden in a document, web page or email, contains instructions that override the developer's intended behavior. Filters cannot fully stop it, so systems must limit what a manipulated model can do.
A vector database stores embeddings, lists of numbers that represent the meaning of text or images, and finds the entries closest to a query. It powers semantic search and the retrieval step of RAG, either as a dedicated service or as an extension to Postgres.
Fine-tuning is further training of an existing language model on your own examples, so it changes its default behavior, such as an output format, tone or classification scheme, without being shown those examples in every prompt. It shapes how a model responds more reliably than it teaches facts.