Proper document structure improves readability for both humans and AI (GPT models from OpenAI read markdown best, while anthropic models read XML). We recommend using a clear hierarchy with headings, subheadings, and bullet points.
# Product X User Manual ## 1. Introduction - Overview of Product X - Key features and benefits ## 2. Getting Started - Unboxing and setup - Initial configuration ## 3. Basic Operations - Powering on/off - Navigating the user interface ## 4. Advanced Features - Custom settings - Integration with other devices ## 5. Troubleshooting - Common issues and solutions - Contacting support
Consistent structure across documents helps the AI agent quickly locate and extract relevant information, leading to more accurate and context-aware responses. To quickly reformat documents, feed the text to an LLM.
These descriptions and tags help the LLM understand the context and relevance of each document, improving the accuracy of information retrieval. We recommend doing both for best possible retrieval and output.