Structuring content for optimal retrieval by RAG systems