Skip to content

Commit b1f9850

Browse files
committed
add new content
1 parent 48eb166 commit b1f9850

File tree

6 files changed

+59
-10
lines changed

6 files changed

+59
-10
lines changed

website/docs/docs/cloud/about-cloud/about-dbt-cloud.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dbt Cloud's [flexible plans](https://www.getdbt.com/pricing/) and features make
2424

2525
<Card
2626
title="dbt Cloud IDE"
27-
body="The IDE is the easiest and most efficient way to develop dbt models, allowing you to build, test, run, and version control your dbt projects directly from your browser. Use dbt Copilot, a powerful AI engine that automatically generates documentation, tests, and semantic models."
27+
body="The IDE is the easiest and most efficient way to develop dbt models, allowing you to build, test, run, and version control your dbt projects directly from your browser. Use dbt Copilot, a powerful AI engine that automatically generates inline SQL, documentation, tests, and semantic models."
2828
link="/docs/cloud/dbt-cloud-ide/develop-in-the-cloud"
2929
icon="dbt-bit"/>
3030

website/docs/docs/cloud/dbt-cloud-ide/develop-in-the-cloud.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The dbt Cloud integrated development environment (IDE) is a single web-based int
1313
The dbt Cloud IDE offers several [keyboard shortcuts](/docs/cloud/dbt-cloud-ide/keyboard-shortcuts) and [editing features](/docs/cloud/dbt-cloud-ide/ide-user-interface#editing-features) for faster and efficient development and governance:
1414

1515
- Syntax highlighting for SQL &mdash; Makes it easy to distinguish different parts of your code, reducing syntax errors and enhancing readability.
16-
- AI copilot &mdash; Use [dbt Copilot](/docs/cloud/dbt-copilot), a powerful AI engine that can generate documentation, tests, and semantic models for your dbt SQL models.
16+
- AI copilot &mdash; Use [dbt Copilot](/docs/cloud/dbt-copilot), a powerful AI engine that can [generate inline SQL](/docs/cloud/use-dbt-copilot#generate-inline-sql) using natural language, and [generate documentation](/docs/build/documentation), [tests](/docs/build/data-tests), and [semantic models](/docs/build/semantic-models) for you with the click of a button.
1717
- Auto-completion &mdash; Suggests table names, arguments, and column names as you type, saving time and reducing typos.
1818
- Code [formatting and linting](/docs/cloud/dbt-cloud-ide/lint-format) &mdash; Helps standardize and fix your SQL code effortlessly.
1919
- Navigation tools &mdash; Easily move around your code, jump to specific lines, find and replace text, and navigate between project files.

website/docs/docs/cloud/dbt-copilot.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ pagination_prev: null
88

99
# About dbt Copilot <Lifecycle status='beta'/>
1010

11-
dbt Copilot is a powerful artificial intelligence (AI) engine that's fully integrated into your dbt Cloud experience and designed to accelerate your analytics workflows. dbt Copilot embeds AI-driven assistance across every stage of the analytics development life cycle (ADLC), empowering data practitioners to deliver data products faster, improve data quality, and enhance data accessibility. With automatic code generation, you can let the AI engine generate the [documentation](/docs/build/documentation), [tests](/docs/build/data-tests), and [semantic models](/docs/build/semantic-models) for you.
11+
dbt Copilot is a powerful artificial intelligence (AI) engine that's fully integrated into your dbt Cloud experience and designed to accelerate your analytics workflows. dbt Copilot embeds AI-driven assistance across every stage of the analytics development life cycle (ADLC), empowering data practitioners to deliver data products faster, improve data quality, and enhance data accessibility.
12+
13+
With automatic code generation, let dbt Copilot [generate inline SQL](/docs/cloud/use-dbt-copilot#generate-inline-sql) using natural language, and [generate documentation](/docs/build/documentation), [tests](/docs/build/data-tests), and [semantic models](/docs/build/semantic-models) for you with the click of a button.
1214

1315
:::tip Beta feature
14-
dbt Copilot is designed to _help_ developers generate documentation, tests, and semantic models in dbt Cloud. It's available in beta, in the dbt Cloud IDE only.
16+
dbt Copilot is designed to _help_ developers generate documentation, tests, and semantic models, as well as [inline SQL](/docs/cloud/use-dbt-copilot#generate-inline-sql) using natural language, in dbt Cloud. It's available in beta, in the dbt Cloud IDE only.
1517

1618
To use dbt Copilot, you must have an active [dbt Cloud Enterprise account](https://www.getdbt.com/pricing) and either agree to use dbt Labs' OpenAI key or provide your own Open AI API key. [Register here](https://docs.google.com/forms/d/e/1FAIpQLScPjRGyrtgfmdY919Pf3kgqI5E95xxPXz-8JoVruw-L9jVtxg/viewform) or reach out to the Account Team if you're interested in joining the private beta.
1719
:::
+53-6
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,69 @@
11
---
22
title: "Use dbt Copilot"
33
sidebar_label: "Use dbt Copilot"
4-
description: "Use the dbt Copilot AI engine to generate documentation, tests, and semantic models from scratch, giving you the flexibility to modify or fix generated code."
4+
description: "Use dbt Copilot to generate documentation, tests, semantic models, and inline sql code from scratch, giving you the flexibility to modify or fix generated code."
55
---
66

77
# Use dbt Copilot <Lifecycle status='beta'/>
88

9-
Use dbt Copilot to generate documentation, tests, and semantic models from scratch, giving you the flexibility to modify or fix generated code. To access and use this AI engine:
9+
Use dbt Copilot to generate documentation, tests, semantic models, and inline sql code from scratch, giving you the flexibility to modify or fix generated code.
1010

11-
1. Navigate to the dbt Cloud IDE and select a SQL model file under the **File Explorer**.
11+
This page explains how to use dbt Copilot to:
1212

13-
2. In the **Console** section (under the **File Editor**), click **dbt Copilot** to view the available AI options.
13+
- [Generate resources](#generate-resources) &mdash; Save time by using dbt Copilot’s generation button to generate documentation, tests, and semantic model files during your development.
14+
- [Generate inline sql code](#generate-inline-sql-code) &mdash; Use natural language prompts to generate SQL code from scratch or to edit existing SQL file by using keyboard shortcuts or highlighting code.
15+
16+
## Generate resources
1417

18+
Generate documentation, tests, and semantic models resources with the click-of-a-button using dbt Copilot, saving you time. To access and use this AI feature:
19+
20+
1. Navigate to the dbt Cloud IDE and select a SQL model file under the **File Explorer**.
21+
2. In the **Console** section (under the **File Editor**), click **dbt Copilot** to view the available AI options.
1522
3. Select the available options to generate the YAML config: **Generate Documentation**, **Generate Tests**, or **Generate Semantic Model**.
1623
- To generate multiple YAML configs for the same model, click each option separately. dbt Copilot intelligently saves the YAML config in the same file.
17-
1824
4. Verify the AI-generated code. You can update or fix the code as needed.
19-
2025
5. Click **Save As**. You should see the file changes under the **Version control** section.
2126

2227
<Lightbox src="/img/docs/dbt-cloud/cloud-ide/dbt-copilot-doc.gif" width="100%" title="Example of using dbt Copilot to generate documentation in the IDE" />
28+
29+
## Generate inline SQL <Lifecycle status='beta'/>
30+
31+
dbt Copilot also allows you to generate SQL code directly within the SQL file in the dbt Cloud IDE, using natural language prompts. This means you can rewrite or add specific portions of the SQL file file without needing to edit the entire file.
32+
33+
This intelligent AI tool streamlines SQL development by reducing errors, scaling effortlessly with complexity, and saving valuable time. dbt Copilot's [prompt window](#use-the-prompt-window), accessible by keyboard shortcut, handles repetitive or complex SQL generation effortlessly so you can focus on high-level tasks.
34+
35+
Use Copilot's prompt window for use cases like:
36+
37+
- Writing advanced transformations
38+
- Performing bulk edits efficiently
39+
- Crafting complex patterns like regex
40+
41+
### Use the prompt window
42+
43+
Access dbt Copilot's AI prompt window using the keyboard shortcut Cmd+B (Mac) or Ctrl+B (Windows) to:
44+
45+
#### 1. Generate SQL from scratch
46+
- Use the keyboard shortcuts Cmd+B (Mac) or Ctrl+B (Windows) to generate SQL from scratch.
47+
- Enter your instructions to generate SQL code tailored to your needs using natural language.
48+
49+
<Lightbox src="/img/docs/dbt-cloud/cloud-ide/copilot-sql-generation-prompt.jpg" width="90%" title="dbt Copilot's prompt window accessible by keyboard shortcut Cmd+B (Mac) or Ctrl+B (Windows)" />
50+
51+
#### 2. Edit existing SQL code
52+
- Highlight a section of SQL code and press Cmd+B (Mac) or Ctrl+B (Windows) to open the prompt window for editing.
53+
- Use this to refine or modify specific code snippets based on your needs.
54+
55+
#### 3. Review changes with the diff view to quickly assess the impact of the changes before making changes
56+
- When a suggestion is generated, Copilot displays a visual "diff" view to help you compare the proposed changes with your existing code:
57+
- **Green**: Means new code that will be added if you accept the suggestion.
58+
- **Red**: Highlights existing code that will be removed or replaced by the suggested changes.
59+
60+
#### 4. Accept or reject suggestions for full control
61+
- **Accept**: If the generated SQL meets your requirements, click the **Accept** button to apply the changes directly to your `.sql` file directly in the IDE.
62+
- **Reject**: If the suggestion don’t align with your request/prompt, click **Reject** to discard the generated SQL without making changes and start again.
63+
64+
Once you've accepted a suggestion, you can continue to use the prompt window to generate additional SQL code and commit your changes to the branch.
65+
66+
<Lightbox src="/img/docs/dbt-cloud/cloud-ide/copilot-sql-generation.gif" width="100%" title="Edit existing SQL code using dbt Copilot's prompt window accessible by keyboard shortcut Cmd+B (Mac) or Ctrl+B (Windows)" />
67+
68+
### Considerations
69+
Currently, dbt Copilot is focused on generating inline SQL code to streamline development. We're exploring ways to expand its capabilities in the future to further enhance and support your workflow
Loading
Loading

0 commit comments

Comments
 (0)