Commit Graph
6 Commits
Author SHA1 Message Date
Richie 0a6f544984 refactor(protected-phrases): extract config and text normalization helpers 2026-07-08 17:04:16 -04:00
Richie 0e430f7ae0 feat(ebook): update protected phrases with additional tokens and phrases 2026-07-08 17:04:16 -04:00
Richie ae4e90ecce feat(ebook): enhance phrase judgment logging with failure tracking 2026-07-08 17:04:16 -04:00
Richie 6c5e1a4a4d updated dependencies and added .dockerignore 2026-07-08 17:04:16 -04:00
Richie 8623d54ffe feat(ebook): implement phrase matching functionality and UI enhancements 2026-07-08 17:04:16 -04:00
Richie 319babe2cf 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-08 17:03:40 -04:00