Quest 02 / 03 · Quick build
Test a mid-session AI risk triage instruction update
- API testing
- prompt evaluation
- marimo
Why now Google's preview API lets developers change system directions during an active interaction. The EU AI Act risk register offers a compact set of labeled cases for checking whether a revised direction changes the next classification as intended.
Build it Make a marimo notebook that asks Gemini to classify risk-register entries, then changes its instruction during a session and checks the next result against the supplied risk tier. Treat the exercise as a test of instruction handling, not legal guidance.
From the news
Tools
- Google Gemini models
Gemini API is a proprietary hosted service governed by Google's API terms. Free access is available for selected models, including Gemini 4 Hydrogen, while other models require paid usage.
- marimo
The local marimo notebook is free Apache 2.0 software. Hosted products, optional assistants and remote data services have separate terms; their paid entitlements are not established here.
Data
- EU AI Act Risk Register 2026 | 42 AI Systems Kaggle
Use the 42 AI-system entries and their risk-tier labels as toy classification cases.
Steps
- Load the dataset, inspect its files and columns, and choose 12 entries with readable risk-tier labels.
- Create a Gemini interaction that classifies an entry, then append a changed system direction before classifying the next entry.
- If the active-interaction update is unavailable, run the two instruction versions as separate requests and label the result as a fallback.
- Compare each prediction with its supplied risk tier and log the instruction version, route used, and changed predictions.
Done when
- The notebook prints the number of correct risk-tier predictions for each instruction version on the selected entries.
- The run log states whether it used the preview update or separate-request fallback.
- The notebook says that its toy results are not legal or compliance advice.
Stretch goals
- Run the test on the remaining labeled entries and compare whether the updated direction changes any predictions.
