Refine caption display and final prompt experiments

This commit is contained in:
Adolfo Reyna
2026-03-17 14:00:42 -04:00
parent 7451d164b7
commit a2b108a5da
3 changed files with 93 additions and 1 deletions
+8
View File
@@ -307,3 +307,11 @@ The project now features a high-performance, Apple Silicon-optimized pipeline th
- Tightened the live paragraph system prompt in `engine_llm.py` so output must stay English-only, non-English fragments should not be copied through, isolated trailing foreign fragments should be dropped, and only clearly central foreign content should be translated into English.
- Added paragraph-specific generation controls to `main_v2.py` and `config.json` so paragraph tuning can evolve independently of line-correction behavior.
- **Outcome:** Paragraph refinement is now stricter about keeping the final output in English while preserving the more grounded context layout and the best-tested Ollama generation settings.
## Phase 35: Previous-Context Scope + Previous-Source Final Check
- **Goal:** Decide whether the paragraph refiner should keep receiving previous source text when experimenting with multiple prior refined paragraphs as context.
- **Approach:**
- Extended `prompt_experiments.py` to compare `2` and `4` previous refined paragraphs with and without `PREVIOUS SOURCE TEXT`.
- Ran the final focused comparison on later reconstructed samples using deterministic generation (`temperature=0.0`) to minimize sampling noise.
- Compared the resulting tradeoffs in unsupported content, repetition, and output length instead of looking only at one-off wins.
- **Outcome:** Keeping `PREVIOUS SOURCE TEXT` remains the safer choice. The best result from this final sweep was `2` previous refined paragraphs plus previous source text; removing previous source text consistently hurt grounding, while larger refined-context windows increased drift risk.