Skip to content

Commit c21f93e

Browse files
deionlocklearuma-kumardanielhart17
authored
Updates to WMS 11959 fsi tenancy markdown including additional copy blocks (#473)
* creating markdown for WMS 11959 * markdown for fsi * 11959 Intro.md * updated markdown + images for labs 1 and 2 * updates * overview and highlights markdown * update loan policy manuals * Update test-the-solution-tenancy.md * updates to images and md * overview and highlights markdown fixes * updated lab3&4 * lab consolidation * sandbox markdowns * autonomous ai db updates * markdown updates * markdown cosmetic updates * updates * updates * updates * adding notes to creating agent lab * changes to Note * changes to ai agents sandbox * final question response screenshot added * changing wording * added copy blocks and updated wording --------- Co-authored-by: Uma Kumar <[email protected]> Co-authored-by: Daniel Hart <[email protected]>
1 parent d5f427f commit c21f93e

File tree

5 files changed

+191
-14
lines changed

5 files changed

+191
-14
lines changed

oci-generative-ai-agents-fsi/2-setup/setup-tenancy.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,20 @@ In order to facilitate those permissions, we will create a Dynamic Group which w
8181
![Screenshot showing how to navigate to the dynamic groups section](./images/dynamic-group-navigation.png)
8282

8383
1. Name the dynamic group: _oci-genai-agents-service_
84+
85+
```text
86+
<copy>
87+
oci-genai-agents-service
88+
</copy>
89+
```
8490
1. Provide an optional description (example: `This group represents the OCI Generative AI Agents service`)
91+
92+
```text
93+
<copy>
94+
This group represents the OCI Generative AI Agents service
95+
</copy>
96+
```
97+
8598
1. Select the **Match any rules defined below** option in the **Matching rules** section.
8699
1. Enter the following expression in the **Rule 1** textbox:
87100
@@ -108,7 +121,21 @@ Next, we will create the access policies:
108121
![Screenshot showing how to initiate the creation of a new policy](./images/create-new-policy-navigation.png)
109122
110123
1. Provide a name for the policy (example: _oci-generative-ai-agents-workshop_).
124+
125+
```text
126+
<copy>
127+
oci-generative-ai-agents-workshop
128+
</copy>
129+
```
130+
111131
1. Provide a description (example: _OCI Generative AI Agents Hands-On-Lab Policy_).
132+
133+
```text
134+
<copy>
135+
OCI Generative AI Agents Hands-On-Lab Policy
136+
</copy>
137+
```
138+
112139
1. Make sure that the root compartment is selected.
113140
1. Enable the **Show manual editor** option.
114141
1. In the **Policy Builder** textbox, enter the following policy statements:

oci-generative-ai-agents-fsi/3-setup-the-database/setup-the-database-tenancy.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,21 @@ In this task we are going to create a new ADB instance.
3838
![Screenshot showing how to navigate to the create ADB page](./images/create-adb-button.png)
3939

4040
1. For the **Display name** use: _loan-compliance_.
41+
42+
```text
43+
<copy>
44+
loan-compliance
45+
</copy>
46+
```
47+
4148
1. For the **Database name** use: _loancompliance_.
49+
50+
```text
51+
<copy>
52+
loancompliance
53+
</copy>
54+
```
55+
4256
1. Under the **Compartment**, make sure that the **root** compartment is selected.
4357
1. Under **Workload type** make sure that **Data Warehouse** is selected.
4458
@@ -302,6 +316,13 @@ In this task we are going to create a Vault and an encryption key. We are going
302316
303317
1. Under the **Create in Compartment**, make sure that the **root** compartment is selected.
304318
1. For the **Name** field use: _loan-compliance-secrets_
319+
320+
```text
321+
<copy>
322+
loan-compliance-secrets
323+
</copy>
324+
```
325+
305326
1. Click the **Create Vault** button at the bottom of the form.
306327
307328
![Screenshot showing how to create the vault](./images/create-vault.png)
@@ -318,6 +339,13 @@ In this task we are going to create a Vault and an encryption key. We are going
318339
319340
1. Under the **Create in Compartment**, make sure that the **root** compartment is selected.
320341
1. For the **Name** field use: _loan-compliance-key_
342+
343+
```text
344+
<copy>
345+
loan-compliance-key
346+
</copy>
347+
```
348+
321349
1. Click the **Create Key** button.
322350
323351
![Screenshot showing details for creating an encryption key](./images/create-key-details.png)
@@ -338,6 +366,13 @@ In this section we are going to create a connection to our database. This connec
338366
![Screenshot showing how to navigate to the create vault page](./images/create-connection-button.png)
339367
340368
1. For the **Name** field use: _loan-compliance_
369+
370+
```text
371+
<copy>
372+
loan-compliance
373+
</copy>
374+
```
375+
341376
1. Under the **Compartment**, make sure that the **root** compartment is selected.
342377
1. Make sure that the **Select database** option is selected under the **Database details** section.
343378
1. In the **Database cloud service** drop-down, select **Oracle Autonomous Database**.
@@ -353,6 +388,13 @@ In this section we are going to create a connection to our database. This connec
353388
This step will create a secret which will be stored in the Vault created earlier and will contain the password for connecting to the database.
354389
355390
1. For the **Name** field use: _loan-compliance-admin-password_
391+
392+
```text
393+
<copy>
394+
loan-compliance-admin-password
395+
</copy>
396+
```
397+
356398
1. Select the **loan-compliance-secrets** in the **Valut in...** drop-down.
357399
1. Select the **loan-compliance-key** in the **Encryption key in...** drop-down.
358400
1. In the **User password** field, type the password you've used when you created the ADB instance.
@@ -370,6 +412,13 @@ In this section we are going to create a connection to our database. This connec
370412
![Screenshot showing how to create the ](./images/create-connection-5.png)
371413
372414
1. For the **Name** field use: _loan-compliance-wallet-secret_
415+
416+
```text
417+
<copy>
418+
loan-compliance-wallet-secret
419+
</copy>
420+
```
421+
373422
1. Select the **loan-compliance-secrets** in the **Valut in...** drop-down.
374423
1. Select the **loan-compliance-key** in the **Encryption key in...** drop-down.
375424
1. Under the **Wallet** section, select the **Retrieve regional wallet from Autonomous Database** option.

oci-generative-ai-agents-fsi/4-create-the-agent/create-the-agent-tenancy.md

Lines changed: 64 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,30 @@ This lab assumes you have:
3636
![Screenshot showing how to create a new agent](./images/create-new-agent-tenancy.png)
3737

3838
1. For the **Name** field use: _loan compliance agent_
39+
40+
```text
41+
<copy>
42+
loan compliance agent
43+
</copy>
44+
```
45+
3946
1. For the **Compartment** field, make sure that your compartment is selected.
4047
1. For the **Description** field, use: _This agent assists compliance officers in reviewing applications, workloads, and policy compliance_.
48+
49+
```text
50+
<copy>
51+
This agent assists compliance officers in reviewing applications, workloads, and policy compliance.
52+
</copy>
53+
```
54+
4155
1. For the **Welcome message** field, use: _Hello! I’m your compliance assistant. How can I help?_
56+
57+
```text
58+
<copy>
59+
Hello! I'm your compliance assistant. How can I help?
60+
</copy>
61+
```
62+
4263
1. Click the **Next** button.
4364
4465
![Screenshot showing the basic information for the agent](./images/basic-agent-info-sandbox.png =50%x*)
@@ -51,8 +72,21 @@ This lab assumes you have:
5172
5273
1. Select the **RAG** tool option.
5374
1. Under the **RAG Configuration** section, use _Knowledge base loan policy articles_ in the **Name** field.
75+
76+
```text
77+
<copy>
78+
Knowledge base loan policy articles
79+
</copy>
80+
```
81+
5482
1. For the **Description** field, use: _Retrieves lending policy manuals and underwriting rules (DTI, credit score thresholds, FHA/VA limits, manual underwriting guidance)_.
5583
84+
```text
85+
<copy>
86+
Retrieves lending policy manuals and underwriting rules (DTI, credit score thresholds, FHA/VA limits, manual underwriting guidance).
87+
</copy>
88+
```
89+
5690
It is very important to provide a high-level description of the knowledge that this tool can retrieve. This allows the agent to make accurate decisions when choosing to invoke this tool.
5791
5892
![Screenshot showing the initial configuration for the RAG tool](./images/rag-tool-info-1.png)
@@ -63,6 +97,13 @@ This lab assumes you have:
6397
![Screenshot showing more configuration for the RAG tool](./images/rag-tool-info-2-sandbox.jpg)
6498
6599
1. In the **New knowledge base** form, use: _Compliance officer knowledge base loan policy articles_ for the **Name** field.
100+
101+
```text
102+
<copy>
103+
Compliance officer knowledge base loan policy atricles
104+
</copy>
105+
```
106+
66107
1. Make sure that your compartment is selected in the **Compartment** field.
67108
1. In the **Data store type** field, we will select **Object storage** to be able to retrieve information from our storage bucket.
68109
1. Make sure that **Enable hybrid search** is checked. Enabling this option instructs the system to combine lexical and semantic search when scanning our documents.
@@ -71,6 +112,13 @@ This lab assumes you have:
71112
![Screenshot showing the knowledge base configuration](./images/knowledge-base-info-1-sandbox.png)
72113
73114
1. In the **Specify data source** form, use: _loan policy docs_ for the **Name** field.
115+
116+
```text
117+
<copy>
118+
loan policy docs
119+
</copy>
120+
```
121+
74122
1. Make sure that the **Enable multi-modal parsing** option is **not** checked. This option enable parsing of rich content, such as charts and graphics, to allow responses based on visual elements. However, we do not have any images in our knowledge articles so right now this option is not required.
75123
1. Under the **Data bucket** option, select the _loan-policy-manuals_ bucket into which we've previously uploaded the knowledge articles PDF files.
76124
1. Check the **Select all in bucket option**. This option will automatically flag all of the file in the bucket for ingestion instead of us having to select each file individually.
@@ -84,7 +132,7 @@ This lab assumes you have:
84132
85133
![Screenshot showing the knowledge base configuration](./images/knowledge-base-info-2.png)
86134
87-
1. The knowledge base will take a few minutes to create and ingest the data.
135+
1. The knowledge base will take a few minutes to create and ingest the data. You may proceed to the next step while the knowledge base provisions.
88136
1. Back at the **Add knowledge bases** panel, make sure that the checkbox next to the knowledge base name is checked.
89137
>💡 _If your knowledge base does not appear (“No items found”), you can still continue to the next step. The knowledge base is already selected and provisioning in the background. You may open a new tab and navigate to Agents > Knowledge Bases to confirm it is provisioning._
90138
@@ -100,8 +148,21 @@ This lab assumes you have:
100148
101149
1. Click the **SQL** option.
102150
1. For the **Name** field, use: _Loan Applications database_.
151+
152+
```text
153+
<copy>
154+
Loan Applications database.
155+
</copy>
156+
```
157+
103158
1. For the **Description** field, use: _Tables contain applicants, loan applications, statuses, and officers for compliance review._.
104159
160+
```text
161+
<copy>
162+
Tables contain applicants, loan applications, statuses, and officers for compliance review.
163+
</copy>
164+
```
165+
105166
![Screenshot showing the initial set of the SQL tool configuration](./images/sql-tool-info-1.png)
106167
107168
1. Under **Import database schema configuration for this tool**, selec the **Inline** option which will allow us to use the same schema text we've used when we created the database.
@@ -150,7 +211,7 @@ This lab assumes you have:
150211
);
151212
</copy>
152213
```
153-
214+
1. Under the **in-context learning examples**, leave the **None** option selected.
154215
1. Under the **Description of tables and columns**, select the **Inline** option.
155216
1. Copy and paste the following text into the **Description of tables and columns**. This verbal description contains details about each table and column. This will allow the tool to better understand the data stored in our database:
156217
@@ -192,7 +253,7 @@ This lab assumes you have:
192253
193254
1. For **Model customization**, select the **Small** option.
194255
1. For **Dialect**, select **Oracle SQL**.
195-
1. In the **Database tool connection in...** select the **connection-loancomplianceXXXX** connection we've previously created.
256+
1. In the **Database tool connection**, select your compartment, then choose the **connection-loancomplianceXXXX** connection we've previously created.
196257
>💡 _If your database tool connection does not appear (“Option not available”), select Cancel and re-add the SQL tool by repeating Task 3: Add the SQL Tool_
197258
198259
13. Click the **Test connection** button. You should see a successful connection connection attempt.

oci-generative-ai-agents-fsi/5-test-the-solution/test-the-solution-sandbox.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ This lab assumes you have:
3030
## Task 1: Overview of the chat page functionality
3131

3232
1. If the agent is still not showing as **Active**, give it a few more minutes to complete the provisioning process.
33-
1. Once the agent is showing as **Active**, click the **loan compliance officer** agent in the **Agents** list.
33+
1. Once the agent is showing as **Active**, click the **loan compliance agent** in the **Agents** list.
3434

3535
![Screenshot showing the active agent in the agents list](./images/click-agent-from-table-sandbox.png)
3636

3737
1. In the agent details page, click the **Launch chat** button.
3838

3939
![Screenshot showing the agent details page with the launch chat button highlighted](./images/launch-chat-button.png)
4040

41-
1. In the chat page, on th left, make sure sure that both the **Agent compartment** and the **Agent endpoint compartment** are set to your compartment.
41+
1. In the chat page, on the left, make sure sure that both the **Agent compartment** and the **Agent endpoint compartment** are set to your compartment.
4242

43-
1. On the top of the page, the **Agent** drop down should show **loan compliance officer** and the **Agent endpoint** drop down should show the newly created endpoint.
43+
1. On the top of the page, the **Agent** drop down should show **loan compliance agent** and the **Agent endpoint** drop down should show the newly created endpoint.
4444
1. In the chat window, you'll be able to see the greeting message we have configured for the agent.
4545
1. Other elements in the page include:
4646

@@ -78,7 +78,6 @@ This lab assumes you have:
7878
![Screenshot showing the SQL tool trace](./images/first-question-traces-2.png)
7979
8080
1. The third trace shows how the agent composed the final response using the output of the previous steps.
81-
1. Click the **Close** button to close the traces pane.
8281
8382
![Screenshot showing the trace for the final response](./images/first-question-traces-3.png)
8483
@@ -94,7 +93,7 @@ This lab assumes you have:
9493
9594
![Screenshot showing the first question for the agent](./images/send-second-question.png)
9695
97-
1. The agent shows the correct answer: **Olivia Brown**. Using the magic of Large Language Models (LLMs) and the clues we've left in the configuration of the agent and tools, the agent was able to decipher that the loan officer with the most applications assigned to them.
96+
1. The agent shows the correct answer: **Olivia Brown**. Using the magic of Large Language Models (LLMs) and the clues we've left in the configuration of the agent and tools, the agent was able to decipher that the loan agent with the most applications assigned to them.
9897
9998
![Screenshot showing the response for the second question](./images/second-question-response.png)
10099
@@ -111,7 +110,7 @@ This lab assumes you have:
111110
112111
![Screenshot showing the third question for the agent](./images/send-third-question.png)
113112
114-
1. As you can see, the response included the type and amount for the two loans that have been pending for more than 7 days.
113+
1. The agent returned information on the one application that has been pending review for more than 7 days.
115114
116115
![Screenshot showing the third question for the agent](./images/third-question-response.png)
117116
@@ -141,6 +140,15 @@ This lab assumes you have:
141140
142141
1. As you can see, for this question, the agent figured out that the information required might be in the knowledge base articles. For this task it employed the RAG tool which searched for the relevant information in our loan policy docs stored in object storage. Feel free to look at the traces for this interaction which show the steps the agent took to give us the information we needed. In the response you can see that a summary of the document was provided, but, also, if you expand the **View citations** section, you'll be able to see a reference to the document(s) which were used to compose the reply with a direct link to the file(s), the page(s) from which content was extracted and more.
143142
143+
![test](./images/third-question-traces-1.png)
144+
145+
1. Next we'll ask the following: _Identify any approved applications that violate policy (DTI or credit score); cite the rule and the record._
146+
1. Click the Submit button.
147+
148+
![test](./images/send-fourth-question.png)
149+
150+
1. The agent successfully detected an approved applicant whose credit score was inconsistent with the requirements outlined in the DTI and Credit Policy document.
151+
144152
![test](./images/fourth-question-response.png)
145153
146154
1. We invite you to try some prompts of your own to experiment with agent.
@@ -155,17 +163,17 @@ Here are a few more prompts to try with the agent:
155163
156164
## Summary
157165
158-
As you've experienced, the OCI Generative AI service allows you to ask complex questions about data stored in multiple locations and get intelligent answers. By simply pointing the various tools towards your data sources and providing the right context, the agent was able to automatically determine which data source should be accessed, retrieve the data for you, compile a coherent and concise response and provide references to the original data when applicable.
166+
As you've experienced, the OCI AI Agents service allows you to ask complex questions about data stored in multiple locations and get intelligent answers. By simply pointing the various tools towards your data sources and providing the right context, the agent was able to automatically determine which data source should be accessed, retrieve the data for you, compile a coherent and concise response and provide references to the original data when applicable.
159167
160-
Another interesting advantage of building solutions on top the OCI Generative AI service is that the user is no longer restricted to tasks allowed by the application user interface. With a chat interface, the user can ask questions and get answers to any question which can be answered using the data in the system even if the system engineers did not plan for that specific scenario. For example, you can ask the agent to sort the results in any way that is supported by the data even if the application was not designed to give you that option.
168+
Another interesting advantage of building solutions on top the OCI AI Agents service is that the user is no longer restricted to tasks allowed by the application user interface. With a chat interface, the user can ask questions and get answers to any question which can be answered using the data in the system even if the system engineers did not plan for that specific scenario. For example, you can ask the agent to sort the results in any way that is supported by the data even if the application was not designed to give you that option.
161169
162-
Although our use-case was focused on loan compliance, the OCI Generative AI service can be used to fuel many different use-cases which require deep understanding and retrieval of information from internal data sources, reasoning over the data, summarizing it, providing insights and more.
170+
Although our use-case was focused on loan compliance, the OCI AI Agents service can be used to fuel many different use-cases which require deep understanding and retrieval of information from internal data sources, reasoning over the data, summarizing it, providing insights and more.
163171
164172
## Learn More
165173
166174
- [Chatting with Agents in Generative AI Agents](https://docs.oracle.com/en-us/iaas/Content/generative-ai-agents/chatting.htm#chatting)
167175
168176
## Acknowledgements
169177
170-
- **Author** - Uma Kumar
171-
- **Contributors** - Hanna Rakhsha, Daniel Hart, Deion Locklear, Anthony Marino
178+
- **Author** - Deion Locklear
179+
- **Contributors** - Hanna Rakhsha, Daniel Hart, Uma Kumar, Anthony Marino

0 commit comments

Comments
 (0)