Home icon

Prepare web content for Amazon Bedrock Knowledge Bases with Crawl4AI

Machine Learning Blog



This article demonstrates how to use Crawl4AI, an open-source Python crawler, to prepare web content for ingestion into Amazon Bedrock Knowledge Bases with custom extraction, Markdown formatting, and metadata sidecars.

  • Use Amazon Bedrock Web Crawler for most public websites; use Crawl4AI when content needs custom preparation, targeted extraction, or metadata attributes
  • Crawl4AI performs bounded crawling, generates Markdown with pruned boilerplate, and creates metadata sidecars for each page
  • Deploy a scheduled AWS Fargate task via AWS CDK that crawls websites, uploads prepared content to Amazon S3, and triggers knowledge base ingestion
  • Validate retrieval quality using metadata filters and test representative questions before adding generation
  • Apply Bedrock Guardrails, contextual grounding checks, and document-level access controls for responsible AI and security

The workflow enables RAG applications to ingest prepared web content with custom metadata, improving retrieval quality and citation accuracy for generative AI responses.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jul 30
2024
Implement web crawling in Amazon Bedrock Knowledge Bases
Nov 12
2026
Migrate to Amazon Bedrock Managed Knowledge Base with your coding agent
Jul 7
2025
Build a just-in-time knowledge base with Amazon Bedrock
Oct 26
2026
Build agentic retrieval on a Managed Amazon Bedrock Knowledge Base with CDK

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.