File tree Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ MISSING
17
17
## Notes/Issues
18
18
Spring Boot 3.0 requires Java 17 as a minimum version.
19
19
20
+
20
21
## URLs
21
22
https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=3874
22
23
Original file line number Diff line number Diff line change 7
7
[ ** LangChain** ] ( https://www.langchain.com/ )
8
8
9
9
10
-
10
+ ## TODO instructions
11
+
12
+ - setup ~ /.oci/config
13
+ - set yourcompartmentid
14
+ - podman run -d --name 23ai -p 1521:1521 -e ORACLE_PWD=Welcome12345 -v oracle-volume:/Users/pparkins/oradata container-registry.oracle.com/database/free: latest
15
+ - create/config vector tablespace and user
16
+ - add oracle database info for use in init_rag_streamlit.py / init_rag_streamlit_exp.py
17
+ - run run_oracle_bot.sh /run_oracle_bot_exp.sh
11
18
12
19
13
20
## Documentation
Original file line number Diff line number Diff line change 49
49
50
50
# private configs
51
51
CONFIG_PROFILE = "DEFAULT"
52
- COMPARTMENT_OCID = "ocid1.compartment.oc1..aaaaaaaajdyhd7dqnix2avhlckbhhkkcl3cujzyuz6jzyzonadca3i66pqjq "
52
+ COMPARTMENT_OCID = "ocid1.compartment.oc1..yourcompartmentid "
53
53
oci_config = oci .config .from_file ("~/.oci/config" , CONFIG_PROFILE )
54
54
COHERE_API_KEY = oci_config ['security_token_file' ]
55
55
DEBUG = True
@@ -155,7 +155,7 @@ def initialize_rag_chain():
155
155
156
156
llm = OCIGenAI (
157
157
service_endpoint = "https://inference.generativeai.us-chicago-1.oci.oraclecloud.com" ,
158
- compartment_id = "ocid1.compartment.oc1..aaaaaaaajdyhd7dqnix2avhlckbhhkkcl3cujzyuz6jzyzonadca3i66pqjq " ,
158
+ compartment_id = "ocid1.compartment.oc1..yourcompartmentid " ,
159
159
model_kwargs = {"max_tokens" : 1000 },
160
160
auth_type = 'SECURITY_TOKEN' ,
161
161
)
Original file line number Diff line number Diff line change 63
63
64
64
# private configs
65
65
CONFIG_PROFILE = "DEFAULT"
66
- COMPARTMENT_OCID = "ocid1.compartment.oc1..aaaaaaaajdyhd7dqnix2avhlckbhhkkcl3cujzyuz6jzyzonadca3i66pqjq "
66
+ COMPARTMENT_OCID = "ocid1.compartment.oc1..yourcompartmentid "
67
67
oci_config = oci .config .from_file ("~/.oci/config" , CONFIG_PROFILE )
68
68
COHERE_API_KEY = oci_config ['security_token_file' ]
69
69
@@ -252,7 +252,7 @@ def build_llm(llm_type):
252
252
llm = OCIGenAI (
253
253
model_id = "cohere.command" ,
254
254
service_endpoint = "https://inference.generativeai.us-chicago-1.oci.oraclecloud.com" ,
255
- compartment_id = "ocid1.compartment.oc1..aaaaaaaajdyhd7dqnix2avhlckbhhkkcl3cujzyuz6jzyzonadca3i66pqjq " ,
255
+ compartment_id = "ocid1.compartment.oc1..yourcompartmentid " ,
256
256
model_kwargs = {"max_tokens" : 200 },
257
257
auth_type = 'SECURITY_TOKEN' ,
258
258
)
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ def _call(
99
99
print (prompt )
100
100
print ()
101
101
102
- print ("Calling OCI genai...pankssssss " )
102
+ print ("Calling OCI genai..." )
103
103
generate_text_response = self .generative_ai_client .generate_text (
104
104
generate_text_detail
105
105
)
You can’t perform that action at this time.
0 commit comments