Skip to content

Commit 6470d19

Browse files
lmfarley10JBAnderson5
authored andcommitted
More cleaning
1 parent 07f9a7c commit 6470d19

File tree

198 files changed

+53226
-10
lines changed

Some content is hidden

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

198 files changed

+53226
-10
lines changed

.gitignore

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,24 @@ __pycache__/
5757
*.webp
5858
*.ico
5959

60+
*.docx
61+
6062
# Config
6163
*.ini
6264

6365
# Binaries
6466
*.xlsx
6567
*.zip
68+
/rest/nl2sql-trust/.coverage
69+
70+
# WebSDK should be included in VBCS Applications
71+
/oda/websdk-apache-deploy/
6672

6773
# scan file
6874
.scannerwork/
6975

7076
# Files with possible sensitive info
71-
clientApp/ConfigFile.properties
77+
#clientApp/ConfigFile.properties # cleaned sensitive info
7278
clientApp/autoprompt/ConfigFile.properties
7379
clientApp/autoprompt/semantic_suggest_runbook.md
7480

@@ -129,9 +135,9 @@ mkdocs/docs/deployment/VBCS.md
129135
/promotion/
130136

131137
# Random IPs
132-
/rest/nl2sql-trust/conf/dev_trust_config.json
138+
/rest/nl2sql-trust/conf/dev_trust_config.json
133139
/rest/nl2sql-trust/conf/metadata_v2.json
134-
/rest/nl2sql-trust/conf/trust_config.json
140+
#/rest/nl2sql-trust/conf/trust_config.json # added placeholders for sensitive info
135141

136142
# Sensitive info
137143
/rest/nl2sql-trust/helpers/config_json_helper.py
@@ -145,7 +151,7 @@ mkdocs/docs/deployment/VBCS.md
145151

146152
# Reference to OCIDs
147153
/rest/nl2sql-trust/helpers/llm_helper.py
148-
/rest/nl2sql-trust/helpers/oci_helper_boostrap.py
154+
#/rest/nl2sql-trust/helpers/oci_helper_boostrap.py # cleaned up sensitive info
149155
/rest/nl2sql-trust/helpers/oci_helper_json.py
150156

151157
/rest/nl2sql-trust/helpers/test_ca_creation.json
@@ -164,8 +170,8 @@ mkdocs/docs/deployment/VBCS.md
164170

165171
/rest/wallet/nl2sql-test
166172

167-
# example ips in comments
168-
/rest/nl2sql-trust/nl2sql_service.py
173+
# Replaced given ips with placeholders
174+
#/rest/nl2sql-trust/nl2sql_service.py
169175

170176
# Reference to internal db
171177
/rest/nl2sql-trust/README
@@ -174,7 +180,7 @@ mkdocs/docs/deployment/VBCS.md
174180
/rest/script/devops
175181

176182
# docker artifactory info
177-
/rest/script/docker/artifacts
183+
/rest/script/docker/artifacts/
178184

179185
# oracle instant client reference?
180186
/rest/script/docker/oracle-instantclient-23ai-ol8.repo
@@ -243,7 +249,7 @@ terraform/example/vm_trust_cloud_init/terraform.tfvars
243249
terraform/NLSQL_v1
244250

245251
# Secrets and binaries
246-
terraform/NLSQL_V2/Deployment/config
252+
terraform/NLSQL_V2/Deployment/config/files
247253

248254
# ocids
249255
terraform/NLSQL_V2/Deployment/modules/instances/gpu/main.tf
@@ -252,8 +258,11 @@ terraform/NLSQL_V2/Deployment/modules/instances/gpu/main.tf
252258
# empty dir
253259
terraform/NLSQL_V2/Deployment/scripts/
254260

255-
# are these archives necessary?
256-
vbcs_oda_archives
261+
# VBCS Applications
262+
# cleaned up main vbcs-askdata app. Will need to provide instructions for certain inputs e.g. idcs endpoint, api gateway endpoints, etc.
263+
# 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?
264+
# Still need to bloat and clean zip files for dependent VBCS apps
265+
# vbcs_oda_archives
257266

258267
# wallet
259268
/wallet

