Key Principles of Documentation Creation

Terms

Introduction

Documentation is the process of synchronizing the cognitive context of the audience, which includes both humans and language models. Its goal is to provide the audience with a holistic understanding of the documented subject through a gradual increase in detail, from general concepts to specifics. Different levels of detail are often required, ranging from a high-level overview to in-depth details. Therefore, documentation is structured hierarchically, ensuring a sequential disclosure of information—from general provisions to clarifying details—avoiding duplication and allowing both quick familiarization and in-depth study.

Immersion of the Reader into the Cognitive Context

Documentation should be structured to enable the reader to efficiently immerse themselves in the cognitive context of the documented subject. This is achieved through a clear structure, logical coherence, and sufficient depth of information, allowing the reader to align their knowledge and understanding with the provided content.

Structuring and Hierarchy of Documentation

Documentation should follow a hierarchical approach, where information is presented in levels of detail—from general to specific. Each level complements and refines the previous one, forming a logical sequence that allows the reader to navigate the documentation based on their experience and current needs in forming a cognitive context.

Documentation Levels

A document typically includes multiple levels of detail:

Level Size Recommendations

Documentation should be structured as a set of interconnected documents, where each document covers a specific aspect of the subject. Navigation should assist the reader in orienting themselves within this set, making it easy to find relevant materials and move between levels and topics. Interactive elements such as hyperlinks, tables of contents, and cross-references simplify access to information. The reader should always understand their position within the structure and how to transition to related documents or return to an overview.

LLM Orientation

Documentation should account for the specifics of how language models (LLMs) work and be formatted in Markdown, which ensures structured content and ease of processing. Key information should be placed at the beginning of each section to establish a foundational context. Consistency in terminology is crucial, avoiding ambiguity and redundant terms. The documentation structure should be logical and hierarchical, using headings, lists, and formatting to highlight semantic blocks. Sections should be self-contained yet interlinked through cross-references to maintain context.