# Prepare web content for Amazon Bedrock Knowledge Bases with Crawl4AI

DevFeed: [Prepare web content for Amazon Bedrock Knowledge Bases with Crawl4AI](<https://devfeed.tech/articles/prepare-web-content-for-amazon-bedrock-knowledge-bases-with-crawl4ai-113559.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/machine-learning/prepare-web-content-for-amazon-bedrock-knowledge-bases-with-crawl4ai/>)

Author: Daxeshkumar Patel

Published: 2026-11-02T17:11:21Z

Content type: article

Language: en

Sources: [Artificial Intelligence](<https://devfeed.tech/sources/artificial-intelligence.md>)

Topics: [Amazon Bedrock Knowledge Bases](<https://devfeed.tech/topics/amazon-bedrock-knowledge-bases.md>), [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [amazon](<https://devfeed.tech/tags/amazon.md>), [amazon-bedrock](<https://devfeed.tech/tags/amazon-bedrock.md>), [amazon-bedrock-knowledge-bases](<https://devfeed.tech/tags/amazon-bedrock-knowledge-bases.md>), [amazon-s3](<https://devfeed.tech/tags/amazon-s3.md>), [bedrock](<https://devfeed.tech/tags/bedrock.md>), [content](<https://devfeed.tech/tags/content.md>), [crawler](<https://devfeed.tech/tags/crawler.md>), [custom](<https://devfeed.tech/tags/custom.md>), [data](<https://devfeed.tech/tags/data.md>), [handling](<https://devfeed.tech/tags/handling.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [knowledge](<https://devfeed.tech/tags/knowledge.md>), [metadata](<https://devfeed.tech/tags/metadata.md>), [open](<https://devfeed.tech/tags/open.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [post](<https://devfeed.tech/tags/post.md>), [s3](<https://devfeed.tech/tags/s3.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>), [web](<https://devfeed.tech/tags/web.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

For most public websites, the article recommends starting with the managed Amazon Bedrock Web Crawler. When pages need selective extraction or custom metadata, a scheduled AWS Fargate task can use Crawl4AI to crawl bounded, authorized public sites, prepare Markdown and matching metadata sidecars, upload them to S3, and start knowledge base ingestion. Bedrock then handles parsing, chunking, embeddings, indexing, and retrieval. The sample's pruning is heuristic and should be reviewed; chunking choices affect retrieval and cannot be changed on an existing data source. The workflow is batch ingestion, not real-time web access, and does not handle authenticated sessions. Its sample lacks retries and failure alarms, does not remove stale S3 objects automatically, and can incur ongoing infrastructure charges. The article advises validating retrieval and citations with representative content and treating crawled pages as untrusted model context.

## Source excerpt

This post shows how to use Crawl4AI, an open source web crawler, as a content preparation layer for Amazon Bedrock Knowledge Bases, handling JavaScript rendering, selective extraction, and custom metadata enrichment before web content reaches an Amazon S3 data source.