Skip to content

Commit d030782

Browse files
authored
WMS 11918: Emergency PR fixing grammar and typos (#458)
WMS 11918: Emergency PR fixing grammar and typos
1 parent 3c7f057 commit d030782

File tree

8 files changed

+266
-229
lines changed

8 files changed

+266
-229
lines changed

generative-ai-agent-adk/adk-installation/adk_install.md

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,53 @@
22

33
## Introduction
44

5-
This lab will take you through the steps needed to install ADK using python installer .We recommend to use *OCI DATA Science* based notebook to run the operation as it comes with all the necessary software in place,however we have added an optional steps to follow local machine for ADK client setup.
5+
This lab will take you through the steps needed to install ADK using the Python installer. We recommend using an OCI Data Science-based notebook to run the operation, as it comes with all the necessary software in place. However, we have added optional steps to follow on a local machine for the ADK client setup.
66

77
Estimated Time: 30 minutes
88

99

1010

1111
## Task 1: Setup OCI Data Science notebook for **ADK** usage.
1212

13-
1. From OCI Console > *AI & Analytics* > *Data science*
13+
1. From OCI Console > AI & Analytics > Data Science
1414

1515
![Data science view](images/datascience_view.png)
16-
1. Select *Create project*.Provide name and description.
16+
17+
2. Select Create project. Provide a name and description.
1718

1819
![Data science project](images/create_ds_project.png)
1920

20-
1. With in the project,click *Create notebook session*.
21+
3. Within the project, click Create notebook session.
2122

2223
![Create notebook](images/create_nb.png)
2324

24-
1. Provide a name and retain all the other default settings and click *Create*.
25+
4. Provide a name, retain all the other default settings, and click Create.
2526

2627
![Create notebook completed](images/create_nb_final.png)
2728

28-
1. Wait for the resource to become active.
29+
5. Wait for the resource to become active.
2930

3031
![Active notebook](images/nb_active.png)
3132

32-
1. Open the notebook detail page and click *Open*.
33+
6. Open the notebook detail page and click Open.
3334

3435
![NB details](images/nb_detail_page.png)
3536

36-
1. Provide credentials and multi factor auth when prompted.Wait for the notebook to be opened.
37+
7. Provide credentials and multi-factor authentication when prompted. Wait for the notebook to open.
3738

3839
![NB Opened](images/nb_open_view.png)
3940

40-
1. Click *extend* and extend the notebook timeout.
41+
8. Click Extend and extend the notebook timeout.
42+
4143

42-
**You can skip the next section and follow to Task 3**
44+
**You can skip the next section and proceed to Task 3**
4345

4446

4547
## Task 2: (Optional) Setup a local machine for **ADK** usage.
4648

4749
1. Python ADK requires Python 3.10 or later. Ensure you have the correct version of Python installed in your environment.
48-
1. Follow below and installed *OCI* with *ADK*
50+
51+
2. Follow the steps below and install OCI with ADK:
4952

5053
```
5154
<copy>
@@ -57,49 +60,52 @@ Estimated Time: 30 minutes
5760
source <myenv>/bin/activate
5861
</copy>
5962
```
60-
1. After you create a project and a virtual environment, install the latest version of ADK:
63+
64+
3. After you create a project and a virtual environment, install the latest version of ADK:
6165

6266
```
6367
<copy>
6468
pip install "oci[adk]"
6569
pip install oci-cli
6670
</copy>
6771
```
68-
1. Create an *API Signing Key* and store for further usage. Refer [here](https://docs.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm#two) for detailed steps.
72+
4. Create an *API Signing Key* and store for it further usage. Refer [here](https://docs.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm#two) for detailed steps.
6973

7074
## Task 3: Validate ADK installation using OCI Data science.
7175

72-
1. Follow below steps if you are using a data science notebook.If not move to Task 4.
76+
1. Follow the steps below if you are using a Data Science notebook. If not, move to Task 4
7377

74-
* Click File > New >Notebook.
78+
* Click File > New >Notebook.
7579

7680
![New Notebook](images/new_notbook.png)
7781

78-
1. Right click on Untitled notebook and rename the same.
82+
2. Right-click on the untitled notebook and rename it.
7983

8084
![Rename the NB](images/rename_nb.png)
8185

82-
1. Run below and validate it returns the correct name reference.
86+
3. Run the following and validate that it returns the correct name reference.
8387

8488
```
8589
<copy>
8690
from oci.addons import adk
8791
adk.__name__
8892
</copy>
8993
```
90-
![ADK Validation](images/adk_validate.png)
9194

92-
## Task 3: Validate ADK installation for local setup.
95+
<!-- ![ADK Validation](images/adk_validate.png) -->
96+
97+
## Task 4: Validate ADK installation for local setup
9398

94-
1. Follow below steps for local machine
99+
1. Follow the steps below for a local machine:
95100

96101
```
97102
<copy>
98103
from oci.addons import adk
99104
adk.__name__
100105
</copy>
101106
```
102-
1. Validate the name reference.
107+
108+
2. Validate the name reference.
103109

104110
**Proceed to the next lab.**
105111

generative-ai-agent-adk/agent-config/agentconfig.md

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
## Introduction
44

5-
This lab will take details the steps to configure Agent using the tools that created.It will also provide the steps to add additional client side tools such as Custom tools using function as well as integration with *Model Context Protocol- MCP*.
5+
This lab details the steps to configure an Agent using the tools that were created. It also provides steps to add additional client-side tools, such as custom tools using functions, as well as integration with Model Context Protocol - MCP.
66

77
## Task 1: Import ADK modules.
8-
The tasks imports various ADK python modules as well as some of the optional libraries for our usage.All these instructions works for python script as well as OCI Data science notebooks.
8+
This task imports various ADK Python modules as well as some optional libraries for our usage. All these instructions work for Python scripts as well as OCI Data Science notebooks.
99

1010
1. Add below to the notebook cell.
1111

@@ -23,7 +23,8 @@ The tasks imports various ADK python modules as well as some of the optional lib
2323
from mcp.client.session_group import StreamableHttpParameters
2424
</copy>
2525
```
26-
1. Add below snippet for enabling async run for notbook.
26+
27+
2. Add the below snippet to enable async run for the notebook.
2728
2829
```
2930
<copy>
@@ -33,20 +34,22 @@ The tasks imports various ADK python modules as well as some of the optional lib
3334
```
3435
3536
![](images/module_import.png)
36-
1. For notebook,you may use the *Play* button and run these commands.For python script ,you may use your editor or run using *python scrip.py* format.
37+
38+
3. For notebooks, you may use the Play button and run these commands. For Python scripts, you may use your editor or run using the python script.py format.
3739
3840
3941
## Task 2: Define variables.
4042
41-
1. Define variables for agent endpoint and RAG knowledge based IDs.
43+
1. Define variables for the agent endpoint and RAG knowledge base IDs.
4244
4345
```
4446
<copy>
4547
agent_endpoint="endpoint OCID"
4648
knowledge_id="knowledgeBase OCID"
4749
</copy>
4850
```
49-
1. Define instructions for agents.
51+
52+
2. Define instructions for agents.
5053
5154
```
5255
<copy>
@@ -63,7 +66,7 @@ The tasks imports various ADK python modules as well as some of the optional lib
6366
6467
## Task 3: Define a custom tool based on function.
6568
66-
1. Use below code to set a simple custom function based tool,which will return the season based on a location.
69+
1. Use the below code to set a simple custom function-based tool, which will return the season based on a location.
6770
6871
```
6972
<copy>
@@ -92,13 +95,13 @@ The tasks imports various ADK python modules as well as some of the optional lib
9295
9396
![Custom function](images/custom_function.png)
9497
95-
## Task 4: Define mcp call using stdIO mode.
98+
## Task 4: Define MCP call using stdIO mode.
9699
97-
* We are using an open source mcp library to fetch information from public internet.
100+
* We are using an open-source MCP library to fetch information from the public internet.
98101
* The library details and credit goes to https://github.com/openbnb-org/mcp-server-airbnb.
99-
* If you are using local client execution ,ensure nodejs and npx is available for run.
102+
* If you are using local client execution, ensure Node.js and npx are available to run.
100103
101-
1. Copy the below to notebook or local script to define the MCP.
104+
1. Copy the below to a notebook or local script to define the MCP.
102105
103106
```
104107
<copy>
@@ -114,9 +117,9 @@ The tasks imports various ADK python modules as well as some of the optional lib
114117
![MCP Definition](images/mcp.png)
115118
116119
117-
## Task 5: Connect Knowledge base to the RAG too.
120+
## Task 5: Connect Knowledge Base to the RAG tool.
118121
119-
1. Connect knowledge base id and RAG tool with the agent.To do so copy below snippet and pase to the notebook or python script.
122+
1. Connect the knowledge base ID and RAG tool with the agent. To do so, copy the below snippet and paste it into the notebook or Python script.
120123
121124
```
122125
<copy>
@@ -133,7 +136,7 @@ The tasks imports various ADK python modules as well as some of the optional lib
133136
134137
## Task 6: Define an agent and connect with the tools.
135138
136-
1. Use below snippet to define an agent along with the tools.You need to update the placeholders accordingly.
139+
1. Use the below snippet to define an agent along with the tools. You need to update the placeholders accordingly.
137140
138141
```
139142
<copy>
@@ -167,11 +170,11 @@ The tasks imports various ADK python modules as well as some of the optional lib
167170
168171
169172
170-
## Task 7: Initialize and setup the agent.
171-
During the process the ADK will check the tools defined and associate with the Agent.
172-
The process may take several minutes depends on the tools and their configuration.
173+
## Task 7: Initialize and set up the agent.
174+
During the process, the ADK will check the tools defined and associate them with the Agent.
175+
The process may take several minutes depending on the tools and their configuration.
173176
174-
1. Run below to setup and run a sample query.A setup process is only needed for the first time or for any configuration changes that needs to push from local or notebook to agents.You may update your query as well.
177+
1. Run the below to set up and run a sample query. The setup process is only needed for the first time or for any configuration changes that need to be pushed from the local environment or notebook to agents. You may update your query as well.
175178
176179
```
177180
<copy>
@@ -183,7 +186,7 @@ The process may take several minutes depends on the tools and their configuratio
183186
![Tool sync](images/tool_sync.png)
184187
185188
186-
1. Wait for the execution to complete and validate the result.A result would look like as below.
189+
2. Wait for the execution to complete and validate the result. A result would look like the one below.
187190
188191
![Result](images/mcp_results.png)
189192

generative-ai-agent-adk/agent-run/agentrun.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
## Introduction
44

5-
This lab will take provide various run modes with the *Agent* we have configured.
5+
This lab will provide various run modes with the Agent we have configured.
6+
67

78
## Task 1: Run a query using RAG tool.
89

9-
1. Run below query to fetch answers from OCI Agent RAG tool based on the knowledge base attached.
10+
1. Run the query below to fetch answers from the OCI Agent RAG tool based on the attached knowledge base.
1011

1112
```
1213
<copy>
@@ -15,14 +16,14 @@ This lab will take provide various run modes with the *Agent* we have configured
1516
response.pretty_print()
1617
</copy>
1718
```
18-
* The agent will run and share the information based on the RAG too.
1919
20+
The agent will run and share the information based on the RAG tool.
2021
2122
![Rag run](images/rag-run.png)
2223
2324
## Task 2: Validate SQL tool execution.
2425
25-
1. Run below query to fetch information via agent ,which will fetch and report the information from OCI Autonomous Data Base.
26+
1. Run the query below to fetch information via the agent, which will retrieve and report the data from the Autonomous AI Database.
2627
2728
```
2829
<copy>
@@ -31,13 +32,13 @@ This lab will take provide various run modes with the *Agent* we have configured
3132
response.pretty_print()
3233
</copy>
3334
```
34-
* Here the query about secondary category will translate to product subcategory based on the column description that we defined during SQL Tool setup.
35+
* Here, the query about the secondary category will be translated to the product subcategory based on the column description defined during SQL tool setup.
3536
3637
![SQL Run](images/sql-run.png)
3738
38-
## Task 3: Validate function exeuction.
39+
## Task 3: Validate function execution.
3940
40-
1. Run below to understand how agent reacts based on the function tool we defined.
41+
1. Run the command below to see how the agent reacts based on the function tool we defined.
4142
4243
```
4344
<copy>
@@ -49,8 +50,10 @@ This lab will take provide various run modes with the *Agent* we have configured
4950
![Custom tool run](images/custom_tool_run.png)
5051
5152
## Task 4 : Sample agent run using OCI SDK.
52-
Here we are using OCI python SDK to run the agent endpoint and fetch results.
53-
1. Use below snippet to fetch results using OCI SDK.You may comment/uncomment the Auth section/Region and endpoint details accordingly.
53+
54+
Here we are using the OCI Python SDK to run the agent endpoint and fetch results.
55+
56+
1. Use the snippet below to fetch results using the OCI SDK. You may comment/uncomment the Auth section, region, and endpoint details accordingly.
5457
5558
```
5659
<copy>
@@ -114,13 +117,14 @@ Here we are using OCI python SDK to run the agent endpoint and fetch results.
114117
```
115118
![SDK Run](images/sdk-run.png)
116119
117-
1. A sample execution result will be as follows.Its for demo purpose only and the same can be achieved using ADK .As you may refer the SDK goes at a lower API level while ADK remains at the upper layer.
120+
2. A sample execution result will be as follows. It is for demo purposes only, and the same can be achieved using ADK. As you may observe, the SDK operates at a lower API level, while ADK remains at a higher abstraction layer.
118121
119122
![SDK run output](images/sdk-output.png)
120123
121124
122-
## Task 5 : Additional samples.
123-
* You may refer [here](https://docs.oracle.com/en-us/iaas/Content/generative-ai-agents/adk/api-reference/examples.htm) for additional samples and can run against the setup.
125+
## Task 5 : Additional samples
126+
127+
* You may refer [here](https://docs.oracle.com/en-us/iaas/Content/generative-ai-agents/adk/api-reference/examples.htm) for additional samples and run them against your setup.
124128
125129
126130
**Proceed to the next lab.**

0 commit comments

Comments
 (0)