Commit Graph
6 Commits
Author SHA1 Message Date
Antigravity 915d2784a2 fix(ai): increase timeout to 60s, keep model resident in RAM for 24h, and warm up on startup 2026-10-07 09:57:38 +03:00
Antigravity 52db766b23 fix(dictionary): strip Latin romanization debris from Russian translations and sanitize dictionary cache 2026-10-06 23:08:54 +03:00
Antigravity e371cdd4e5 fix(reader): prevent false phrasal verb detection for noun collocations and improve literary translation accuracy 2026-10-06 22:58:33 +03:00
Antigravity 63e0c6fc07 fix(ai): enforce zero-relative clause preservation and anti-omission rules in literary prompt 2026-10-06 22:43:55 +03:00
Antigravity 532e2ec3b2 fix(ai,reader): robust sentence segmentation without abbreviation cutoffs & context-aware literary translation
- Implement robustSentenceSplit across reader.js and backend (miner.py, cefr.py) to prevent false cutoffs on honorifics (Mr., Mrs., Dr.), single-letter initials (John F. Kennedy), decimals, acronyms (U.S., U.K.), and abbreviations (No. 4, etc.)
- Upgrade translation prompt to professional literary Russian, eliminating literal word-for-word translation and preserving titles/honorifics
- Inject surrounding paragraph context into translation API to avoid out-of-context translations
- Inject offline dictionary hints into LLM prompt for accurate contextual word meaning
- Prefer qwen2.5:3b for higher translation fluency and fidelity
- Purge truncated cache entries from sentence_translations and restore Card 30 (briefcase) with authentic full sentence
- Bump Service Worker cache to notes-v6.0
- Add unit tests for robust sentence splitting, prompt formatting, and translation API
2026-10-06 22:32:36 +03:00
Antigravity 37a1f1ab35 feat(ai): integrate local Ollama AI for in-context sentence translation and caching (Task 13) 2026-10-06 15:05:24 +03:00