Skip to content

Commit 0cff18e

Browse files
initial code sync
* Initial commit, cleaned sensitive info * Added documentation, redacted images, fixed bug with table graph ui, added sample csv for vendors, updated readme, added licenses * added basic files for devrel * Added license headers, removed old 3p licenses, updated readme-old instructions, added trust rest to gitignore, renamed mkdocs to deployment docs to avoid confusion * Added Initial Draft of Readme, Removed Unnecessary Directories * Removed trust instructions to avoid confusion, added clarifying instructions... --------- Co-authored-by: Luke Farley <[email protected]> Co-authored-by: luke_farley <[email protected]>
1 parent d7b2ca2 commit 0cff18e

File tree

504 files changed

+86275
-9
lines changed

Some content is hidden

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

504 files changed

+86275
-9
lines changed

.gitignore

Lines changed: 267 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,270 @@ Temporary Items
3030
.key
3131
.crt
3232
.csr
33-
.pem
33+
.pem
34+
# Dependency directories
35+
/target
36+
/build
37+
/src/dist
38+
/my_package/dist
39+
/my_env
40+
/keys
41+
/curl
42+
43+
/agent-adk/dist
44+
45+
# Python
46+
__pycache__/
47+
*.pyc
48+
*.pyo
49+
*.pyd
50+
*.egg-info
51+
52+
# Images (trusted & untrusted.png are required for client server)
53+
# vbcs app requires the excepted images as well
54+
*.png
55+
!clientApp/trusted.png
56+
!clientApp/untrusted.png
57+
!/vbcs_oda_archives/vbcs_apps/vbcs-askdata/webApps/nl2sqlbot/resources/images/*
58+
59+
# Added images for documentation (redacted)
60+
!deployment-docs/docs/deployment/business_media/media/*
61+
!deployment-docs/docs/deployment/apex/media/*
62+
!deployment-docs/docs/deployment/images/*
63+
!deployment-docs/docs/deployment/lb/media/*
64+
!deployment-docs/docs/deployment/terraform/*
65+
66+
*.jpeg
67+
!deployment-docs/docs/deployment/business_media/media/*
68+
69+
*.jpg
70+
!/vbcs_oda_archives/vbcs_apps/vbcs-askdata/webApps/nl2sqlbot/resources/images/*
71+
72+
*.gif
73+
*.webp
74+
75+
*.ico
76+
!/vbcs_oda_archives/vbcs_apps/vbcs-askdata/webApps/nl2sqlbot/resources/images/*
77+
78+
*.docx
79+
80+
# Config
81+
*.ini
82+
83+
# Binaries
84+
*.xlsx
85+
*.zip
86+
/rest/nl2sql-trust/.coverage
87+
*.tgz
88+
89+
# WebSDK should be included in VBCS Applications
90+
/oda/websdk-apache-deploy/
91+
92+
# scan file
93+
.scannerwork/
94+
95+
# Files with possible sensitive info
96+
#clientApp/ConfigFile.properties # cleaned sensitive info
97+
clientApp/autoprompt/ConfigFile.properties
98+
clientApp/autoprompt/semantic_suggest_runbook.md
99+
100+
# Unnecessary instructions
101+
deployment-docs/docs/deployment/nginx.md
102+
103+
deployment-docs/docs/deployment/terraform_p.md
104+
deployment-docs/docs/deployment/trust-service.c.md
105+
deployment-docs/docs/deployment/trust-ui.md
106+
deployment-docs/docs/deployment/trust-service.md
107+
deployment-docs/docs/deployment/let_s_encrypt.md
108+
deployment-docs/docs/deployment/let_s_encrypt_orig.md
109+
110+
deployment-docs/docs/rest/
111+
deployment-docs/docs/templates/
112+
deployment-docs/docs/logging.md
113+
114+
deployment-docs/docs/deployment/apex-trust.md
115+
deployment-docs/docs/deployment/apex-trust-lb.md
116+
117+
# File with reference to orahub repo
118+
deployment-docs/mkdocs.yml
119+
120+
# Reference to OCIDs
121+
/deployment-docs/Finetune-DAC/finetune-dac-python.py
122+
123+
# Binaries
124+
/oda/callGenAiSQLEndPointv2(1.0).zip
125+
/oda/websdk2104-desktop.zip
126+
127+
# Not sure about font files ...
128+
/oda/websdk-apache-deploy/fonts/fonnts.com-aptos-semibold.ttf
129+
130+
# node modules
131+
/oda/websdk-apache-deploy/node_modules/
132+
133+
# Random IPs
134+
/oda/websdk-apache-deploy/scripts/settings.js
135+
136+
# I think we should omit web sdk and provide a link to download from public website
137+
/oda/websdk-apache-deploy/scripts/support/*
138+
/oda/websdk-apache-deploy/scripts/web-sdk.js
139+
/oda/websdk-apache-deploy/scripts/web-sdkVnew.js
140+
141+
/oda/websdk2104-desktop/
142+
143+
# Sensitive info
144+
/promotion/
145+
146+
# Adding entire rest trust directory for now, since there's a dependency on dotmap
147+
# can maybe add delta review for next release
148+
rest/
149+
150+
# Random IPs
151+
/rest/nl2sql-trust/conf/dev_trust_config.json
152+
/rest/nl2sql-trust/conf/metadata_v2.json
153+
#/rest/nl2sql-trust/conf/trust_config.json # added placeholders for sensitive info
154+
155+
# Sensitive info
156+
/rest/nl2sql-trust/helpers/config_json_helper.py
157+
/rest/nl2sql-trust/helpers/config_json_helper.py
158+
159+
# Reference to genai dedicated cluster
160+
/rest/nl2sql-trust/helpers/finetune_helper.py
161+
162+
# Couldn't find any reference upon first glance, but I imagine there might be if finetune helper has a reference
163+
/rest/nl2sql-trust/helpers/finetune_db.py
164+
165+
# Reference to OCIDs
166+
/rest/nl2sql-trust/helpers/llm_helper.py
167+
#/rest/nl2sql-trust/helpers/oci_helper_boostrap.py # cleaned up sensitive info
168+
/rest/nl2sql-trust/helpers/oci_helper_json.py
169+
170+
/rest/nl2sql-trust/helpers/test_ca_creation.json
171+
172+
# wallet
173+
/rest/nl2sql-trust/wallet/
174+
175+
# Do we need this ?
176+
/rest/nl2sql-trust/htmlcov
177+
178+
# keys
179+
/rest/nl2sql-trust/openssl/
180+
181+
# Wallet
182+
/rest/nl2sql-trust/wallet/nl2sql-test/
183+
184+
/rest/wallet/nl2sql-test
185+
186+
# Replaced given ips with placeholders
187+
#/rest/nl2sql-trust/nl2sql_service.py
188+
189+
# Reference to internal db
190+
/rest/nl2sql-trust/README
191+
192+
# devops sensitive info
193+
/rest/script/devops
194+
195+
/rest/script/docker/
196+
# docker artifactory info
197+
/rest/script/docker/artifacts/
198+
/rest/script/docker/artifacts/promote_apex.sh
199+
200+
# oracle instant client reference?
201+
/rest/script/docker/oracle-instantclient-23ai-ol8.repo
202+
203+
# tenancy name reference
204+
/rest/script/docker/promote_dev.sh
205+
/rest/script/docker/run_dev.sh
206+
/rest/script/docker/run.sh
207+
208+
/rest/script/docker_released/
209+
/rest/script/docker_released/artifacts
210+
211+
# another oracle instant client reference? Add link to public download instead?
212+
/rest/script/docker_released/oracle-instantclient-23ai-ol8.repo
213+
214+
# tenancy name reference
215+
/rest/script/docker_released/run_dev.sh
216+
/rest/script/docker_released/run.sh
217+
/rest/script/docker_released/Dockerfile
218+
219+
# ubuntu image? Is this needed? Replace with olinux instead?
220+
/rest/script/dockerssh/Dockerfile
221+
/rest/script/dockerssh/
222+
223+
# Reference to google apis, twitter open source, do we need this?
224+
/rest/script/html_client/
225+
226+
# old docker I assume is unnecessary?
227+
/rest/script/old_docker/
228+
229+
# bash scripts from ruepprich.com, are these needed?
230+
/rest/script/find_by_freeform.bash
231+
/rest/script/find_by_tags.bash
232+
233+
# log file
234+
/rest/script/nl2sql_trust_rest.log
235+
236+
# sensitive info
237+
/rest/script/os_upload.bash
238+
/rest/script/upload_os_trust_config.sh
239+
240+
# tenancy name reference
241+
# masked data, required for starting trust service
242+
# /rest/script/nl2sql_rest.service
243+
244+
# ips
245+
/rest/script/upload.sh
246+
247+
# Wallet
248+
/rest/script/wallet/nl2sql-test
249+
250+
# lock file
251+
/rest/poetry.lock
252+
253+
# tenancy namespace
254+
/scripts/oci
255+
256+
# Hiding terraform for now
257+
terraform/
258+
259+
# Hiding sqlGenApp (used for finetuning)
260+
sqlGenApp/
261+
262+
scripts/
263+
264+
# Reference to tenancy
265+
/terraform/cloud-init/nl_engine_cloud_init.yml
266+
terraform/cloud-init/trust-cloud-init.yml
267+
268+
# sensitive info
269+
terraform/example/vm_nl_engine_cloud_init/terraform.tfvars
270+
terraform/example/vm_trust_cloud_init/terraform.tfvars
271+
/terraform/example/vm_nl_engine_cloud_init/nl_engine_cloud_init.yml.tpl
272+
/terraform/example/vm_nl_engine_cloud_init/variables.tf
273+
/terraform/example/vm_trust_cloud_init/variables.tf
274+
# NLSQL_v1 & NLSQL_V2 directories, I assume v1 is unnecessary?
275+
terraform/NLSQL_v1
276+
277+
# Secrets and binaries
278+
terraform/NLSQL_V2/Deployment/config/files
279+
280+
# ocids
281+
terraform/NLSQL_V2/Deployment/modules/instances/gpu/main.tf
282+
terraform/NLSQL_V2/Deployment/modules/instances/gpu/main.tf
283+
284+
# empty dir
285+
terraform/NLSQL_V2/Deployment/scripts/
286+
287+
# VBCS Applications
288+
# cleaned up main vbcs-askdata app. Will need to provide instructions for certain inputs e.g. idcs endpoint, api gateway endpoints, etc.
289+
# The app is dependent on the images for the app. We can't include the images in the repo. Maybe we'd want to create an associated livelab for this section?
290+
# Still need to bloat and clean zip files for dependent VBCS apps
291+
# vbcs_oda_archives
292+
293+
# wallet
294+
/wallet
295+
296+
# tenancy reference
297+
/run.sh
298+
299+
.DS_Store

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2024 Oracle and/or its affiliates.
1+
Copyright (c) 2025 Oracle and/or its affiliates.
22

33
The Universal Permissive License (UPL), Version 1.0
44

NOTICE.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
This software is licensed under the Universal Permissive License (UPL) 1.0
2+
3+
The Universal Permissive License (UPL), Version 1.0
4+
Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.

README.md

Lines changed: 58 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,71 @@
1-
# TITLE
1+
# AskData NL2SQL Engine
22

33
[![License: UPL](https://img.shields.io/badge/license-UPL-green)](https://img.shields.io/badge/license-UPL-green) [![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=oracle-devrel_test)](https://sonarcloud.io/dashboard?id=oracle-devrel_test)
44

5-
## THIS IS A NEW, BLANK REPO THAT IS NOT READY FOR USE YET. PLEASE CHECK BACK SOON!
6-
75
## Introduction
8-
MISSING
6+
7+
Oracle AskData is a conversational AI platform powered by Oracle Generative AI. With AskData, you can ask natural language questions like "Give me all past due invoices" or "Show me sales for last week over $100,000" and get instant, accurate results.
8+
9+
The solution empowers both non-technical users and SQL experts by simplifying complex queries and freeing up time for deeper analysis and decision-making.
10+
911

1012
## Getting Started
11-
MISSING
13+
Please see the [Introduction](deployment-docs/docs/deployment/introduction.md) & [Architecture](deployment-docs/docs/deployment/architecture.md)
14+
15+
For policies see [Defining Policies](deployment-docs/docs/deployment/generic.md#dynamic-groups)
1216

1317
### Prerequisites
14-
MISSING
18+
The CIS Landing Zone is optional but helps with providing a sandbox environment with best practices
19+
20+
- [Deploy CIS LZ](deployment-docs/docs/deployment/landing_zone.md)
21+
22+
23+
This solution assumes you have access to an OCI tenancy with the admin ability to provision the following resources:
24+
25+
- IDCS/IAM Confidential App
26+
- [Deploy IAM App](deployment-docs/docs/deployment/business_idcs.md)
27+
- Vault
28+
- [Deploy Vault](deployment-docs/docs/deployment/vault.md)
29+
- Business (Client) ADB database
30+
- [Deploy Database](deployment-docs/docs/deployment/database.md)
31+
- Trust ADB database
32+
- [Deploy Database](deployment-docs/docs/deployment/database.md)
33+
- OCI Cache
34+
- [Deploy OCI Cache Cluster](https://docs.oracle.com/en-us/iaas/Content/ocicache/createcluster.htm#top)
35+
- VCN
36+
- Private Subnet
37+
- Public Subnet
38+
- [Deploy a VCN](https://docs.oracle.com/en-us/iaas/Content/Network/Tasks/quickstartnetworking.htm#Virtual_Networking_Quickstart)
39+
- Two VMs
40+
- Engine
41+
- [Deploy Engine Documentation](deployment-docs/docs/deployment/nl2sql_engine.md)
42+
- Bastion/jump host
43+
- To access engine in private subnet
44+
- API Gateway
45+
- [Deploy API Gateway](deployment-docs/docs/deployment/business_api_gateway.md)
46+
- (Optional) If deploying API Gateway privately, see [ADW API Gateway Private Access](deployment-docs/docs/deployment/adw_private.md)
47+
- VBCS
48+
- [Deploy VBCS](deployment-docs/docs/deployment/VBCS.md)
49+
- ODA
50+
- [Deploy ODA](deployment-docs/docs/deployment/oda.md)
51+
## Deployment Steps
52+
53+
1. Configure Business DB
54+
2. Configure Trust DB
55+
3. Configure IDCS App
56+
4. Configure OCI Cache
57+
4. Configure Engine
58+
5. Configure API Gateway
59+
6. Configure ODA Skills
60+
7. Configure VB Apps
61+
62+
### Validation
63+
64+
[Validation Testing](deployment-docs/docs/deployment/validation.md)
1565

1666
## Notes/Issues
17-
MISSING
67+
68+
See [Troubleshooting](deployment-docs/docs/deployment/troubleshooting.md)
1869

1970
## URLs
2071
* Nothing at this time

0 commit comments

Comments
 (0)