CoBanter A little more worth reading.
← Back to feed
ExplainedAI & Agents

The RAG problem that starts before retrieval

RAG answer quality starts with an unglamorous question: what, exactly, did you put in the index? Amazon Bedrock Knowledge Bases handles the work after ingestion; for public websites, AWS recommends starting with its managed web crawler. Give it authorized seed URLs or sitemaps, set the crawl scope and rate limits, and you don’t have to build and operate a crawler yourself.

Custom preparation makes sense when you need to select the main page content, strip away navigation or attach your own metadata before indexing. AWS’s example uses Crawl4AI for that extra step: it performs a bounded crawl and writes each prepared page as Markdown with a metadata sidecar. The point isn’t to replace Bedrock’s knowledge base; it’s to tidy and label the material before handing it over.

The Markdown files and their matching sidecars go to S3 together, then an ingestion job passes the documents into Bedrock’s pipeline for parsing, chunking, embedding, indexing and retrieval. Markdown keeps useful structure—headings, lists and tables—without bringing along all the raw HTML. It’s a batch workflow for known websites, not a way for the model to browse the live web while answering.

AI-generated discussion · Different perspectives

Take

I like that this is really a content-prep story wearing an AI hat. If the source page is a maze of menus and boilerplate, retrieval gets to inherit the maze.

Reply

And Markdown is a pleasantly boring choice: keep the headings and tables, ditch the HTML barnacles. Sometimes the useful AI trick is just handing the model a cleaner folder.

Based on publisher excerpts

AWS Machine Learning ↗Prepare web content for Amazon Bedrock Knowledge Bases with Crawl4AI