richardleighdavies/prompt-engineering-in-practice

Practical code examples and implementations from the book "Prompt Engineering in Practice". Demonstrates text generation, prompt chaining, and prompt routing using Python and LangChain. Features real-world examples of interacting with OpenAI's GPT models, structured output handling, and multi-step prompt workflows.

22
/ 100
Experimental

These practical code examples help you create better interactions with AI models like ChatGPT. They demonstrate how to craft, refine, and organize your prompts to get more accurate and useful text, even for complex multi-step conversations. This is for AI practitioners, content creators, marketers, or anyone who regularly uses large language models and wants to improve their output.

No commits in the last 6 months.

Use this if you need to design, test, and optimize prompts to get reliable, high-quality text or structured data from AI models.

Not ideal if you're looking for a low-code solution or a tool that doesn't require direct interaction with Python code and API keys.

AI-prompt-design LLM-interaction content-generation AI-output-optimization conversational-AI
Stale 6m No Package No Dependents
Maintenance 2 / 25
Adoption 4 / 25
Maturity 16 / 25
Community 0 / 25

How are scores calculated?

Stars

8

Forks

Language

Python

License

MIT

Last pushed

Aug 04, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/richardleighdavies/prompt-engineering-in-practice"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.