Prompt Engineering Guide
DAIR.AI · en/zh
MIT
License checked. This entry links to the original; the book text is not mirrored.
License checked: 2026-10-16 · Pinned 57673726Eight project chapters from source preparation to runnable Python retrieval, real local-model answers and 12 evaluation cases. Includes code, data and troubleshooting.
Deliver a reproducible local experiment: versioned sources, executable code, retrieval report, per-case review and one before/after fix. Without a model run, label it a retrieval prototype.
Create a folder and run terminal commands. Retrieval requires Python 3.10+, without a paid account. Real generation additionally needs Ollama and a model suited to your device. Start with manual work and retrieval.
Map the data flow and distinguish answerable, uncertain and out-of-scope questions.
Create traceable records and prevent stale versions and audience mismatches.
Understand chunking failures and the limits of the retrieval baseline.
Execute retrieval and distinguish filtering, recall, ranking and no results.
Build reviewable context and output rules without mistaking citations for correctness.
Optionally execute real local generation and identify the stage reached.
Generate an observed report and identify failure layers without inflated accuracy claims.
Complete an update experiment and deliver a reproducible package.
All chapters and exercises are free. Reading or self-checks do not automatically award independent certification.
The lessons are original. The following sources are provided under their respective permissions.
DAIR.AI · en/zh
MIT
License checked. This entry links to the original; the book text is not mirrored.
License checked: 2026-10-16 · Pinned 57673726Microsoft · en/zh
MIT
License checked. This entry links to the original; the book text is not mirrored.
License checked: 2026-10-16 · Pinned d45da912NIST / Autio et al. · en
NIST Technical Series reprint policy
Original PDF provided under the institution’s reprint policy.
License checked: 2026-10-16Ollama · en
Official documentation link; no full-text reproduction
Original link only; full text is not mirrored.
License checked: 2026-10-20Collect your retrieved passages, citations, evaluation and failures. Use original templates to describe your contribution and limits, labeling a learning prototype honestly.
RAG project resume: evidence checklist and templates