Skip to content
Guest
← All References
AI Engineering LLM APIs

AI Engineering & LLM Reference

Quick reference for temperature tuning, structured outputs, tool calling, hybrid vector/BM25 RAG, SSE streaming, and prompt-injection defenses.

System Prompt + JSON Schema + Tools + RAG + Evals

Production AI Checklist

AreaBest Practice
DeterminismUse temperature 0.0 to 0.2 for extraction and classification
Structured OutputAttach JSON Schema + validate on server with Zod or Pydantic
Tool CallingEnforce auth & tenant isolation in server tool code, never in prompts
RAG QualityCombine vector search + BM25 keyword search + inline source citations
Streaming UXUse Server-Sent Events (text/event-stream) + AbortController
Cost ControlPrefix-cache static system prompts and route easy tasks to fast models
ReliabilityMaintain a golden eval dataset of 30+ real edge cases in CI

Search courses, lessons, and references

Type to search across all courses, lessons, and quick references.

Press Esc to close Powered by Pagefind