|
1 | | -# Working with an LLM in Datacoves Copilot |
| 1 | +# Working with an LLM in Datacoves Copilot v1 |
2 | 2 |
|
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! |
4 | 4 |
|
5 | 5 | ## Pre-configured presets |
6 | 6 |
|
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. |
8 | 8 |
|
9 | 9 | Current out of the box presents include: |
10 | 10 |
|
11 | 11 | - **Document dbt model:** Will provide descriptions for yml file you have open and provided as context. |
12 | 12 | - **Explain dbt model:** Will explain a dbt model file you have open and provided as context. |
13 | 13 | - **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. |
15 | 15 |
|
16 | 16 | ## How to use the Chat/Presets |
17 | 17 |
|
18 | 18 | ### Extension UI/UX |
19 | 19 |
|
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`. |
21 | 21 |
|
22 | 22 | <img src="/how-tos/vscode/datacoves-copilot/assets/llm_menu.png" alt="LLM Menu" width="250" height="500"> |
23 | 23 |
|
24 | | -### Provide files for context |
| 24 | +### Provide files for context |
| 25 | + |
25 | 26 | 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. |
26 | 27 |
|
27 | 28 |  |
28 | 29 |
|
29 | 30 | ### Send specific lines of code for context |
| 31 | + |
30 | 32 | Highlight the lines of code you wish to send. |
31 | 33 |
|
32 | 34 |  |
33 | 35 |
|
34 | 36 | ### Don't provide context |
| 37 | + |
35 | 38 | In the case that you don't want to send an open file for context you can select the icon below. |
36 | 39 |
|
37 | 40 |  |
38 | 41 |
|
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. |
41 | 45 |
|
42 | 46 |  |
43 | 47 |
|
44 | 48 | ### Replace |
| 49 | + |
45 | 50 | Replace the entire code file with the LLM code. |
46 | 51 |
|
47 | 52 |  |
48 | 53 |
|
49 | | -### Insert |
| 54 | +### Insert |
| 55 | + |
50 | 56 | Insert LLM code into your file. |
51 | 57 |
|
52 | 58 |  |
53 | 59 |
|
54 | 60 | ### Copy |
55 | | -Traditional copy and paste. |
| 61 | + |
| 62 | +Traditional copy and paste. |
56 | 63 |
|
57 | 64 |  |
58 | 65 |
|
59 | 66 | ### New Chat |
| 67 | + |
60 | 68 | To start a new chat click on the `New Chat` button. |
61 | 69 |
|
62 | 70 |  |
63 | 71 |
|
64 | 72 | ## Prefer a Video? |
65 | 73 |
|
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> |
0 commit comments