Skip to content

Commit ed3fbde

Browse files
Remove SelectAI and MCP Prompts (#344)
* Switch to MCP Prompts * Remove SelectAI Functionality * Fix after recent behavioral change in FastAPI/Starlette. The HTTPBearer security scheme now returns 401 instead of 403 when no credentials are provided. --------- Co-authored-by: Lorenzo De Marchis <[email protected]>
1 parent cfde1c6 commit ed3fbde

File tree

132 files changed

+13434
-5448
lines changed

Some content is hidden

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

132 files changed

+13434
-5448
lines changed

.github/workflows/pytest.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Install dependencies
4242
run: |
4343
python -m pip install --upgrade pip wheel setuptools uv
44-
uv pip install torch==2.9.0+cpu -f https://download.pytorch.org/whl/cpu/torch --system
44+
uv pip install torch==2.9.1+cpu -f https://download.pytorch.org/whl/cpu/torch --system
4545
uv pip install -e ".[all-test]" --system
4646
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
4747
@@ -57,15 +57,11 @@ jobs:
5757
- name: Run Pylint on IaC Code
5858
run: pylint opentofu
5959

60-
- name: Run Pylint on Client Code
61-
run: pylint src/client
60+
- name: Run Pylint on Source Code
61+
run: pylint src
6262

63-
- name: Run Pylint on Common Code
64-
run: pylint src/common
65-
66-
# Linting errors not yet resolved in Server Code
67-
# - name: Run Pylint on Server Code
68-
# run: pylint src/server
63+
- name: Run Pylint on Tests
64+
run: pylint tests
6965

7066
- name: Run All Tests
7167
run: pytest tests -v --junitxml=test-results.xml --cov=src --cov-report=xml --cov-report=term

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ __pycache__/
4545
*$py.class
4646
**/*.egg-info
4747
**/build/
48+
**/.mypy_cache
4849

4950
# Test coverage artifacts
5051
.coverage
@@ -56,6 +57,7 @@ test-results.xml
5657
# AI Code Assists
5758
##############################################################################
5859
**/*[Cc][Ll][Aa][Uu][Dd][Ee]*
60+
**/memory-bank/**
5961

6062
##############################################################################
6163
# Helm

.pylintrc

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ignore=CVS,.venv
5252
# ignore-list. The regex matches against paths and can be in Posix or Windows
5353
# format. Because '\\' represents the directory delimiter on Windows systems,
5454
# it can't be used as an escape character.
55-
ignore-paths=.*[/\\]wip[/\\].*,src/client/mcp
55+
ignore-paths=.*[/\\]wip[/\\].*,src/client/mcp,docs/themes/relearn,docs/public,docs/static/demoware
5656

5757
# Files or directories matching the regular expression patterns are skipped.
5858
# The regex matches against base names, not paths. The default value ignores
@@ -68,12 +68,12 @@ ignored-modules=
6868

6969
# Python code to execute, usually for sys.path manipulation such as
7070
# pygtk.require().
71-
#init-hook=
71+
init-hook='import sys; import os; sys.path.insert(0, os.path.join(os.getcwd(), "src") if os.path.exists("src") else os.path.join(os.path.dirname(os.getcwd()), "src"))'
7272

7373
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
7474
# number of processors available to use, and will cap the count on Windows to
7575
# avoid hangs.
76-
jobs=1
76+
jobs=0
7777

7878
# Control the amount of potential inferred values when inferring a single
7979
# object. This can help the performance when dealing with large functions or
@@ -96,13 +96,13 @@ prefer-stubs=no
9696
py-version=3.11
9797

9898
# Discover python modules and packages in the file system subtree.
99-
recursive=no
99+
recursive=yes
100100

101101
# Add paths to the list of the source roots. Supports globbing patterns. The
102102
# source root is an absolute path or a path relative to the current working
103103
# directory used to determine a package namespace for modules located under the
104104
# source root.
105-
source-roots=
105+
source-roots=src
106106

107107
# Allow loading of arbitrary C extensions. Extensions are imported into the
108108
# active Python interpreter and may run arbitrary code.
@@ -434,7 +434,8 @@ disable=raw-checker-failed,
434434
deprecated-pragma,
435435
use-symbolic-message-instead,
436436
use-implicit-booleaness-not-comparison-to-string,
437-
use-implicit-booleaness-not-comparison-to-zero
437+
use-implicit-booleaness-not-comparison-to-zero,
438+
broad-exception-caught
438439

439440
# Enable the message, report, category or checker with the given id(s). You can
440441
# either give multiple identifier separated by comma (,) or put this option

docs/content/client/chatbot/_index.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ For more details on the parameters, ask the Chatbot or review [Concepts for Gene
4747

4848
The {{< short_app_ref >}} provides tools to augment Large Language Models with your proprietary data using Retrieval Augmented Generation (**RAG**), including:
4949
* [Vector Search](#vector-search) for Unstructured Data
50-
* [SelectAI](#selectai) for Structured Data
5150

5251

5352
## Vector Search
@@ -61,10 +60,3 @@ Choose the type of Search you want performed and the additional parameters assoc
6160
### Vector Store
6261

6362
With Vector Search selected, if you have more than one Vector Store, you can select which one will be used for searching, otherwise it will default to the only one available. To choose a different Vector Store, click the "Reset" button to open up the available options.
64-
65-
66-
## SelectAI
67-
68-
Once you've [configured SelectAI](https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/select-ai-get-started.html#GUID-E9872607-42A6-43FA-9851-7B60430C21B7), the option to use SelectAI will be available. After selecting the SelectAI toolkit, a profile and the default narrate option will automatically be selected. If you have more then one profile, you can choose which one to use. You can also select different SelectAI actions.
69-
70-
![Chatbot SelectAI](images/chatbot_selectai.png)
-56.5 KB
Binary file not shown.

docs/static/demoware/gui_bot.py

Lines changed: 0 additions & 56 deletions
This file was deleted.

docs/static/demoware/history_bot.py

Lines changed: 0 additions & 59 deletions
This file was deleted.

docs/static/demoware/quick_bot.py

Lines changed: 0 additions & 52 deletions
This file was deleted.

helm/scripts/oci_config.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import re
88
from pathlib import Path
99
import sys
10-
import yaml
1110
import argparse
11+
import yaml
1212

1313

1414
def base64_encode_file(file_path: Path) -> str:
@@ -41,13 +41,9 @@ def main():
4141
"--config",
4242
type=Path,
4343
default=Path.home() / ".oci" / "config",
44-
help="Path to OCI config file (default: ~/.oci/config)"
45-
)
46-
parser.add_argument(
47-
"--namespace",
48-
default="default",
49-
help="Kubernetes namespace (default: default)"
44+
help="Path to OCI config file (default: ~/.oci/config)",
5045
)
46+
parser.add_argument("--namespace", default="default", help="Kubernetes namespace (default: default)")
5147
args = parser.parse_args()
5248

5349
config_path = args.config.expanduser()
@@ -83,10 +79,7 @@ def main():
8379
secret_yaml = {
8480
"apiVersion": "v1",
8581
"kind": "Secret",
86-
"metadata": {
87-
"name": "oci-config-file",
88-
"namespace": namespace
89-
},
82+
"metadata": {"name": "oci-config-file", "namespace": namespace},
9083
"type": "Opaque",
9184
"data": data,
9285
}

0 commit comments

Comments
 (0)