Subject revision

Artificial Intelligence

LLM, retrieval, and applied AI interview revision cards.

Clear

Results update as you type. Press / to jump straight into search.

Artificial Intelligence cards

21 cards

Artificial Intelligence Medium Theory

Fine-tuning vs prompting

Prompting changes the instructions at inference time, while fine-tuning changes model weights using additional training data.

  • Prompting is faster to iterate
  • Fine-tuning can shape style or behavior
  • Use the lighter tool first

Fine-tuning vs prompting

Artificial Intelligence Medium Theory

RAG basics

RAG retrieves relevant external context and supplies it to the model at generation time.

  • Retrieval before generation
  • Improves freshness and grounding
  • Quality depends on chunking and retrieval

RAG basics

Artificial Intelligence Medium Theory

Short-term memory vs long-term memory in agents

Short-term memory is the active conversation context, while long-term memory is persisted information reused across sessions or tasks.

  • Short-term lives in the current context window
  • Long-term is stored externally
  • Memory quality depends on retrieval and summarization

Short-term memory vs long-term memory in agents

Artificial Intelligence Medium Theory

Single-agent vs multi-agent design

Single-agent systems are simpler to control, while multi-agent systems split work across specialized roles at the cost of more orchestration overhead.

  • Single agent is easier to debug
  • Multi-agent can separate concerns
  • More agents do not automatically mean better quality

Single-agent vs multi-agent design

Artificial Intelligence Medium Theory

What are AI evals?

Evals are repeatable tests that measure whether a model or prompt setup performs well on the behaviors you care about.

  • Use task-specific test cases
  • Track regressions over time
  • Human review may still be needed

What are AI evals?

Artificial Intelligence Easy Theory

What are embeddings?

Embeddings map text or other objects into dense vectors where similar meaning lands nearby.

  • Dense numeric representation
  • Supports similarity search
  • Often pretrained

What are embeddings?

Artificial Intelligence Easy Theory

What are guardrails in AI applications?

Guardrails are checks and controls around the model that reduce unsafe, low-quality, or out-of-policy behavior.

  • Can run before or after model output
  • Includes validation and policy checks
  • Works with human review when needed

What are guardrails in AI applications?

Artificial Intelligence Easy Theory

What are tokens in LLM systems?

Tokens are the chunks of text a model processes, and they drive both context window limits and usage cost.

  • Not exactly words
  • Context windows are token-based
  • Cost often scales with token count

What are tokens in LLM systems?