Analyst instructions: fetch the MeteoSwiss weather; labels for the RAG, analysis for the detail, a short report for the human on an imposed outline, with gif.py

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-17 11:51:58 +01:00
1 parent 2ed4a272b4
commit effcf8fdcb
1 file changed
+47 -5
+47 -5
View File
@@ -13,14 +13,56 @@ The user selected a range in the Data page and clicked "Analyze the range": they
- Your labels go in `labels.jsonl`; the server is the one that submits them to `labeling/auto/<STATION>.jsonl`. **You never write in `labeling/auto/<STATION>.jsonl`.** - Your labels go in `labels.jsonl`; the server is the one that submits them to `labeling/auto/<STATION>.jsonl`. **You never write in `labeling/auto/<STATION>.jsonl`.**
- Then the user may write to you (the same session resumes): a question, a correction. An indication from them is written in the labels it touches ("according to the expert: …", in words) and in your analysis, section 3. If you change your labels, rewrite `labels.jsonl` in full: the server submits them again; if the diagnosis changes, update `report.md`. - Then the user may write to you (the same session resumes): a question, a correction. An indication from them is written in the labels it touches ("according to the expert: …", in words) and in your analysis, section 3. If you change your labels, rewrite `labels.jsonl` in full: the server submits them again; if the diagnosis changes, update `report.md`.
## The weather
The weather really measured near the station is not in `data/<STATION>/`: fetch it at the start, for every analysis, and read it with the other causes (rain, fog, wind, sun, frost, cold air). The place of the station is its line in `~/aimsight-data/extraction/stations.txt` (`<STATION> <place>`; no line, no weather: say so in your analysis). Then, from `~/aimsight-data`:
`python3 weather/meteoswiss.py "<place>" <start> <end> --out <output folder>/work/weather.csv`
hourly, UTC, `end` excluded; the MeteoSwiss station chosen and its distance are written on stderr: give them in your analysis. It is the weather a few km away, not at the camera: what the images show prevails.
## Three readers, three texts
- **The labels** are read by an LLM, through retrieval (the precedents of the next analyses): their descriptions are detailed, as `labeling/labeling-rules.md` asks.
- **Your analysis** (`analysis.md`) is the full detail of your work: the commands, the values, the reasoning, the precedents. Any other detailed note you find useful goes in the output folder too.
- **The report** (`report.md`) is read by a human, in the page: simple and direct. It repeats neither the labels nor the analysis.
## The report ## The report
On top of your labels and your analysis: `report.md`, the diagnosis the user will read in the page, in English: `report.md`, in English, on exactly this outline:
- `# <STATION>: <the subject in a few words>`, then the question (their selection, their hints) in one or two sentences; ```markdown
- "What the data show": each event dated (UTC), the sensors affected and those that do not move, the cause and its level of evidence (confirmed / strongly supported / consistent with / possible / insufficient evidence / not observed), the command behind each fact; # <STATION>: <the subject in a few words>
- the figures that prove, each inserted by `![caption](path relative to the output folder)` and followed by a line that says what is seen in it: curves (`plot.py`), thumbnails, whole camera images (copy them into the output folder with `cp`); a few, chosen, not all the working ones;
- "What remains not established"; "Labels": those you propose, one line each. <their question: the selection and the hints, in one sentence>
## In short
<three lines at most: the answer to their question; whether the curves can be trusted, and where not; whether a real movement of the structure is seen>
## What happened
<one short paragraph per phenomenon, not per label: when (UTC), which targets, how far the curves are wrong, the cause and how sure you are (confirmed / likely / possible / unknown)>
<one figure or GIF per phenomenon at most, the one that proves it, followed by one line saying what to look at>
## What to do
<the actions it calls for (on site, the references, the configuration), or "Nothing.">
## Not established
<what stays open and what would settle it; the section is left out when nothing stays open>
## Labels
| Start (UTC) | End (UTC) | Family | Targets | In a few words |
```
- Plain words: no commands, no tool names, no column names (`corr_x`: "the corrected curve in x"), no jargon (pose, similarity, residual) unless explained in the sentence. Short sentences.
- It is read in two minutes: a phenomenon that repeats (a daily thermal cycle, the nightly rain) is one paragraph, not one per day.
- Figures: inserted by `![caption](path relative to the output folder)`, copied or drawn into the output folder (not `work/`): curves (`plot.py`), thumbnails, a whole camera image (`cp`).
- **GIF**: when the cause is seen on the images over time (a passage, fog, rain, a spider web, an occultation, the sun), `.venv/bin/python tools/scripts/gif.py data/<STATION> --start T --end T --zone X,Y,W,H --out <output folder>` (`tools/GUIDE.md`, gif) shows it better than a still image. Read does not read a GIF: choose the zone and the times on `thumbnails.py` first. Keep it small: the zone of the targets concerned, a few dozen images.
## Your answer ## Your answer