This book explains the principles, structure, and real-world practice of prompt engineering in a way that anyone working with large language models can understand and apply. Rather than treating prompting as a collection of hacks, it walks the reader through how to think about role, context, task, constraints, and examples so that LLMs produce reliable, domain-appropriate outputs. Starting from the basics of “what is a prompt,” the book then connects prompting to how generative AI models actually work, introduces core and advanced prompting patterns (prompt chaining, dynamic templates, tool-augmented prompting), and shows how to evaluate and refine model responses.
Designed for students, educators, and practitioners, each chapter includes learning objectives and hands-on exercises that can be tried directly in tools like ChatGPT. Later chapters move from theory to application, demonstrating how to build LLM-powered chatbots and retrieval-augmented generation (RAG) systems, and how to incorporate ethics, safety, and bias awareness into prompt design. By the end, readers will have a reusable toolkit for crafting effective prompts across education, research, business, and technical use cases.
Betal nemt med kort, Klarna, Apple Pay eller Google Pay. Ikke tilfreds? Du har altid 14 dages fortrydelsesret. Læs mere i vores vilkår. Har du spørgsmål, så send os en mail på hello@memmo.org.
Memmo gør det nemmere at studere – uanset hvor du er i verden. Hos os samler du dine kursusbøger og smarte studieværktøjer ét sted: resuméer, quizzer, podcasts og flashcards. Og så er der Ted, din studieven, der svarer på alt, du undrer dig over. Over 50 000 studerende studerer allerede her – bygget til at hjælpe dig med at lære hurtigere og stresse mindre.