Skip to content

Commit 3460fca

Browse files
authored
Merge pull request #11 from oracle/tests/v1.2.0
Added samples and documentation updates
2 parents fbfee3c + fb9109c commit 3460fca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+3053
-199
lines changed

doc/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
sphinx
22
sphinx-rtd-theme
33
sphinx_toolbox
4-
pydata_sphinx_theme
4+
python_docs_theme

doc/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ Synthetic Data
9999
user_guide/synthetic_data.rst
100100

101101

102-
Select AI Agents
103-
================
102+
AI Agent
103+
========
104104

105105
.. toctree::
106106
:numbered:

doc/source/user_guide/agent.rst

Lines changed: 71 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ Python layer and persist the tool in the Database using
7272
- - ``tool_name``
7373
- ``profile_name``
7474

75+
.. note::
76+
77+
Use ``select_ai.agent.AsyncTool.create_<tool>`` for corresponding async
78+
methods. For e.g. ``await select_ai.agent.AsyncTool.create_rag_tool()``
79+
can be used to create an RAG tool in an async application.
80+
7581
.. latex:clearpage::
7682
7783
.. autoclass:: select_ai.agent.ToolAttributes
@@ -131,9 +137,9 @@ List Tools
131137

132138
output::
133139

134-
Tool(tool_name=MOVIE_SQL_TOOL, attributes=ToolAttributes(instruction='This tool is used to work with SQL queries using natural language. Input should be a natural language query about data or database operations. The tool behavior depends on the configured action: RUNSQL - generates and executes the SQL query returning actual data; SHOWSQL - generates and displays the SQL statement without executing it; EXPLAINSQL - generates SQL and provides a natural language explanation of what the query does. Always provide clear, specific questions about the data you want to retrieve or analyze.', function='dbms_cloud_ai_agent.sql_tool', tool_params=SQLToolParams(_REQUIRED_FIELDS=None, credential_name=None, endpoint=None, notification_type=None, profile_name='oci_ai_profile', recipient=None, sender=None, slack_channel=None, smtp_host=None), tool_inputs=None, tool_type='SQL'), description=My Select AI MOVIE SQL agent tool)
135-
136-
Tool(tool_name=LLM_CHAT_TOOL, attributes=ToolAttributes(instruction='This tool is used to work with SQL queries using natural language. Input should be a natural language query about data or database operations. The tool behavior depends on the configured action: RUNSQL - generates and executes the SQL query returning actual data; SHOWSQL - generates and displays the SQL statement without executing it; EXPLAINSQL - generates SQL and provides a natural language explanation of what the query does. Always provide clear, specific questions about the data you want to retrieve or analyze.', function='dbms_cloud_ai_agent.sql_tool', tool_params=SQLToolParams(_REQUIRED_FIELDS=None, credential_name=None, endpoint=None, notification_type=None, profile_name='oci_ai_profile', recipient=None, sender=None, slack_channel=None, smtp_host=None), tool_inputs=None, tool_type='SQL'), description=My Select AI agent tool)
140+
WEB_SEARCH_TOOL
141+
MOVIE_SQL_TOOL
142+
LLM_CHAT_TOOL
137143

138144
.. latex:clearpage::
139145
@@ -193,7 +199,8 @@ List Tasks
193199

194200
output::
195201

196-
Task(task_name=ANALYZE_MOVIE_TASK, attributes=TaskAttributes(instruction='Help the user with their request about movies. User question: {query}. You can use SQL tool to search the data from database', tools='["MOVIE_SQL_TOOL"]', input=None, enable_human_tool=False), description=Movie task involving a human)
202+
WEB_SEARCH_TASK
203+
ANALYZE_MOVIE_TASK
197204

198205
.. latex:clearpage::
199206
@@ -225,7 +232,11 @@ Create Agent
225232

226233
output::
227234

228-
Created Agent: Agent(agent_name=MOVIE_ANALYST, attributes=AgentAttributes(profile_name='LLAMA_4_MAVERICK', role='You are an AI Movie Analyst. Your can help answer a variety of questions related to movies. ', enable_human_tool=False), description=None)
235+
Created Agent: Agent(agent_name=MOVIE_ANALYST,
236+
attributes=AgentAttributes(profile_name='LLAMA_4_MAVERICK',
237+
role='You are an AI Movie Analyst.
238+
Your can help answer a variety of questions related to movies. ',
239+
enable_human_tool=False), description=None)
229240

230241

231242
.. latex:clearpage::
@@ -261,7 +272,12 @@ Run Team
261272

262273
output::
263274

