Amazon Web Services (AWS) describes how its Amazon Bedrock Knowledge Bases can ingest web pages prepared by Crawl4AI, an open source Python crawler. AWS says the step writes Markdown and a metadata file for each page to Amazon S3, and the knowledge base ingests both.
Knowledge Bases is the managed service behind retrieval augmented generation (RAG), where an AI app looks up your documents before answering. AWS says its built-in Amazon Bedrock Web Crawler is the starting point for most public website content. That connector takes seed URLs or sitemaps, respects robots.txt, and keeps content current through scheduled syncs. It can also wait for pages that load with JavaScript.
The Crawl4AI path is for sources that need more control. AWS lists three uses: converting pages to structured Markdown with navigation and other boilerplate pruned, extracting only a region matched by a CSS selector, and attaching custom metadata such as source URLs and crawl timestamps. That metadata lets retrieval results be filtered. AWS notes the pruning is heuristic, so output from representative sites needs review.
The approach works with both managed and customer-managed knowledge bases, because both support Amazon S3 data sources. AWS describes it as batch ingestion of known sites, not real-time web access, and offers a sample repository with the full workflow.
Source: Prepare web content for Amazon Bedrock Knowledge Bases with Crawl4AI | Artificial Intelligence.