Commit Graph
4 Commits
Author SHA1 Message Date
Richie a19ace7959 refactor(protected-phrases): extract config and text normalization helpers 2026-07-09 11:04:59 -04:00
Richie cc31483973 feat(ebook): enhance phrase judgment logging with failure tracking 2026-07-09 11:04:59 -04:00
Richie f20c45bea9 feat(ebook): implement phrase matching functionality and UI enhancements 2026-07-09 11:04:59 -04:00
Richie 1eecf7181d feat(ebook): add protected phrase extraction library with config-driven tuning
Refactor protected phrase handling from a single module into a
python/ebook_search/protected_phrases package covering extraction,
storage, and runtime matching. Phrase filtering is now data-driven via
bundled TOML files: ignored_phrases, bad_starts, bad_ends, and
most_common_words.

Add phrase-tuning settings to EbookSearchConfig so candidate generation,
scoring, LLM judging, and matching are configurable rather than hardcoded:
token bounds, entity token limit, raw n-gram min count, frequency and
chapter-spread score thresholds, candidate/LLM/target caps, confidence
threshold, nesting defaults, and the phrase hit boost.
2026-07-09 11:04:59 -04:00