Skip to content

Commit

Permalink
WMS ID 11661: Emergency bug fixes (#750)
Browse files Browse the repository at this point in the history
* Submited : Create a Large Language Model (LLM) chatbot using Oracle Database 23ai and Generative AI Service.

* Name adjustements

* Folder rename

* Deleted old folder

* Fixed some bugs

* Added the Livelabs version of the workshop

* Fixed some bugs

* Changed to the new LiveLab image + switched model to cohere.command-r-plus

* Updates for the new LiveLabs image

* Fixed image name

* Fixed some prerequisites

* Corrected Liana's job role

* Fixed some conditional inclusions

* Created the ocw24 version of the lab

* Fixed some typos + disclaimers

* Fixed index.html + duplicated names

* Fixed some OCW24 bugs

* Using ATP instead of local DB

* Bug fixing + adding credentials

* Blured personal information

* Hide logos in screenshots

* Small bugfix

* Added the CWT API key and instructions

* Bug fixes

---------

Co-authored-by: Bogdan Farca <bogdan@farca.ro>
  • Loading branch information
bogdanf and Bogdan Farca authored Jan 22, 2025
1 parent 4465576 commit 0b09740
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 3 additions & 1 deletion ai-chatbot-engine/search+llm/search+llm.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ The SQL query is executed with the provided vector parameter, fetching relevant

If we print the results, we obtain something like the following. As requested, we have the "score" of each hit, which is essentially the distance in vector space between the question and the text chunk, as well as the metadata JSON embedded in each chunk.
```python
<copy>
import pprint
pprint.pp(results)
</copy>
```

```
Expand Down Expand Up @@ -166,7 +168,7 @@ In a Retrieval-Augmented Generation (RAG) application, the prompt given to a Lar
```python
<copy>
# transform docs into a string array using the "paylod" key
docs_as_one_string = "\n=========\n".join([doc["text"] for doc in results])
docs_as_one_string = "\n=========\n".join([doc[1]["text"] for doc in results])
docs_truncated = truncate_string(docs_as_one_string, 1000)
</copy>
```
Expand Down
7 changes: 3 additions & 4 deletions ai-chatbot-engine/vectorization/vectorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,12 @@ Finally, let's start to code.
It is now time to insert the prepared chunks into the vector database.

### Step 1: Create a database connection
1. Drag and drop the wallet file you downloaded previosly into the Jupyter file pane. Unzip it in folder named "wallet".

<if type="freetier">1. Drag and drop the wallet file you downloaded previosly into the Jupyter file pane. Unzip it in folder named "wallet".</if>
1. The connection details should be pinned down in a cell.
```python
<copy>
un = <your database username>
pw = <your database password>
un = "<your database username>"
pw = "<your database password>"
<if type="livelabs">cs = "host.containers.internal/FREEPDB1"</if>
<if type="ocw24">cs = "host.containers.internal/FREEPDB1"</if>
</copy>
Expand Down

0 comments on commit 0b09740

Please sign in to comment.