Skip to content

Commit 8af166c

Browse files
committed
Updated samples
1 parent 9e3a834 commit 8af166c

40 files changed

+87
-89
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# select-ai
22

3-
Python API for Select AI
3+
Select AI for Python
44

55
## Install
66

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"undoc-members": True,
2121
}
2222

23-
project = "Python API for Select AI"
23+
project = "Select AI for Python"
2424
copyright = "2025, Oracle and/or its affiliates. All rights reserved."
2525
author = "Oracle"
2626

doc/source/user_guide/installation.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ To use ``select_ai`` you need:
5050
import select_ai
5151
import getpass
5252
53-
username = ""
54-
dsn = ""
55-
password = getpass.getpass(f"Enter password for {username}@{dsn}")
53+
user = "<your_db_user>"
54+
password = "<your_db_password>"
55+
dsn = "<your_db_dsn>"
5656
select_ai.connect(user=user, password=password, dsn=dsn)
5757
print("Connected to the Database")
5858
@@ -67,3 +67,5 @@ To use ``select_ai`` you need:
6767
.. code-block:: shell
6868
6969
Connected to the Database
70+
71+
.. latex:clearpage::

doc/source/user_guide/introduction.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _introduction:
22

33
*****************************************************
4-
Introduction to the Python API for Select AI
4+
Introduction to Select AI for Python
55
*****************************************************
66

77
``select_ai`` is a Python module that helps you invoke `DBMS_CLOUD_AI <https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/dbms-cloud-ai-package.html>`__
@@ -14,3 +14,5 @@ programming styles.
1414

1515
The Select AI Python API supports Python versions 3.9, 3.10, 3.11, 3.12 and
1616
3.13.
17+
18+
.. latex:clearpage::

doc/source/user_guide/provider.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ Enable AI service provider
9090
.. note::
9191

9292
All sample scripts in this documentation read Oracle database connection
93-
details from environment. Create a dotenv file ``.env``, export the
93+
details from the environment. Create a dotenv file ``.env``, export the
9494
the following environment variables and source it before running the
95-
scripts:
95+
scripts.
9696

9797
.. code-block:: sh
9898

samples/async/conversation_chat_session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
# Licensed under the Universal Permissive License v 1.0 as shown at
55
# http://oss.oracle.com/licenses/upl.
66
# -----------------------------------------------------------------------------
7-
# ------------------------------------------------------------------------------
7+
# -----------------------------------------------------------------------------
88
# async/conversation_chat_session.py
99
#
1010
# Demonstrates context aware conversation using AI Profile
11-
# ------------------------------------------------------------------------------
11+
# -----------------------------------------------------------------------------
1212

1313
import asyncio
1414
import os

samples/async/conversations_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
# http://oss.oracle.com/licenses/upl.
66
# -----------------------------------------------------------------------------
77

8-
# ------------------------------------------------------------------------------
8+
# -----------------------------------------------------------------------------
99
# async/conversations_list.py
1010
#
1111
# List all conversations saved in the database
12-
# ------------------------------------------------------------------------------
12+
# -----------------------------------------------------------------------------
1313

1414
import asyncio
1515
import os

samples/async/profile_chat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
# http://oss.oracle.com/licenses/upl.
66
# -----------------------------------------------------------------------------
77

8-
# ------------------------------------------------------------------------------
8+
# -----------------------------------------------------------------------------
99
# async/profile_chat.py
1010
#
1111
# Chat using an AI Profile
12-
# ------------------------------------------------------------------------------
12+
# -----------------------------------------------------------------------------
1313

1414
import asyncio
1515
import os

samples/async/profile_create.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
# http://oss.oracle.com/licenses/upl.
66
# -----------------------------------------------------------------------------
77

8-
# ------------------------------------------------------------------------------
8+
# -----------------------------------------------------------------------------
99
# async/profile_create.py
1010
#
1111
# Create an OCI Gen AI profile
12-
# ------------------------------------------------------------------------------
12+
# -----------------------------------------------------------------------------
1313

1414
import asyncio
1515
import os

samples/async/profile_explain_sql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
# http://oss.oracle.com/licenses/upl.
66
# -----------------------------------------------------------------------------
77

8-
# ------------------------------------------------------------------------------
8+
# -----------------------------------------------------------------------------
99
# async/profile_explain_sql.py
10-
# ------------------------------------------------------------------------------
10+
# -----------------------------------------------------------------------------
1111

1212
import asyncio
1313
import os

0 commit comments

Comments
 (0)