arbabarshad Claude Opus 4.6 (1M context) commited on
Commit
7ec5928
·
1 Parent(s): 1c52b33

Document examples -> tex fragments -> main.tex workflow in README

Browse files

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Files changed (1) hide show
  1. README.md +2 -13
README.md CHANGED
@@ -37,19 +37,8 @@ OPENROUTER_API_KEY=... # optional, for Llama/Gemini
37
 
38
  ### Example Vignettes → Paper Workflow
39
 
40
- This is the workflow for generating example responses and getting them into the paper (`main.tex`):
41
-
42
- 1. **Run examples**: `python app.py --examples` → saves 6 vignettes (SLF, Striga×2, FAW×2, Sahara Mustard) to `examples-work-out/example_results_{timestamp}.json`
43
- 2. **Update paper via Claude**: Give the JSON file to Claude and ask it to update the vignette sections in `writing/65d4fadc59fceb1a54d1aae6/main.tex`. Claude formats each example into the `\configbox`/`\querybox`/`tcolorbox` LaTeX pattern defined in main.tex (lines ~485-497). There is no automated script for this step.
44
- 3. **Recompile**: `pdflatex main.tex` to embed updated examples.
45
-
46
- **Key files:**
47
- - `app.py` — `run_examples()` (~line 670) defines the 6 vignettes; RAG prompt template (lines 406-429)
48
- - `examples-work-out/species-verification.md` — tracks which vignettes map to which JSON examples and their DB status
49
- - `writing/65d4fadc59fceb1a54d1aae6/main.tex` — paper draft with vignette sections (Witchweed §, Fall Armyworm §)
50
-
51
- **Not part of the main workflow:**
52
- - `examples-work-out/generate_latex.py` — generates a **standalone** LaTeX document from JSON results (useful for quick review), but does **not** feed into `main.tex`. Paper integration is done manually via Claude as described above.
53
 
54
  ### Git Remotes
55
  - `space2` → `git@hf.co:spaces/arbabarshad/agllm2` (production)
 
37
 
38
  ### Example Vignettes → Paper Workflow
39
 
40
+ 1. `python app.py --examples` → runs the 13 vignettes in `run_examples()` (6 single-model + 7 multi-model) and writes `examples-work-out/example_results_{timestamp}.json`.
41
+ 2. `python examples-work-out/generate_latex.py` → reads the latest JSON, converts each result to a LaTeX fragment (with a GPT-4.1 generated commentary), and writes one `.tex` per example into `writing/65d4fadc59fceb1a54d1aae6/examples/`. `main.tex` includes them via `\input{examples/<id>}`. To change what runs, edit the `examples` list in `app.py::run_examples()`.
 
 
 
 
 
 
 
 
 
 
 
42
 
43
  ### Git Remotes
44
  - `space2` → `git@hf.co:spaces/arbabarshad/agllm2` (production)