KEEP THE CORE PATTERNS CLOSE

AI Engineer Cheat Sheets

Short practical references for the concepts, workflows, and operational checks used throughout the roadmap.

QUICK REFERENCE 01

.NET AI request path

Trace a request from the web boundary to the model and back.

Client request → ASP.NET Core endpoint → application service → IChatClient or Semantic Kernel → provider → validated response
QUICK REFERENCE 02

Semantic Kernel building blocks

Keep orchestration, model services, and application capabilities easy to reason about.

Kernel = service container + orchestration surface
AI service = chat or embedding capability
Plugin = application functions exposed as tools
Function calling = model selects an available function; application executes and returns its result
QUICK REFERENCE 03

Prompt design

Give the model the information and boundaries it needs to produce a usable response.

1. State the task and intended audience
2. Supply relevant context and trusted sources
3. Set constraints, exclusions, and assumptions
4. Specify the output format
5. Evaluate representative cases and revise
QUICK REFERENCE 04

Embeddings and semantic search

Use vectors to retrieve related meaning across differently worded text.

Normalize text → create chunks → generate embeddings → index vectors + metadata → embed query → rank similar chunks → return useful context
Check: chunk size, overlap, metadata filters, relevance and latency.
QUICK REFERENCE 05

RAG pipeline

Keep retrieval and generation as separate quality stages.

Ingest → parse → chunk → embed → index
Question → retrieve → filter / rerank → assemble context → generate grounded answer → cite sources
Evaluate retrieval relevance and answer groundedness separately.
QUICK REFERENCE 06

Azure AI Search

Combine exact terms with semantic similarity when one retrieval method is not enough.

Index fields: searchable text + filterable metadata + vector fields
Query: keyword + vector → hybrid ranking → semantic reranker → top passages
Always check access filters, freshness, recall, precision and source attribution.
QUICK REFERENCE 07

Agent workflow

Choose a bounded workflow with explicit tools, state, and stop conditions.

User goal → planner / coordinator → approved tool calls → observe results → update state → answer or request human input
Set tool permissions, iteration limits, error handling, and a clear stop condition.
QUICK REFERENCE 08

Production readiness

Watch the experience, service health, and AI-specific costs and quality.

Capture: request ID, latency, errors, model, token counts, estimated cost, retrieval scores
Evaluate: accuracy, groundedness, completeness, safety
Operate: retries with limits, timeouts, dashboards, alerts, redaction and incident notes