M2: extraction quality — fallback extractors, thin-content detection, result cache

- extractor: trafilatura (precision) -> trafilatura (recall) -> readability-lxml
  fallback chain; longest result wins; 'thin' flag below 200 chars
- orchestrator: Redis-backed scrape-result cache keyed by URL (cache hit skips
  render entirely); thin/empty results are never cached
- /health reports orchestrator Redis reachability

Verified: HN + synthetic thin/empty/boilerplate pages; cache hit path via fakeredis.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
User 2026-07-05 22:05:04 -07:00
parent e2b329b2bb
commit 56e7fa16dd
8 changed files with 156 additions and 32 deletions

View file

@ -2,3 +2,4 @@ fastapi>=0.115
uvicorn[standard]>=0.32
httpx>=0.27
mcp>=1.2
redis>=5.0