# How the Data Layer Works

* **Data Collection:**
  * Data is collected from various sources, including CeDePIN Cloud, Inference API, AI Apps/Agents that joined the Grafi ecosystem. This raw data could represent subscription execution details, performance metrics, and user usage statistics.
* **Aggregation and Validation:**
  * The data is passed through the Grafi AI Data Layer, which act as data aggregators. These layer validate the accuracy and completeness of the data before it is passed on for further processing. Validators ensure the integrity of the data quality, minimizing errors, analyze trends and tracking user behaviour.
* **Data Labeling:**
  * Once validated, the data pass to our Grafi Data layer, it will be labelled and assigned into data swarm for modeling fine tuning.
* **Model Fine Tuning:**
  * High quality data in data swarm will be used to fine tuning Grafilab customised MoE LLM and other smaller LLM to serve different needs.


---

# Agent Instructions: 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:

```
GET https://docs.grafilab.io/home/whitepaper/grafi-ai-data-layer/how-the-data-layer-works.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