clientApp/ConfigFile.properties

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
[Logging]
2+
#DEBUG, INFO, WARNING, ERROR, CRITICAL
3+
file.level=DEBUG
4+
console.level=DEBUG
5+
logs.path=./logs
6+
[FeatureFlags]
7+
feature.explain=false
8+
feature.intent=false
9+
feature.llmgraphcheck=false
10+
[security]
11+
anonymous.flag=true
12+
[DatabaseSection]
13+
#database.user=ttech
14+
database.user=nl2sql_app_data
15+
database.password=<client-database-pw>
16+
database.dsn=<client-database-dsn>
17+
database.config=<client-db-path>
18+
database.walletpsswd=<client-db-wallet-pw>
19+
database.debug=Y
20+
database.rbac=N
21+
[KeySection]
22+
key.llm=notused
23+
key.searchapi=notused
24+
token=notused
25+
[RedisSection]
26+
redis.url=<rediss://xyz.redis.us-chicago-1.oci.oraclecloud.com>:6379
27+
url=<xyz>.redis.us-chicago-1.oci.oraclecloud.com
28+
port=6379
29+
[GenAISQLGenerator]
30+
sql.dialect=Oracle
31+
#Scenario3
32+
[QueryResult]
33+
max.resultset=50
34+
filter.upn=notused
35+
filter.ignoreupntablelist=notused
36+
[vbcs]
37+
endpoint.url=<vbcs-endpoint-url>
38+
graph_app.url=<graph-app-url>
39+
idata_app.url=<table-graph-url>
40+
[OCI]
41+
#Sao Paulo
42+
#serviceendpoint.url=https://inference.generativeai.sa-saopaulo-1.oci.oraclecloud.com
43+
#Scenario2
44+
# DAC or DS or GAI
45+
serviceendpoint.active=DS
46+
serviceendpoint.ds_endpt=<service-endpoint-url>
47+
serviceendpoint.ds_model=<service-endpoint-ds-model>
48+
serviceendpoint.url=https://inference.generativeai.us-chicago-1.oci.oraclecloud.com
49+
serviceendpoint.ocid=<service-endpoint-ocid>
50+
serviceendpoint.model=<service-endpoint-model>
51+
serviceendpoint.dac_url=https://inference.generativeai.us-chicago-1.oci.oraclecloud.com
52+
serviceendpoint.dac_ocid=<comp-ocid>
53+
serviceendpoint.dac_endpt=<dac-endpoint-ocid>
54+
serviceendpoint.model_embed=cohere.embed-english-v3.0
55+
serviceendpoint.llm_name=notused
56+
#serviceendpoint.llm_name=OCI-GenAI-LLAMA405bB
57+
[METADATA]
58+
basepath=./metadata
59+
default=metadata.sql
60+
schema.ddl=metadata.sql
61+
file.embdgs=notused
62+
file.col_embdgs=notused
63+
librarymatch.threshold=0.80
64+
librarymatch.upperthreshold=1.0
65+
[DEFAULT] # trust db connection
66+
user=xxxxxx
67+
password=xxxxx
68+
dsn= xxxxx
69+
wallet_location=xxxx
70+
wallet_password=xxxxx
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"app": {
3+
"db_datetime_format_nospace": "DDMONYYYY_hh24miss",
4+
"datetime_format_nospace": "%d%b%Y_%H%M%S"
5+
},
6+
"oci": {
7+
"tenancy_ocid": "<tenancy-ocid>",
8+
"compartment_ocid": "<comp-ocid>",
9+
"namespace": "<tenancy-namespace>",
10+
"region": "us-chicago-1",
11+
"ai": {
12+
"url": "https://inference.generativeai.us-chicago-1.oci.oraclecloud.com",
13+
"model_embed": "cohere.embed-english-v3.0",
14+
"dac_endpoint": "https://inference.generativeai.us-chicago-1.oci.oraclecloud.com",
15+
"dac_endpoint_model": "<dac-endpoint-ocid>"
16+
},
17+
"engine": {
18+
"get_sql_url": "http://<your-ip>:8002/getsql",
19+
"llm_prompt_url": "http://<your-ip>:8002/getprompt"
20+
},
21+
"vault": {
22+
"db_secret_ocid": "<db-vault-secret-ocid>",
23+
"region": "<your-vault-region>"
24+
},
25+
"finetune": {
26+
"max_regression": 100,
27+
"max_corrected": 100,
28+
"keep_local_jsonl": true,
29+
"base_model_id": "<base-model-ocid>",
30+
"unit_count": 2,
31+
"unit_shape": "LARGE_GENERIC",
32+
"dataset_type": "OBJECT_STORAGE",
33+
"training_dataset": {
34+
"early_stopping_patience": 6,
35+
"early_stopping_threshold": 0.01,
36+
"learning_rate": 5e-05,
37+
"log_model_metrics_interval_in_steps": 10,
38+
"lora_alpha": 32,
39+
"lora_dropout": 0.1,
40+
"lora_r": 8,
41+
"total_training_epochs": 3,
42+
"training_batch_size": 8,
43+
"training_config_type": "LORA_TRAINING_CONFIG"
44+
}
45+
},
46+
"os": {
47+
"bucket": "<your-bucket-name>",
48+
"finetune": {
49+
"os_path": "finetune/jsonl/",
50+
"local_path": "./upload"
51+
},
52+
"metadata": {
53+
"file_name": "metadata_v2.json",
54+
"os_path": "config/",
55+
"local_path": "./conf"
56+
}
57+
}
58+
},
59+
"database": {
60+
"wallet": "wallet/nl2sql-test",
61+
"os_wallet": "wallet/nl2sqltest_wallet.zip",
62+
"user": "admin",
63+
"pwd": "<password>",
64+
"dns": "<dns>",
65+
"datetime_format": "DD-MON-YYYY hh24:mi:ss",
66+
"date_format": "DD-MON-YYYY"
67+
},
68+
"metrics": {
69+
"start_date": "10-FEB-2025",
70+
"python_format": "%d-%b-%Y"
71+
}
72+
}

0 commit comments

Comments
 (0)