Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Commit a190d5e

Browse files
author
Sebastian Sassi
committed
Datacoves Copilot v2 config.
1 parent 3a7029d commit a190d5e

File tree

8 files changed

+321
-23
lines changed

8 files changed

+321
-23
lines changed

docs/_sidebar.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- [Snowflake Extension](/getting-started/developer/snowflake-extension.md)
1212
- [Transform Tab](/getting-started/developer/transform-tab.md)
1313
- [Working with dbt in Datacoves](/getting-started/developer/working-with-dbt-datacoves.md)
14-
- [Lineage View](/getting-started/developer/lineage-view.md)
14+
- [Lineage View](/getting-started/developer/lineage-view.md)
1515
- [Using Git](/getting-started/developer/using-git.md)
1616
- **Diving Deeper**
1717
- [How to](/how-tos/)
@@ -87,8 +87,11 @@
8787
- [Add a Dataset](/how-tos/superset/how_to_data_set.md)
8888
- [VS Code](/how-tos/vscode/)
8989
- [Datacoves Copilot](/how-tos/vscode/datacoves-copilot/)
90-
- [Config](/how-tos/vscode/datacoves-copilot/llm-config.md)
91-
- [Usage](/how-tos/vscode/datacoves-copilot/llm.md)
90+
- [V1](/how-tos/vscode/datacoves-copilot/v1.md)
91+
- [Config](/how-tos/vscode/datacoves-copilot/v1-llm-config.md)
92+
- [Usage](/how-tos/vscode/datacoves-copilot/v1-llm.md)
93+
- [V2](/how-tos/vscode/datacoves-copilot/v2.md)
94+
- [Config](/how-tos/vscode/datacoves-copilot/v2-llm-config.md)
9295
- [Initial Configuration](/how-tos/vscode/initial.md)
9396
- [BigQuery](/how-tos/vscode/bigquery_setup.md)
9497
- [Databricks](/how-tos/vscode/databricks_setup.md)
Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
# AI LLMs for Datacoves Copilot
2-
Datacoves can integrate seamlessly with your existing ChatGPT or Azure Open AI LLMs. These how tos will go over configuration and usage of AI within Datacoves.
2+
3+
Datacoves can integrate seamlessly with your existing LLMs. These how tos will go over configuration and usage of AI within Datacoves.
34

