Presentation 3: The Airing of Grievances
The Agenda
- Why everything I made this summer is terrible
- How AI has already made all of us obsolete
- My plan to ingratiate myself with our new robot overlords
Erik-generated district report
What goes into one of these reports?
- R code to crunch numbers (fine)
- R code to make crunched numbers available to Quarto docs (okay)
- R code to orchestrate the analysis and document generation (mildly irritating)
- The report template files in Quarto (rage-inducing)
What goes into one of these reports?
- R code to crunch numbers (fine)
- R code to make crunched numbers available to Quarto docs (okay)
- R code to orchestrate the analysis and document generation (mildly irritating)
- The report template files in Quarto (rage-inducing)
Making Report Templates with Quarto
You’re going to get annoyed and use AI for most of the writing
- The user is definitely going to change them
The user is going to use AI for most of the revisions
Hot Take: Technical writing isn’t a job for humans anymore.
The Robots are Here
Hand off tedious work to AI as soon as possible
- Crunch the numbers
- Store the results
- Pass the results to an AI agent along with a simple prompt:
Write a qmd file for an html document that can also be exported as docx. It should be a comprehensive report about chronic absenteeism in the district. Don’t editorialize, just report the results. It should be at least 1500 words long.
AI-Generated District Report
There are some drawbacks, but I’m brave enough to ignore them.
![]()
→
AI makes one document
(and boils the oceans)
→
![]()
The Real Challenge
- Take the results of any analysis (not just absenteeism)
- Store them in one of the usual formats (.csv, .rds, .dta)
- Efficiently and reliably translate to LLM-readable format
Next Steps
Make the application that:
- Parses data files into JSON for LLMs
- Stores parsed data locally in a lightweight database
- Generates custom prompts from filtered data
- Handles APIs gracefully
Next Steps
Learn some 21st century skills:
- Hardware needs for running LLMs locally (GPUs, RAM, etc.)
- Secure local networks for offline, isolated deployment
- Containerization and virtualization to isolate models from the
sewer internet
![]()
Thank You