Skip to content

Commit fda7b87

Browse files
authored
Merge pull request #9 from oracle/dev/v1.2.0
v1.2.0
2 parents 27846fc + 7f3f152 commit fda7b87

File tree

195 files changed

+24379
-281
lines changed

Some content is hidden

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

195 files changed

+24379
-281
lines changed

.github/workflows/test.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: select_ai_py_tests
2+
on: push
3+
4+
jobs:
5+
test:
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
fail-fast: true
9+
matrix:
10+
os: [ ubuntu-latest ]
11+
python-version: ['3.11', '3.12', '3.13', '3.14']
12+
13+
steps:
14+
- name: Check out python-select-ai repository code
15+
uses: actions/checkout@v5
16+
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v6
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
22+
- name: Replace dot in python version with empty space
23+
run: |
24+
python_version=${{matrix.python-version}}
25+
new_version="${python_version//./}"
26+
echo "PYTHON_VERSION_WITHOUT_DOT=${new_version}" >> $GITHUB_ENV
27+
28+
- name: Install select_ai with core dependencies
29+
run: |
30+
python -m pip install --upgrade pip setuptools
31+
pip install pytest anyio
32+
pip install -e .
33+
34+
- name: Run select_ai tests
35+
run: |
36+
python_version=${{matrix.python-version}}
37+
pytest tests/create_schema.py
38+
pytest -vv
39+
env:
40+
PYSAI_TEST_USER: ${{ secrets.PYSAI_TEST_USER }}_${{env.PYTHON_VERSION_WITHOUT_DOT}}
41+
PYSAI_TEST_USER_PASSWORD: ${{ secrets.PYSAI_TEST_USER_PASSWORD }}
42+
PYSAI_TEST_ADMIN_USER: ${{ secrets.PYSAI_TEST_ADMIN_USER }}
43+
PYSAI_TEST_ADMIN_PASSWORD: ${{ secrets.PYSAI_TEST_ADMIN_PASSWORD }}
44+
PYSAI_TEST_CONNECT_STRING: ${{ secrets.PYSAI_TEST_CONNECT_STRING }}
45+
PYSAI_TEST_OCI_USER_OCID: ${{ secrets.PYSAI_TEST_OCI_USER_OCID }}
46+
PYSAI_TEST_OCI_TENANCY_OCID: ${{ secrets.PYSAI_TEST_OCI_TENANCY_OCID }}
47+
PYSAI_TEST_OCI_PRIVATE_KEY: ${{ secrets.PYSAI_TEST_OCI_PRIVATE_KEY }}
48+
PYSAI_TEST_OCI_FINGERPRINT: ${{ secrets.PYSAI_TEST_OCI_FINGERPRINT }}
49+
PYSAI_TEST_OCI_COMPARTMENT_ID: ${{ secrets.PYSAI_TEST_OCI_COMPARTMENT_ID }}

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,10 @@ doc/drawio
1212
**/__pycache__
1313
test.env
1414
test_19c.env
15+
pytest.env
16+
.venv3.10/
17+
.venv3.11/
18+
.venv3.9/
19+
sample_connect.py
20+
async_pipeline_test.py
21+
parquet.py

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: end-of-file-fixer
77
- id: check-yaml
88
- id: check-added-large-files
9-
args: ['--maxkb=600']
9+
args: ['--maxkb=2000']
1010
- repo: https://github.com/psf/black-pre-commit-mirror
1111
rev: 24.4.2
1212
hooks:

doc/requirements.txt

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

doc/source/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@
5252
# -- Options for HTML output -------------------------------------------------
5353
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
5454

55-
html_theme = "sphinx_rtd_theme"
55+
html_theme = "python_docs_theme"
5656
html_static_path = ["_static"]
5757

5858
pygments_style = "sphinx"
59+
60+
latex_elements = {
61+
"maxlistdepth": "10", # Increase the maximum list nesting depth
62+
}

doc/source/index.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,13 @@ Synthetic Data
9797
:maxdepth: 3
9898

9999
user_guide/synthetic_data.rst
100+
101+
102+
Select AI Agents
103+
================
104+
105+
.. toctree::
106+
:numbered:
107+
:maxdepth: 3
108+
109+
user_guide/agent.rst

doc/source/user_guide/actions.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,12 @@ Following list of actions can be performed using ``select_ai``
3434
* - showsql
3535
- ``select_ai.Action.SHOWSQL``
3636
- Displays the generated SQL statement without executing it.
37+
* - summarize
38+
- ``select_ai.Action.SUMMARIZE``
39+
- Generate summary of your large texts
40+
* - feedback
41+
- ``select_ai.Action.FEEDBACK``
42+
- Provide feedback to improve accuracy of the generated SQL
43+
* - translate
44+
- ``select_ai.Action.TRANSLATE``
45+
- Translate text from one language to another

0 commit comments

Comments
 (0)