45
### Prereqs
6+
57
- Have an existing LLM such as ChatGPT or [Azure Open AI](https://learn.microsoft.com/en-us/azure/ai-services/openai/assistants-quickstart?tabs=command-line%2Ckeyless%2Ctypescript-keyless&pivots=ai-foundry-portal)
68
- Have access to API and Endpoint url credentials.
79
- Have `Admin` access to configure credentials in Datacoves
810

911
## How to's
1012

11-
- [LLM Config](/how-tos/vscode/datacoves-copilot/llm-config.md)
12-
- [Working with an LLM in Datacoves](/how-tos/vscode/datacoves-copilot/llm.md)
13+
### Datacoves Copilot v2
14+
15+
- [Datacoves Copilot v2](/how-tos/vscode/datacoves-copilot/v2.md)
16+
17+
### Datacoves Copilot v1 (Deprecated)
18+
19+
- [Datacoves Copilot v1](/how-tos/vscode/datacoves-copilot/v1.md)
179 KB
Loading
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# Configure your LLM in Datacoves
1+
# Configure your LLM for Datacoves Copilot v1
22

3-
>[!NOTE] We currently only support the 4o model gpt model.
3+
> [!NOTE] Datacoves Copilot v1 only support the 4o model gpt model.
44
55
### Step 1: Create a Datacoves Secret
66

7-
Creating a [Datacoves Secret](/how-tos/datacoves/how_to_secrets.md) requires some key fields to be filled out:
7+
Creating a [Datacoves Secret](/how-tos/datacoves/how_to_secrets.md) requires some key fields to be filled out:
88

99
- **Name:** The secret must be named `datacoves-copilot-llm-api`
1010
- **Description:** Provide a simple description such as: `Open AI config`
11-
- **Format:** Select `Raw JSON`
11+
- **Format:** Select `Raw JSON`
1212
- **Value**: The value will vary based on the LLM you are utilizing.
1313
- **Open AI:** You only need your API key. Head to [Open AI](https://platform.openai.com/api-keys) to create your key. `{"OPENAI_API_KEY": "Your key here"}`
1414
- **Azure Open AI:** This requires two credentials. Head to [ai.azure.com](https://ai.azure.com) to find your credentials under the [Deployments](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/working-with-models?tabs=powershell#model-deployment-upgrade-configuration) tab. `{"AZURE_OPENAI_ENDPOINT": "Your endpoint here", "AZURE_OPENAI_API_KEY" : "Your key here"}`
15-
- **Scope:** Select the desired scope, either `Project` or `Environment`.
15+
- **Scope:** Select the desired scope, either `Project` or `Environment`.
1616
- **Project/Environment:** Select the `Project` or `Environment` that will access this LLM.
1717

1818
Lastly, be sure to toggle on the `Share with developers` option so that users with developer access will be able to use the LLM.
@@ -21,4 +21,3 @@ Lastly, be sure to toggle on the `Share with developers` option so that users wi
2121
### Example Secret
2222

2323
![Example ](assets/llm_example.png)
24-
Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,74 @@
1-
# Working with an LLM in Datacoves Copilot
1+
# Working with an LLM in Datacoves Copilot v1
22

3-
Once you have [configured your LLM](/how-tos/vscode/datacoves-copilot/llm-config.md), working with the AI chat is a breeze!
3+
Once you have [configured your LLM](/how-tos/vscode/datacoves-copilot/v1-llm-config.md), working with the AI chat is a breeze!
44

55
## Pre-configured presets
66

7-
While there are many use cases for AI in the development workflow there are a couple of tasks that come up regularly. To improve the user experience, we have created some presets that provide the LLM with specific instructions to get the best result. Use these or configure your own custom presets.
7+
While there are many use cases for AI in the development workflow there are a couple of tasks that come up regularly. To improve the user experience, we have created some presets that provide the LLM with specific instructions to get the best result. Use these or configure your own custom presets.
88

99
Current out of the box presents include:
1010

1111
- **Document dbt model:** Will provide descriptions for yml file you have open and provided as context.
1212
- **Explain dbt model:** Will explain a dbt model file you have open and provided as context.
1313
- **Explain dbt macro:** Will explain a dbt macro file you have open and provided as context.
14-
- **Add descriptions to CSV:** Will provide descriptions for CSV files you have open and provided as context.
14+
- **Add descriptions to CSV:** Will provide descriptions for CSV files you have open and provided as context.
1515

1616
## How to use the Chat/Presets
1717

1818
### Extension UI/UX
1919

20-
To use your LLM head to the Datacoves Power User extension and open up `Copilot`.
20+
To use your LLM head to the Datacoves Power User extension and open up `Copilot`.
2121

2222
<img src="/how-tos/vscode/datacoves-copilot/assets/llm_menu.png" alt="LLM Menu" width="250" height="500">
2323

24-
### Provide files for context
24+
### Provide files for context
25+
2526
The most important thing to remember is providing context to the LLM. In order to do this simply open up the file you wish to work with.
2627

2728
![llm file open](assets/llm_file_open.png)
2829

2930
### Send specific lines of code for context
31+
3032
Highlight the lines of code you wish to send.
3133

3234
![context lines](assets/llm_line_context.png)
3335

3436
### Don't provide context
37+
3538
In the case that you don't want to send an open file for context you can select the icon below.
3639

3740
![llm context](assets/llm_context.gif)
3841

39-
## Using LLM code
40-
Datacoves Copilot makes copying AI generated code simple with 3 options.
42+
## Using LLM code
43+
44+
Datacoves Copilot makes copying AI generated code simple with 3 options.
4145

4246
![Code Options](assets/llm_code_options.png)
4347

4448
### Replace
49+
4550
Replace the entire code file with the LLM code.
4651

4752
![llm Replace](assets/llm_replace.gif)
4853

49-
### Insert
54+
### Insert
55+
5056
Insert LLM code into your file.
5157

5258
![llm Insert](assets/llm_insert.gif)
5359

5460
### Copy
55-
Traditional copy and paste.
61+
62+
Traditional copy and paste.
5663

5764
![llm Copy](assets/llm_copy.gif)
5865

5966
### New Chat
67+
6068
To start a new chat click on the `New Chat` button.
6169

6270
![New Chat](assets/llm_new_chat.png)
6371

6472
## Prefer a Video?
6573

66-
<div style="position: relative; padding-bottom: 56.25%; height: 0;"><iframe src="https://www.loom.com/embed/b6e987152c114c3c8d44dc7712aa3e22?sid=d8847855-38cc-4a84-90b3-6be7e660f8b5" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div>
74+
<div style="position: relative; padding-bottom: 56.25%; height: 0;"><iframe src="https://www.loom.com/embed/b6e987152c114c3c8d44dc7712aa3e22?sid=d8847855-38cc-4a84-90b3-6be7e660f8b5" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Datacoves Copilot v1
2+
3+
This section describes how to configure and use Datacoves Copilot v1.
4+
5+
Datacoves Copilot v1 supports ChatGPT and Azure Open AI LLMs, Datacoves v4+ includes Datacoves Copilot 2.0 which enhances the experience and supports many more LLM providers.
6+
7+
# How Tos
8+
9+
- [LLM Config](/how-tos/vscode/datacoves-copilot/v1-llm-config.md)
10+
- [Working with an LLM in Datacoves](/how-tos/vscode/datacoves-copilot/v1-llm.md)

0 commit comments

Comments
 (0)