Commit Graph
5 Commits
Author SHA1 Message Date
Richie 802a781195 feat(config): add new scoring parameters for phrase extraction and matching 2026-07-16 13:09:34 -04:00
Richie 7b19e7841a feat(ebook-search): implement async phrase matching for chunks and add ChunkPhraseHit model 2026-07-16 13:09:34 -04:00
Richie 0d347e20a7 refactor(ebook-search): simplify search and phrase matching 2026-07-16 13:09:34 -04:00
Richie 5925aa301d fix(protected-phrases): isolate phrase generation per book
Run full-book candidate generation inside worker-owned sessions so each book commits independently during backfills. Abort recalculation when a book has no indexed chapters to preserve existing phrase data, and update admin/UI tests for the new generation flow.
2026-07-16 13:09:34 -04:00
Richie 3e2cd550c6 test(ebook): cover protected phrases and migrate suite to async
Add test_protected_phrases.py covering phrase-matching behavior in the
RAG engine, and update the existing ebook_search tests to use the async
SQLAlchemy engine/session (create_async_engine, AsyncSession) and async
HTTP paths.
2026-07-16 13:09:34 -04:00