You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-18Lines changed: 19 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,27 +6,27 @@
6
6
7
7
Using Oracle JET, create a user-friendly prompt-led user interface (UI) to interact with Oracle's new Generative AI service. This toolkit will configure your Generative AI Service connection so you can begin your journey with AI, or migrate your existing (local or Cloud) LLMs to the Oracle AppDev ecosystem.
8
8
9
-
Oracle JET(Preact) allows you to craft pixel-perfect UI's which are fast, lightweight, and engaging. Your code takes center stage with Oracle JET, while its powerful features enable you to create dynamic user experiences quickly and reliably.
9
+
Oracle JET(Preact) allows you to craft pixel-perfect UIs which are fast, lightweight, and engaging. Your code takes centre stage with Oracle JET, while its powerful features enable you to create dynamic user experiences quickly and reliably.
10
10
11
-
Oracle's Generative AI service allows developers to unlock a better user experience for chat systems, questionandanswer solutions, and much more. This project provides a front end to that service so you can experiment and get a sense of the immense power of Oracle Generative AI. This is an excellent starting point on your AI journey, and experienced developers will be able to quickly port their LLMs to leverage this powerful service for enhanced customer support solutions.
11
+
Oracle's Generative AI service allows developers to unlock a better user experience for chat systems, question-and-answer solutions, and much more. This project provides a front end to that service so you can experiment and get a sense of the immense power of Oracle Generative AI. This is an excellent starting point on your AI journey, and experienced developers will be able to quickly port their LLMs to leverage this powerful service for enhanced customer support solutions.
12
12
13
13

14
14
15
15
## Getting Started
16
16
17
17
### 0. Set up
18
18
19
-
Follow links below to generate a config file and a key pair in your ~/.oci directory
19
+
Follow the links below to generate a config file and a key pair in your ~/.oci directory
After completion, you should have following 2 things in your `~/.oci directory `
25
+
After completion, you should have the following 2 things in your `~/.oci directory `
26
26
27
27
a. A config file(where key file point to private key:key_file=`~/.oci/oci_api_key.pem`)
28
28
b. A key pair named `oci_api_key.pem` and `oci_api_key_public.pem`
29
-
Now make sure you change the reference of key file in config file (where key file point to private key:key_file=/YOUR_DIR_TO_KEY_FILE/oci_api_key.pem)
29
+
Now make sure you change the reference of the key file in the config file (where the key file points to private key:key_file=/YOUR_DIR_TO_KEY_FILE/oci_api_key.pem)
30
30
31
31
- Append OCI Generative-AI service compartment and endpoint URL
### 3. Make sure you have python installed on your machine
72
+
### 3. Make sure you have Python installed on your machine
73
73
74
-
- In cli run following command to validate Python version
74
+
- In cli run the following command to validate the Python version
75
75
`python --version`
76
76
77
77
You should see similar output:
@@ -82,11 +82,11 @@ Python 3.8.3
82
82
83
83
### 4. Install all dependencies
84
84
85
-
We suggest you install dependencies in a virtual env to avoid conflicts on your system.
85
+
We suggest you install dependencies in a virtual environment to avoid conflicts on your system.
86
86
87
87
- Navigate to the server root folder
88
88
`cd service/python`
89
-
- Create vitrual environment:
89
+
- Create a virtual environment:
90
90
`python3 -m venv venv`
91
91
- Activate your virtual environment:
92
92
`. venv/bin/activate`
@@ -95,7 +95,7 @@ We suggest you install dependencies in a virtual env to avoid conflicts on your
95
95
- Install requirements:
96
96
`pip3 install -r requirements.txt`
97
97
98
-
## 5. Start websocket server app
98
+
## 5. Start the websocket server app
99
99
100
100
Once dependencies are installed and your service credentials are updated you can run server.py
101
101
@@ -104,24 +104,24 @@ Once dependencies are installed and your service credentials are updated you can
104
104
## 6. Start JET Client
105
105
106
106
- Open app directory:
107
-
`cd ../../app ` or `cd app/` in root folder
107
+
`cd ../../app ` or `cd app/` in the root folder
108
108
- Install dependencies:
109
109
`ojet restore`
110
110
- Run local version:
111
111
`ojet serve`
112
112
- Or package for web deployment
113
113
`ojet build web`
114
114
115
-
Ask you questions to generate AI response
115
+
Ask your questions to generate an AI response
116
116

