From effcf8fdcb3a1602110cd4a3941bcf81031bfea2 Mon Sep 17 00:00:00 2001 From: maxime Date: Tue, 17 Nov 2026 11:51:58 +0100 Subject: [PATCH] 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 --- instructions/analyst.md | 52 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 47 insertions(+), 5 deletions(-) diff --git a/instructions/analyst.md b/instructions/analyst.md index 450d804..895d5f3 100644 --- a/instructions/analyst.md +++ b/instructions/analyst.md @@ -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/.jsonl`. **You never write in `labeling/auto/.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`. +## The weather + +The weather really measured near the station is not in `data//`: 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` (` `; no line, no weather: say so in your analysis). Then, from `~/aimsight-data`: + +`python3 weather/meteoswiss.py "" --out /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 -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: -- `# : `, then the question (their selection, their hints) in one or two sentences; -- "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; -- 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. +```markdown +# : + + + +## In short + + + +## What happened + + + + + +## What to do + + + +## Not established + + + +## 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/ --start T --end T --zone X,Y,W,H --out ` (`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