allenvert
←   All collections
AI & learning

AI concepts
you should study.

How AI apps find information, use tools, follow workflows, and check their work.

You can explore these concepts with one project: a study assistant that answers questions from your notes and helps you practice. Here is what each concept contributes, with a small exercise to get started.

1. RAG

Retrieval-augmented generation gives a model relevant information at answer time. Your app searches a set of documents, adds the useful passages to the prompt, and asks the model to answer using that evidence.

Example. A student asks what is covered on the final. A study assistant retrieves the syllabus and relevant lecture notes, then answers with links to those passages.

What to study. Start with splitting documents into chunks, embeddings, keyword and semantic search, and reranking. Check retrieval separately from answer quality. Missing, outdated, or irrelevant passages can still produce a bad answer.

Try it. Build a question-answering app over your own notes. Include questions the notes cannot answer and check whether it admits the gap.

Read more about RAG ↗

2. MCP servers

The Model Context Protocol gives AI applications a shared way to connect to external capabilities. An MCP server can expose tools to run, resources to read, and reusable prompts. The host application connects through an MCP client and controls access.

Example. A study assistant calls a calendar tool to find free time, then proposes study sessions. The server defines the tool’s inputs and returns the calendar results to the application.

What to study. Study the host-client-server architecture, tool schemas, authentication, permissions, and error handling. A tool description tells the model what it can request. The application still has to authorize and execute the request.

Try it. Expose a read-only search_notes tool through a small MCP server and connect a compatible client.

Read more about MCP servers ↗

3. Plugins and skills

A skill packages instructions for a repeatable task, often in a SKILL.md file with supporting scripts, examples, or templates. A plugin is an installable bundle of extensions. Its contents depend on the product. For example, Claude Code plugins can include skills, MCP servers, agents, and hooks.

Example. A study plugin could include a skill that turns lecture notes into practice questions, plus an MCP connection for finding those notes. The skill specifies the workflow and output format.

What to study. Study how skills are discovered and loaded, how to write clear activation descriptions, and how bundled scripts run. Check the plugin format of the application you are extending.

Try it. Create a skill that produces five practice questions, waits for your answers, and then explains the mistakes.

Read more about Plugins and skills ↗

4. Agent harnesses

An agent harness is the software around the model that runs the work. It supplies instructions and context, routes tool calls, records results, and decides when to continue or stop. It can also manage permissions, retries, execution environments, and saved progress.

Example. A coding agent reads a bug report, edits a file, runs tests, and uses the failure output to try again. The harness executes the tools and feeds their results back into the next model call.

What to study. Study the tool-use loop, context limits, persistent state, stopping conditions, and recovery after interruption. For actions with side effects, design retries so they do not accidentally repeat a purchase or send a message twice.

Try it. Build a small agent that can read a file and run a test, with a fixed tool-call budget and a saved record of each step.

Read more about Agent harnesses ↗

5. LLM as a judge

An LLM judge evaluates an output against a rubric. You give it the task, the response, any reference evidence, and explicit scoring criteria. It can help evaluate qualities such as relevance, completeness, and whether an answer is supported by its sources.

Example. For a study assistant, ask the judge whether an explanation matches the lecture notes and addresses the question. Have it point to evidence for its score, then compare its ratings with your own.

What to study. Study rubric design, human calibration, and biases such as favoring longer answers or the first option in a comparison. Use ordinary checks for measurable facts such as valid JSON or passing tests, alongside model grading.

Try it. Label a small set of good and bad answers yourself. Run a judge on the same examples and investigate disagreements before relying on its scores.

Read more about LLM as a judge ↗

6. Context engineering

Context engineering means choosing and organizing the information a model receives at each step: instructions, conversation history, retrieved documents, tool descriptions, and tool results. Your application also decides what to save and bring back in later sessions.

Example. The study assistant keeps the exam date and your weak topics available, retrieves the notes relevant to each question, and summarizes older quiz attempts as the conversation grows.

What to study. Study context windows, retrieval, summarization, persistent memory, and tool selection. Summaries can lose important details, so check what survives when you compress a conversation.

Try it. Run the same study question with a full document dump and with selected passages. Compare answer quality, token usage, and missing details.

Read more about Context engineering ↗

7. Tool calling

Tool calling lets a model request an action using a structured function name and arguments. The application validates and authorizes that request, executes the function or API call, and returns the result for the model to use.

Example. The study assistant requests search_notes with a topic, then uses the returned passages to write an explanation. A calculator tool can handle a numerical step in a practice problem.

What to study. Study function schemas, argument validation, permissions, errors, and retries. MCP can expose tools through a standard connection. Tool calling is the mechanism used to request their execution.

Try it. Give an assistant a calculator function with a strict input schema. Test valid requests, invalid arguments, and a tool failure.

Read more about Tool calling ↗

8. Multi-agent orchestration

Multi-agent orchestration coordinates agents with assigned responsibilities, shared goals, and explicit handoffs. A coordinator might delegate independent tasks, collect results, and decide what happens next.

Example. One agent plans a practice session, another writes questions from the notes, and a reviewer checks the questions against those sources. The coordinator resolves disagreements before presenting the quiz.

What to study. Study task decomposition, handoff formats, shared state, parallel work, and stopping conditions. More agents add communication overhead and cost. Their mistakes can also compound, so measure whether the extra coordination improves the result.

Try it. Split quiz writing and review between two agents. Compare their output, latency, and cost with a single-agent version on the same notes.

Read more about Multi-agent orchestration ↗

9. AI evals

AI evaluations test your system on a defined set of tasks with explicit success criteria. Run them when you change a model, prompt, retrieval setup, or tool to see where behavior improves or regresses. An LLM judge is one possible grading component within an evaluation.

Example. Build a study-assistant dataset with answerable questions, questions missing from the notes, and requests that require a tool. Score source support, correctness, and task completion, and record latency and cost.

What to study. Study representative datasets, edge cases, repeat runs, and regression testing. Combine code checks, human review, and calibrated model grading. Keep held-out cases to check whether your improvements generalize.

Try it. Create ten questions with expected behaviors. Run two versions of the assistant and inspect the failures as well as the aggregate scores.

Read more about AI evals ↗

10. AI observability

AI observability records enough detail about system execution to help explain failures and performance. Traces connect model calls, retrieval steps, tool executions, and errors within a request. Metrics track patterns such as token usage, latency, and failure rates.

Example. A quiz takes too long to generate. Its trace shows repeated note searches followed by a slow model call. You can investigate the individual steps and check whether a change reduces the delay.

What to study. Study traces, spans, structured logs, token accounting, latency, and errors. Record model and prompt versions so you can compare runs. Redact sensitive content and control access to stored inputs and outputs.

Try it. Trace one complete quiz request. Add a simulated tool timeout and verify that you can find the failing step and see how the assistant recovered.

Read more about AI observability ↗