Skip to content

Commit 54781c7

Browse files
committed
Add note about library list, and data usage
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
1 parent 222aa42 commit 54781c7

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/content/docs/extensions/db2i/AI/code-assistant.mdx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import { Image } from 'astro:assets';
99
<Badge text="Start Here" size="large" />The Db2 for IBM i extension, as of 1.6.3, has the ability to integrate with specific AI extensions:
1010

1111
<CardGrid>
12-
<Card title="GitHub Copilot" icon="github">
13-
✅ Requires GitHub Copilot licence
14-
</Card>
1512
<Card title="Continue" icon="rocket">
1613
✅ Multiple AI Providers available, including Watsonx!
1714
</Card>
15+
<Card title="GitHub Copilot" icon="github">
16+
✅ Requires GitHub Copilot licence
17+
</Card>
1818
</CardGrid>
1919
<CardGrid>
2020
<LinkCard title="GitHub Copilot" href="https://marketplace.visualstudio.com/items?itemName=GitHub.copilot" icon="github"/>
@@ -62,6 +62,13 @@ tell me about the columns in sample.employee
6262

6363
- For each token, we check if it corresponds to a valid table or object reference within the active SQL Job.
6464
- In this example, `sample.employee` is recognized as a valid table reference.
65+
- We handlee qualified and unqualfied object references different. If you use a qualfified reference (e.g. `sample.employee`), then the agent knows to look in the `sample` schema/library. If you use an unqualified reference (e.g. `employee`), then the agent will look in the library list of the active SQL job to resolve the object.
66+
67+
---
68+
69+
<Aside type="tip">
70+
TLDR: We will resolve unqualifed objects in your request by using your jobs library list.
71+
</Aside>
6572

6673
#### Step 3: Retrieve Metadata for Valid References
6774

@@ -118,8 +125,7 @@ If you do not want to share your data with any AI services, then do not invoke t
118125

119126
### We do
120127

121-
* Send table metadata which can be found from `QSYS2.SYSCOLUMNS2` and `QSYS2.SYSKEYCST` in the context based on user input, including table names, column names, types and comments
122-
* Send system metadata (when the user is asking for the activity summary) which is found with `TABLE(QSYS2.SYSTEM_STATUS(RESET_STATISTICS=>'YES',DETAILED_INFO=>'ALL'))` when requested by the user.
128+
* Send table metadata which can be found from `QSYS2.SYSCOLUMNS2`, `QSYS2.SYSKEYCST` and results from `QSYS2.GENERATE_SQL`.
123129

124130
---
125131

0 commit comments

Comments
 (0)