117
117
118
-
Note that app is capable of generating markdown
118
+
Note that the app is capable of generating markdown
119
119

120
120
121
121
## Appendix: Token-based Authentication
122
122
123
123
Check [Token-based Authentication for the CLI](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/clitoken.htm#Running_Scripts_on_a_Computer_without_a_Browser)
124
-
if need to run testing with session token via BOAT. Here is the sample config to setup client with session token in the test scripts:
124
+
if need to run testing with session token via BOAT. Here is the sample config to set the client with a session token in the test scripts:
@@ -164,7 +164,7 @@ To change output parameters edit server.py
164
164
-[AI for Developer](developer.oracle.com/ai)
165
165
166
166
## Contributing
167
-
This project is open source. Please submit your contributions by forking this repository and submitting a pull request! Oracle appreciates any contributions that are made by the opensource community.
167
+
This project is open source. Please submit your contributions by forking this repository and submitting a pull request! Oracle appreciates any contributions that are made by the open-source community.
168
168
169
169
## License
170
170
Copyright (c) 2024 Oracle and/or its affiliates.
@@ -173,4 +173,5 @@ Licensed under the Universal Permissive License (UPL), Version 1.0.
173
173
174
174
See [LICENSE](LICENSE) for more details.
175
175
176
-
ORACLE AND ITS AFFILIATES DO NOT PROVIDE ANY WARRANTY WHATSOEVER, EXPRESS OR IMPLIED, FOR ANY SOFTWARE, MATERIAL OR CONTENT OF ANY KIND CONTAINED OR PRODUCED WITHIN THIS REPOSITORY, AND IN PARTICULAR SPECIFICALLY DISCLAIM ANY AND ALL IMPLIED WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. FURTHERMORE, ORACLE AND ITS AFFILIATES DO NOT REPRESENT THAT ANY CUSTOMARY SECURITY REVIEW HAS BEEN PERFORMED WITH RESPECT TO ANY SOFTWARE, MATERIAL OR CONTENT CONTAINED OR PRODUCED WITHIN THIS REPOSITORY. IN ADDITION, AND WITHOUT LIMITING THE FOREGOING, THIRD PARTIES MAY HAVE POSTED SOFTWARE, MATERIAL OR CONTENT TO THIS REPOSITORY WITHOUT ANY REVIEW. USE AT YOUR OWN RISK.
176
+
ORACLE AND ITS AFFILIATES DO NOT PROVIDE ANY WARRANTY WHATSOEVER, EXPRESS OR IMPLIED, FOR ANY SOFTWARE, MATERIAL OR CONTENT OF ANY KIND CONTAINED OR PRODUCED WITHIN THIS REPOSITORY, AND IN PARTICULAR SPECIFICALLY DISCLAIM ANY AND ALL IMPLIED WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. FURTHERMORE, ORACLE AND ITS AFFILIATES DO NOT REPRESENT THAT ANY CUSTOMARY SECURITY REVIEW HAS BEEN PERFORMED WITH RESPECT TO ANY SOFTWARE, MATERIAL OR CONTENT CONTAINED OR PRODUCED WITHIN THIS REPOSITORY. IN ADDITION, AND WITHOUT LIMITING THE FOREGOING, THIRD PARTIES MAY HAVE POSTED SOFTWARE, MATERIAL OR CONTENT TO THIS REPOSITORY WITHOUT ANY REVIEW. USE AT YOUR OWN RISK.
0 commit comments