Skip to content

Commit 26a9c6c

Browse files
authored
Update Build Doco Action (#123)
* Update Documentation Action * Update README
1 parent f49bf1b commit 26a9c6c

File tree

5 files changed

+276
-19
lines changed

5 files changed

+276
-19
lines changed

.github/workflows/documentation.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
build:
3535
runs-on: ubuntu-latest
3636
env:
37-
HUGO_VERSION: 0.134.1
37+
HUGO_VERSION: 0.145.0
3838
steps:
3939
- name: Install Hugo CLI
4040
run: |
@@ -50,7 +50,9 @@ jobs:
5050
- name: Download Hugo Theme
5151
run: |
5252
mkdir -p docs/themes/relearn \
53-
&& wget -qO- $(curl -s https://api.github.com/repos/McShelby/hugo-theme-relearn/releases/latest | grep "tarball_url" | awk -F'"' '{print $4}') | tar --exclude='*/exampleSite' -xz -C docs/themes/relearn --strip-components=1
53+
&& curl -L $(curl -s https://api.github.com/repos/McShelby/hugo-theme-relearn/releases/latest \
54+
| grep "tarball_url" | cut -d '"' -f 4) \
55+
| tar -xz -C docs/themes/relearn --strip-components=1 --exclude='*/exampleSite'
5456
- name: Setup Pages
5557
id: pages
5658
uses: actions/configure-pages@v5

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ The **Oracle AI Explorer for Apps** (the **AI Explorer**) provides a streamlined
1010

1111
## AI Explorer Features
1212

13-
- [Configuring Embedding and Chat Models](https://oracle-samples.github.io/oaim-sandbox/sandbox/configuration/model_config)
14-
- [Splitting and Embedding Documentation](https://oracle-samples.github.io/oaim-sandbox/sandbox/tools/split_embed)
15-
- [Modifying System Prompts (Prompt Engineering)](https://oracle-samples.github.io/oaim-sandbox/sandbox/tools/prompt_eng)
16-
- [Experimenting with **LLM** Parameters](https://oracle-samples.github.io/oaim-sandbox/sandbox/chatbot)
17-
- [Testbed for auto-generated or existing Q&A datasets](https://oracle-samples.github.io/oaim-sandbox/sandbox/testbed)
13+
- [Configuring Embedding and Chat Models](https://oracle-samples.github.io/ai-explorer/client/configuration/model_config)
14+
- [Splitting and Embedding Documentation](https://oracle-samples.github.io/ai-explorer/client/tools/split_embed)
15+
- [Modifying System Prompts (Prompt Engineering)](https://oracle-samples.github.io/ai-explorer/client/tools/prompt_eng)
16+
- [Experimenting with **LLM** Parameters](https://oracle-samples.github.io/ai-explorer/client/chatbot)
17+
- [Testbed for auto-generated or existing Q&A datasets](https://oracle-samples.github.io/ai-explorer/client/testbed)
1818

1919
## Getting Started
2020

2121
The **AI Explorer** is available to install in your own environment, which may be a developer's desktop, on-premises data center environment, or a cloud provider. It can be run either on bare-metal, within a container, or in a Kubernetes Cluster.
2222

23-
For more information, including more details on **Setup and Configuration** please visit the [documentation](https://oracle-samples.github.io/oaim-sandbox).
23+
For more information, including more details on **Setup and Configuration** please visit the [documentation](https://oracle-samples.github.io/ai-explorer).
2424

2525
### Prerequisites
2626

@@ -31,11 +31,11 @@ For more information, including more details on **Setup and Configuration** plea
3131
- API Keys for Third-Party Models
3232
- On-Premises Models<sub>\*</sub>
3333

34-
<sub>\*Oracle recommends running On-Premises Models on hardware with GPUs. For more information, please review the [Infrastructure](https://oracle-samples.github.io/oaim-sandbox/infrastructure) documentation.</sub>
34+
<sub>\*Oracle recommends running On-Premises Models on hardware with GPUs. For more information, please review the [Infrastructure](https://oracle-samples.github.io/ai-explorer/infrastructure) documentation.</sub>
3535

3636
#### Bare-Metal Installation
3737

38-
To run the application on bare-metal; download the [source](https://github.com/oracle-samples/oaim-sandbox) and from `src/`:
38+
To run the application on bare-metal; download the [source](https://github.com/oracle-samples/ai-explorer) and from `src/`:
3939

4040
1. Create and activate a Python Virtual Environment:
4141

@@ -61,11 +61,11 @@ To run the application on bare-metal; download the [source](https://github.com/o
6161

6262
1. Navigate to `http://localhost:8501`.
6363

64-
1. [Configure](https://oracle-samples.github.io/oaim-sandbox/sandbox/configuration) the **Explorer**.
64+
1. [Configure](https://oracle-samples.github.io/ai-explorer/client/configuration) the **Explorer**.
6565

6666
#### Container Installation
6767

68-
To run the application in a container; download the [source](https://github.com/oracle-samples/oaim-sandbox):
68+
To run the application in a container; download the [source](https://github.com/oracle-samples/ai-explorer):
6969

7070
1. Build the all-in-one image.
7171

@@ -84,7 +84,7 @@ To run the application in a container; download the [source](https://github.com/
8484

8585
1. Navigate to `http://localhost:8501`.
8686

87-
1. [Configure](https://oracle-samples.github.io/oaim-sandbox/sandbox/configuration/index.html) the **Explorer**.
87+
1. [Configure](https://oracle-samples.github.io/ai-explorer/client/configuration/index.html) the **Explorer**.
8888

8989
## Contributing
9090

docs/README.md

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

33
## Description
44

5-
This directory contains the documentation for the the [**Oracle AI Explorer for Apps**](https://github.com/oracle-samples/oaim-sandbox).
5+
This directory contains the documentation for the the [**Oracle AI Explorer for Apps**](https://github.com/oracle-samples/ai-explorer).
66

77
## Getting Started - Documentation
88

@@ -25,4 +25,4 @@ From the `docs` directory:
2525

2626
1. Start Hugo: `hugo serve`
2727

28-
This will serve the documentation on `http://localhost:1313/oaim-sandbox/` for review.
28+
This will serve the documentation on `http://localhost:1313/ai-explorer/` for review.

opentofu/oci/schema.yaml

Lines changed: 255 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,255 @@
1+
# Copyright © 2023, 2025, Oracle and/or its affiliates.
2+
# All rights reserved. The Universal Permissive License (UPL), Version 1.0 as shown at http://oss.oracle.com/licenses/upl
3+
4+
title: "Oracle AI Explorer for Apps"
5+
description: "Explore the capabilities of AI with the Oracle Database."
6+
schemaVersion: 1.1.0
7+
version: "20190304"
8+
logoUrl: https://github.com/oracle-samples/ai-explorer/blob/main/docs/static/images/logo.png
9+
locale: "en"
10+
11+
variableGroups:
12+
#########################################################################
13+
# Hidden
14+
#########################################################################
15+
- title: "Default Hidden"
16+
variables:
17+
- tenancy_ocid
18+
- region
19+
- user_ocid
20+
- current_user_ocid
21+
- fingerprint
22+
- private_key_path
23+
- private_key
24+
visible: false
25+
26+
- title: "Hidden (Defaults)"
27+
variables:
28+
- adb_version
29+
- k8s_version
30+
- k8s_worker_os_ver
31+
- service_lb_allowed_app_client_port
32+
- service_lb_allowed_app_server_port
33+
visible: false
34+
35+
#########################################################################
36+
# General (Backend as a Service)
37+
#########################################################################
38+
- title: "AI Explorer"
39+
variables:
40+
- compartment_ocid
41+
- label_prefix
42+
visible: true
43+
44+
#########################################################################
45+
# Database
46+
#########################################################################
47+
- title: "Database Options"
48+
variables:
49+
- adb_license_model
50+
- adb_edition
51+
- adb_whitelist_cidrs
52+
- adb_ecpu_core_count
53+
- adb_is_cpu_auto_scaling_enabled
54+
- adb_data_storage_size_in_gb
55+
- adb_is_storage_auto_scaling_enabled
56+
visible: true
57+
58+
#########################################################################
59+
# Kubernetes Cluster
60+
#########################################################################
61+
- title: "Kubernetes Cluster Options"
62+
variables:
63+
- k8s_api_is_public
64+
- k8s_api_endpoint_allowed_cidrs
65+
- k8s_node_pool_cpu_size
66+
- k8s_worker_cpu_shape
67+
- k8s_worker_cpu_ocpu
68+
- k8s_node_pool_gpu_deploy
69+
- k8s_node_pool_gpu_size
70+
- k8s_worker_gpu_shape
71+
visible: true
72+
73+
#########################################################################
74+
# Load Balancer
75+
#########################################################################
76+
- title: "Load Balancers Options"
77+
variables:
78+
- service_lb_is_public
79+
- service_lb_min_shape
80+
- service_lb_max_shape
81+
- service_lb_allowed_app_client_cidrs
82+
- service_lb_allowed_app_server_cidrs
83+
84+
visible: true
85+
86+
###########################################################################
87+
variables:
88+
compartment_ocid:
89+
type: oci:identity:compartment:id
90+
title: "Compartment"
91+
required: true
92+
93+
label_prefix:
94+
type: string
95+
title: "Application Name"
96+
pattern: "^$|^[a-zA-Z0-9]{1,12}$"
97+
required: false
98+
99+
#########################################################################
100+
adb_license_model:
101+
type: enum
102+
title: "Autonomous Database License Model"
103+
required: true
104+
default: "LICENSE_INCLUDED"
105+
enum:
106+
- "LICENSE_INCLUDED"
107+
- "BRING_YOUR_OWN_LICENSE"
108+
109+
adb_edition:
110+
type: enum
111+
title: "Oracle Database Edition"
112+
required: true
113+
default: "ENTERPRISE_EDITION"
114+
enum:
115+
- "ENTERPRISE_EDITION"
116+
- "STANDARD_EDITION"
117+
visible:
118+
and:
119+
- eq:
120+
- adb_license_model
121+
- BRING_YOUR_OWN_LICENSE
122+
123+
adb_whitelist_cidrs:
124+
type: array
125+
title: "ADB Access Control"
126+
required: true
127+
default: "0.0.0.0/0"
128+
pattern: "((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\/(3[0-2]|[1-2]?[0-9])(,?)( ?)){1,}$"
129+
130+
adb_ecpu_core_count:
131+
type: number
132+
title: "Autonomous Database Core Count"
133+
required: true
134+
minimum: 2
135+
multipleOf: 1
136+
137+
adb_is_cpu_auto_scaling_enabled:
138+
type: boolean
139+
title: "Allow Autonomous Database CPU Auto Scaling? (3x CPU)"
140+
required: true
141+
142+
adb_data_storage_size_in_gb:
143+
type: number
144+
title: "Autonomous Database Data Storage Size (GB)"
145+
description: ""
146+
required: true
147+
minimum: 20
148+
maximum: 393216
149+
multipleOf: 1
150+
151+
adb_is_storage_auto_scaling_enabled:
152+
type: boolean
153+
title: "Allow Autonomous Database Storage Auto Scaling?"
154+
required: true
155+
156+
#########################################################################
157+
k8s_api_is_public:
158+
type: boolean
159+
title: "Public API Endpoint?"
160+
required: true
161+
162+
k8s_api_endpoint_allowed_cidrs:
163+
type: array
164+
title: "API Endpoint Access Control"
165+
required: true
166+
default: "0.0.0.0/0"
167+
pattern: "$|((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\/(3[0-2]|[1-2]?[0-9])(,?)( ?)){1,}$"
168+
visible: k8s_api_is_public
169+
170+
k8s_node_pool_cpu_size:
171+
type: integer
172+
title: "CPU Node Pool Workers"
173+
required: true
174+
minimum: 1
175+
maximum: 80
176+
multipleOf: 1
177+
178+
k8s_worker_cpu_shape:
179+
type: enum
180+
title: "CPU Node Pool Worker Shape"
181+
required: true
182+
enum:
183+
- "VM.Standard.E5.Flex"
184+
- "VM.Standard.E4.Flex"
185+
186+
k8s_worker_cpu_ocpu:
187+
type: integer
188+
title: "CPU Worker Core Count"
189+
required: true
190+
minimum: 1
191+
maximum: 64
192+
multipleOf: 1
193+
194+
k8s_node_pool_gpu_deploy:
195+
type: boolean
196+
title: "Deploy GPU Node Pool?"
197+
required: true
198+
199+
k8s_worker_gpu_shape:
200+
type: enum
201+
title: "Node Pool Worker Shape"
202+
required: true
203+
default: "VM.GPU.A10.1"
204+
enum:
205+
- "VM.GPU.A10.1"
206+
visible: k8s_node_pool_gpu_deploy
207+
208+
k8s_node_pool_gpu_size:
209+
type: integer
210+
title: "GPU Node Pool Workers"
211+
required: true
212+
minimum: 1
213+
maximum: 80
214+
multipleOf: 1
215+
visible: k8s_node_pool_gpu_deploy
216+
217+
#########################################################################
218+
service_lb_is_public:
219+
type: boolean
220+
title: "Enable Ingress through Public Load Balancer?"
221+
default: true
222+
223+
service_lb_min_shape:
224+
type: integer
225+
title: "Minimum Load Balancer Bandwidth (Mbps)"
226+
required: true
227+
minimum: 10
228+
maximum: 10
229+
multipleOf: 10
230+
visible: service_lb_is_public
231+
232+
service_lb_max_shape:
233+
type: integer
234+
title: "Maximum Load Balancer Bandwidth (Mbps)"
235+
required: true
236+
minimum: 10
237+
maximum: 8000
238+
multipleOf: 10
239+
visible: service_lb_is_public
240+
241+
service_lb_allowed_app_client_cidrs:
242+
type: array
243+
title: "Public Load Balancer Access Control for GUI"
244+
required: true
245+
default: "0.0.0.0/0"
246+
pattern: "((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\/(3[0-2]|[1-2]?[0-9])(,?)( ?)){1,}$"
247+
visible: service_lb_is_public
248+
249+
service_lb_allowed_app_server_cidrs:
250+
type: array
251+
title: "Public Load Balancer Access Control for Application Server"
252+
required: true
253+
default: "0.0.0.0/0"
254+
pattern: "((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\/(3[0-2]|[1-2]?[0-9])(,?)( ?)){1,}$"
255+
visible: service_lb_is_public

src/client/spring_ai/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Spring AI template
22

33
## How to run:
4-
Prepare two configurations in the `oaim-sandbox`, based on vector stores created using this kind of configuration:
4+
Prepare two configurations in the `ai-explorer`, based on vector stores created using this kind of configuration:
55

66
* OLLAMA:
77
* Embbeding model: mxbai-embed-large
@@ -150,10 +150,10 @@ llama3.1:latest a80c4f17acd5 2.0 GB 3 minutes ago
150150
kubectl -n ollama exec svc/ollama -- ollama run "llama3.1" "what is spring boot?"
151151
```
152152

153-
* **NOTE**: The Microservices will access to the ADB23ai on which the vector store table should be created as done in the local desktop example shown before. To access the OAIM-Sandbox running on **Oracle Backend for Microservices and AI** and create the same configuration, let's do:
153+
* **NOTE**: The Microservices will access to the ADB23ai on which the vector store table should be created as done in the local desktop example shown before. To access the ai-explorer running on **Oracle Backend for Microservices and AI** and create the same configuration, let's do:
154154
* tunnel:
155155
```
156-
kubectl -n oaim-sandbox port-forward svc/oaim-sandbox 8181:8501
156+
kubectl -n ai-explorer port-forward svc/ai-explorer 8181:8501
157157
```
158158
* on localhost:
159159
```
@@ -173,7 +173,7 @@ kubectl -n ollama exec svc/ollama -- ollama run "llama3.1" "what is spring boot?
173173
```
174174

175175

176-
* the `bind` will create the new user, if not exists, but to have the `<VECTOR_STORE>_SPRINGAI` table compatible with SpringAI Oracle vector store adapter, the microservices need to access to the vector store table created by the OAIM-sandbox with user ADMIN on ADB:
176+
* the `bind` will create the new user, if not exists, but to have the `<VECTOR_STORE>_SPRINGAI` table compatible with SpringAI Oracle vector store adapter, the microservices need to access to the vector store table created by the ai-explorer with user ADMIN on ADB:
177177

178178
```
179179
GRANT SELECT ON ADMIN.<VECTOR_STORE> TO vector;

0 commit comments

Comments
 (0)