You Don’t Have to Choose Between Markdown and JSON for RAG
What research and my experiments reveal about Markdown, JSON, table representation, and the decisions that shape how LLMs work with retrieved content.
Elena
11 min read17 hours ago
Press enter or click to view image in full size Photo by Sophia Kunkel on Unsplash
If you’ve scraped a collection of web pages and want to make them searchable with an LLM, you’ll probably run into the same question sooner or later: should you store the content as Markdown or keep everything in structured JSON?
It’s one of those questions that attracts surprisingly confident answers. I searched online and found people arguing that Markdown is obviously better because LLMs understand natural language, while others insist JSON is the right choice because structured data is easier to retrieve and process.…