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:
parent
e2b329b2bb
commit
56e7fa16dd
8 changed files with 156 additions and 32 deletions
|
|
@ -2,3 +2,4 @@ fastapi>=0.115
|
|||
uvicorn[standard]>=0.32
|
||||
httpx>=0.27
|
||||
mcp>=1.2
|
||||
redis>=5.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue