# Context Manager

Use Context Manager to manage semantic model files, review changes, and deploy updates to production.

## Open Context Manager

Open Context Manager from the workspace navigation or from chat.

![Open Context Manager entry points](/files/fVHLIz8jkZuZBvMYM99A) ![Context Manager overview](/files/TqaaWD4JIkFDQnjXGiIb)

## Manage files

Use the file tree to organize and maintain your data model:

* Create files and folders
* Rename files and folders
* Open view and model files in the editor
* Access file actions from the three-dot menu

Use the three-dot menu to:

* Show documentation for view and model files
* Open database preview for view files

![Context tab file tree](/files/b58eVXXWqhpBI9ExvtCq) ![Three-dot menu actions](/files/T7g7Y4ec6X5pLxVK6LLG)

## Add to the data model

Use the **Add** button to create or upload assets:

* **Add view**
* **Add model**
* **Add skill**
* **Create file**
* **Create folder**
* **Upload file**

When you add a view, choose one of these options:

* Upload a CSV file
* Add from a database connection

Use an existing connection or create a new connection during setup.

![Add button options](/files/i3ofZG93wqOJx6TVOGhv) ![Add view modal](/files/lUYoVL6wIJIBQu7Zsk5G)

## Edit, validate, and review changes

Edit files directly in the text editor. Use the validation panel to review errors and warnings, then fix issues before deployment.

Open the diff view to compare branch changes against production before deployment.

![Editor with validation panel](/files/jgihlnMT3Gih5lzvX33O) ![Diff view](/files/0xAWyfMFIbih2oMAr5OM)

Review YAML key documentation by hovering over keys in the text editor.

![Tooltip with documentation](/files/Nd7BywF2GwqtDawPIwbL)

## Work with branches safely

Use the branch selector to work in non-production branches.

Disable the workspace setting that allows direct edits on the production branch to enforce a branch-based workflow.

![Branch selector](/files/M2tWk6xGNIOQ7EIBkNiC) ![Disable production edits setting](/files/OyTTFiZN7Gwzu8IXfS4E)

## Deploy to production

After you commit changes on a development branch, use the deploy action to publish to production.

You must resolve validation errors before deployment.

![Deploy action](/files/vx92K0Q4TaMi3bviyAbT)


---

# 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.zenlytic.com/data-modeling/context_manager.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.
