Prompt Engineering
23 Sep 2025
Week Five
simplescaling
pause to look at last week’s edition
pause to discuss contributions
look at the doc
There are two groups of students in the class: novices (you’ve just met the requirement of one Python course), and advanced (you have significant development experience)
It is vital that the course meets the needs of both groups, which is not easy.
To achieve this, one necessity is to have varying levels of projects. Broadly there are two levels, novice and advanced. Both are eligible for an A grade. You should work comfortably at your limit, not shirking but not trying to be heroic.
You should deploy something you can put in your portfolio and can be anything from a simple chatbot like we created using chatlas
or an agentic app using, say, Google’s ADK. Include extensive use of prompting and make it possible to evaluate and compare prompts.
We’ll create a chatbot about the famous Titanic dataset
The requirements.txt file contains some spurious code. Delete part about the python-package.
The app.py
file is missing the load_env()
code. Add it after line 5.
Otherwise, follow the onscreen instructions.
We’ll start by doing the same thing in this environment that we did with chatlas
, create a chatbot that offers expense policy advice.
tree of techniques
There is no substitute for reading Schulhoff et al. (2024)! I’m just listing the main concepts here. I’ll ask you to pick one and explain it in your own words.
Run the two readings, Sahoo et al. (2024) and Schulhoff et al. (2024), through NotebookLM. Ask it to summarize them and then ask about the discrepancy between the F1 scores in Schulhoff’s case study. (Manual had high precision and low recall, while automated had the reverse.)
Then consider the diagram on the following screen, showing graphically the definitions of precision and recall (F1 is the harmonic mean of these two statistics). Comment on your view of how NotebookLM has described the difference between the F1 scores.
END
This slideshow was produced using quarto
Fonts are Roboto Light, Roboto Bold, and Victor Mono Nerd Font