264-
The database contains 100 movies with various titles, genres, and release dates. The list includes a wide range of genres such as Action, Comedy, Drama, Thriller, Romance, Adventure, Mystery, Sci-Fi, Historical, Biography, War, Sports, Music, Documentary, Animated, Fantasy, Horror, Western, Family, and more. The release dates are primarily in January and February of 2019. Here is a summary of the movies:
275+
The database contains 100 movies with various titles, genres, and release
276+
dates. The list includes a wide range of genres such as Action, Comedy, Drama,
277+
Thriller, Romance, Adventure, Mystery, Sci-Fi, Historical, Biography, War,
278+
Sports, Music, Documentary, Animated, Fantasy, Horror, Western, Family,
279+
and more. The release dates are primarily in January and February of 2019.
280+
Here is a summary of the movies:
265281

266282
1. Action Movie (Action, 2019-01-01)
267283
2. Comedy Film (Comedy, 2019-01-02)
@@ -286,25 +302,58 @@ Web Search Agent using OpenAI's GPT model
286302

287303
.. literalinclude:: ../../../samples/agent/websearch_agent.py
288304
:language: python
305+
:lines: 14-
289306

290307
output::
291308

292309
Created credential: OPENAI_CRED
293310
Created profile: OPENAI_PROFILE
294311
Created tool: WEB_SEARCH_TOOL
295-
The key features of Oracle Database Machine Learning, as highlighted on the Oracle website, include:
296-
297-
- In-database machine learning: Build, train, and deploy machine learning models directly inside the Oracle Database, eliminating the need to move data.
298-
- Support for multiple languages: Use SQL, Python, and R for machine learning tasks, allowing flexibility for data scientists and developers.
299-
- Automated machine learning (AutoML): Automates feature selection, model selection, and hyperparameter tuning to speed up model development.
300-
- Scalability and performance: Utilizes Oracle Database’s scalability, security, and high performance for machine learning workloads.
301-
- Integration with Oracle Cloud: Seamlessly integrates with Oracle Cloud Infrastructure for scalable and secure deployment.
302-
- Security and governance: Inherits Oracle Database’s robust security, data privacy, and governance features.
303-
- Prebuilt algorithms: Offers a wide range of in-database algorithms for classification, regression, clustering, anomaly detection, and more.
304-
- No data movement: Keeps data secure and compliant by performing analytics and machine learning where the data resides.
305-
306-
These features enable organizations to operationalize machine learning at scale, improve productivity, and maintain data security and compliance.
307-
308-
The main topic at the URL https://www.oracle.com/artificial-intelligence/database-machine-learning is Oracle's database machine learning capabilities, specifically how Oracle integrates artificial intelligence and machine learning features directly into its database products. The page highlights how users can leverage these built-in AI and ML tools to analyze data, build predictive models, and enhance business applications without moving data outside the Oracle Database environment.
309-
310-
The main topic of the website https://openai.com is artificial intelligence research and development. OpenAI focuses on creating and promoting advanced AI technologies, including products like ChatGPT, and provides information about their research, products, and mission to ensure that artificial general intelligence benefits all of humanity.
312+
The key features of Oracle Database Machine Learning, as highlighted on the
313+
Oracle website, include:
314+
315+
- In-database machine learning: Build, train, and deploy machine learning
316+
models directly inside the Oracle Database, eliminating the need to move
317+
data.
318+
- Support for multiple languages: Use SQL, Python, and R for machine
319+
learning tasks, allowing flexibility for data scientists and developers.
320+
- Automated machine learning (AutoML): Automates feature selection, model
321+
selection, and hyperparameter tuning to speed up model development.
322+
- Scalability and performance: Utilizes Oracle Database’s scalability,
323+
security, and high performance for machine learning workloads.
324+
- Integration with Oracle Cloud: Seamlessly integrates with Oracle
325+
Cloud Infrastructure for scalable and secure deployment.
326+
- Security and governance: Inherits Oracle Database’s robust security,
327+
data privacy, and governance features.
328+
- Prebuilt algorithms: Offers a wide range of in-database algorithms for
329+
classification, regression, clustering, anomaly detection, and more.
330+
- No data movement: Keeps data secure and compliant by performing
331+
analytics and machine learning where the data resides.
332+
333+
These features enable organizations to operationalize machine learning at
334+
scale, improve productivity, and maintain data security and compliance.
335+
336+
The main topic at the URL https://www.oracle.com/artificial-intelligence/database-machine-learning
337+
is Oracle's database machine learning capabilities, specifically how Oracle
338+
integrates artificial intelligence and machine learning features directly
339+
into its database products. The page highlights how users can leverage these
340+
built-in AI and ML tools to analyze data, build predictive models, and enhance
341+
business applications without moving data outside the Oracle Database
342+
environment.
343+
344+
The main topic of the website https://openai.com is artificial
345+
intelligence research and development. OpenAI focuses on creating and
346+
promoting advanced AI technologies, including products like ChatGPT, and
347+
provides information about their research, products, and mission to ensure
348+
that artificial general intelligence benefits all of humanity.
349+
350+
351+
**************
352+
Async AI Agent
353+
**************
354+
355+
.. toctree::
356+
:numbered:
357+
:maxdepth: 3
358+
359+
async_agent.rst

0 commit comments

Comments
 (0)