Prompt Crafter — AI Web Direct a toy LLM: 20 levels crafting deterministic prompts with JSON schema, few-shot, grounding, tool calling and injection defense, scored by a rubric engine.
Lessons this game drills Prompt Engineering Fundamentals : A prompt is the text you send to a model: a list of messages with roles. System (in OpenAI developer or instructions) gives consistent rules, user carries the…Function Calling & Tool Use : Function calling (at Anthropic: tool use) lets the model decide when to call a function and with which arguments, but your application code does the…AI Safety & Content Filtering : A model can be persuaded and misused, so add layers of protection. Limit each user (20 questions per 10 minutes, then 429 with Retry-After), and cap the…RAG (Retrieval-Augmented Generation) : RAG (Retrieval-Augmented Generation): before the model answers, the server searches your documents for the chunks that are relevant to the question, then puts…Evaluating AI Output : Evaluating AI output runs an eval set (questions plus the facts that must be right in their answers) every time the prompt, the model or the data changes. It…Slip Copier : Turn photos of handwritten slips into a sheet: vision model, OCR, zod, privacy, cost.Wiring Desk : Wire the village farm office's AI helper: key on the server, streaming, Stop, zod, tools, Ollama.Local AI Keeper : Run a small AI model on the village post's old PC: tokens, temperature, streaming, Stop, tools, agents, filters.Retrieval Desk : Tune the copy shop's question desk: chunks, BM25, embeddings, hybrid search, and refusing.The Measurer : Measure before you use AI at a village print shop: rules, models, embeddings, prompts, images, SaaS.