> For the complete documentation index, see [llms.txt](https://whiteklay.gitbook.io/virtual-data-assistant/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://whiteklay.gitbook.io/virtual-data-assistant/how-to-guides/data-analytics/data-modeling.md).

# Data Modeling

Go to Datasource.

<img src="https://803373986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEZ25VHhdl67JelwmVtBp%2Fuploads%2F0ZUeeGcwpe53aS9Qf19B%2Funknown.png?alt=media&amp;token=60cdc4bc-5b4e-43f4-a51f-238f7a5d1bab" alt="" height="307" width="664">

Click on the Dataset.

<img src="https://803373986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEZ25VHhdl67JelwmVtBp%2Fuploads%2FOJSLzXpKErkQ1LCInRzb%2Funknown.png?alt=media&amp;token=7acad97c-0ee2-45c8-9b3d-7263c72c4b0e" alt="" height="339" width="664">

Generate the Metadata (icon on the bottom right corner)

<img src="https://803373986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEZ25VHhdl67JelwmVtBp%2Fuploads%2FHXhLd3Ze5PifdhCRtDGh%2Funknown.png?alt=media&amp;token=0af8d2e3-7a60-4fb0-af20-365bc6709776" alt="" height="380" width="664">

Add a short description of all columns

<img src="https://803373986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEZ25VHhdl67JelwmVtBp%2Fuploads%2FIvqWA1I4SPlZZZbHg0v2%2Funknown.png?alt=media&amp;token=7d8e52a3-f21a-4f8a-a3cb-0f6eb983cf51" alt="" height="377" width="664">

Go to Transformation

<img src="https://803373986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEZ25VHhdl67JelwmVtBp%2Fuploads%2FVFKMNJf3OoTT67Axb8sB%2Funknown.png?alt=media&amp;token=f0fc02dd-8132-4f42-b4ff-2387a9705d5a" alt="" height="202" width="664">

Add the transformation logic

<img src="https://803373986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEZ25VHhdl67JelwmVtBp%2Fuploads%2FdvLo1Lgwt51PhLSj1ogl%2Funknown.png?alt=media&amp;token=6c16ae61-32ee-44c6-bec3-ba9d8c979362" alt="" height="227" width="664">

Define the semantic model by mapping output fields to source tables and fields, then apply the required aggregation or transformation logic.

<img src="https://803373986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEZ25VHhdl67JelwmVtBp%2Fuploads%2FQOhs0EOkWhYoXBv4nT1f%2Funknown.png?alt=media&amp;token=f642016e-cda4-431d-be09-5812b660fad7" alt="" height="298" width="664">

Defining schema attributes to standardize data structure.

<img src="https://803373986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEZ25VHhdl67JelwmVtBp%2Fuploads%2Fo4v8yklHA9UewOzT4Iqf%2Funknown.png?alt=media&amp;token=023df3a7-b65f-4d13-8660-ab81cf880161" alt="" height="267" width="664">

Mapping raw data to business-ready fields with transformation logic

<img src="https://803373986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEZ25VHhdl67JelwmVtBp%2Fuploads%2FpoOLVCbXOAPQXKxImpeD%2Funknown.png?alt=media&amp;token=ce23dc83-f205-416c-bca2-9218f0933c75" alt="" height="249" width="664">

Transforming raw tables into business-ready insights with SQL logic.

<img src="https://803373986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEZ25VHhdl67JelwmVtBp%2Fuploads%2FoTAB7tEr5qjIx5FHmI5m%2Funknown.png?alt=media&amp;token=9c8a0bb0-0e7f-4442-abf5-a451a6503d3d" alt="" height="202" width="664">


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://whiteklay.gitbook.io/virtual-data-assistant/how-to-guides/data-analytics/data-modeling.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
