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
|
|
@ -5,3 +5,6 @@ EXTRACTOR_URL = os.environ.get("EXTRACTOR_URL", "http://localhost:8003")
|
|||
SEARCHER_URL = os.environ.get("SEARCHER_URL", "http://localhost:8001")
|
||||
|
||||
STAGE_TIMEOUT_S = float(os.environ.get("STAGE_TIMEOUT_S", "60"))
|
||||
|
||||
REDIS_URL = os.environ.get("REDIS_URL", "")
|
||||
EXTRACT_CACHE_TTL = int(os.environ.get("EXTRACT_CACHE_TTL", "3600"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue