March 2026
Intermediate to advanced
448 pages
12h 44m
English
We’ll begin with a straightforward example: completing a sentence using an OpenAI model and refining its output through prompt engineering. OpenAI’s models are a convenient starting point because they are accessible through a public REST API and require no local infrastructure setup.
If you prefer, you can use an open source LLM inference engine such as Ollama. However, because many of you may not have run an open source LLM locally before, we’ll cover that setup in detail in appendix E. For now, we’ll keep things simple and use the OpenAI REST API.
Before you proceed, make sure you have Python 3.11 or later installed on your local machine and ...
Read now
Unlock full access