02. Documenting models

The primary function of Kondado's models is to abstract business rules and data joins into a single, pre-prepared and transformed table that can be consumed by non-technical users, visualization tools, and feature stores.

In this sense, providing documentation for your model is essential so that its "consumers" can have even more freedom to self-serve and explore the company's data. Documenting models is one of the primary responsibilities of any analytics engineer.

When opening your Kondado model, you will see a small book icon next to "Settings." By clicking on it, you will access your model's documentation:

The documentation of a model consists of four (4) sections:

The "SUMMARY" section contains basic, non-directly editable information about the model: URL, table, destination, triggers, and execution chain:

The "ABOUT" section is a free text area created by users. Its editing is similar to that of Word (or Google Docs).

To edit this section, click on the pencil icon located next to the section title:

In this editor, you can write whatever you want and use the available actions to format your text. Here, you can include a description of the model, its purpose, target audience, use cases, examples, etc:

Once you are satisfied with the written text, simply click on the floppy disk icon next to the section title, and your text will be saved.

After a model is executed, Kondado stores the fields of the generated table. In this section of the documentation, you can provide a description for each field generated in your table:

To edit the description of a field, simply click on the pencil icon that appears in each row within the "DESCRIPTION" column:

If you are satisfied with the field description, click on the floppy disk icon, and the description will be saved:

In this section, the model's query (SQL) will be displayed, with no possibility of editing: