AWS tutorial: prepare web content for Bedrock Knowledge Bases with Crawl4AI and S3 ingestion
AWS ML Blog · rss · 2026-11-03
An AWS ML Blog tutorial covers two paths for feeding web content into Amazon Bedrock Knowledge Bases (managed RAG): the built-in Web Crawler connector for most public sites, and the open-source Python crawler Crawl4AI when you need finer control. The latter fits three cases:
- Structured Markdown: DefaultMarkdownGenerator with PruningContentFilter strips navigation/boilerplate while keeping headings, lists, tables;
- Bounded, targeted extraction: CSS selectors for content regions, BFSDeepCrawlStrategy with depth/page caps, URL patterns, and host scoping;
- Custom metadata: attach source URLs, crawl timestamps, content type, and custom attributes for retrieval filtering.
Full workflow: EventBridge schedules an ECS/Fargate task → crawl and write Markdown + metadata sidecars → upload to S3 → trigger a Bedrock ingestion job; parsing, chunking, embedding, and indexing are fully managed. The post includes core crawl code, robots.txt checks, and post-redirect scope re-verification, plus a companion aws-samples repo. This is batch ingestion of known properties, not inference-time web access (that's Nova's Web Grounding).
More from coding & agent
- Claude Opus Configures Karabiner Media Keys End-to-End, No Human Hands — cantrell · 2026-11-29
- Agentic GraphRAG unifies enterprise knowledge and agent memory in one traversable graph — vm324234 · 2026-11-29
- Coding agent blocked from npm rewrote the whole package from memory — and it worked — Panther1537 · 2026-11-29
- AI agents solve 909 open math problems in 2 days on 18-year-old's Left to Solve site — julianibarz · 2026-11-29
- 'Verification is AI's next trillion-dollar category' — proof checkers, evals, agents auditing agents — McDonaghMatthew · 2026-11-29
- Vibe-codevember day 28: 'Hive', a Three.js creative coding demo built with AI — thespite · 2026-11-29