Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6e4e3d9

Browse files
Update readme
1 parent b55b945 commit 6e4e3d9

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

‎README.md‎

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
This demo shows how to build a Retrieval-Augmented Generation (RAG) application
44
using [MariaDB](https://mariadb.com/), [LocalAI](https://localai.io/), and [Java](https://en.wikipedia.org/wiki/Java_(programming_language)).
55

6-
**Note:** This demo uses an _RC version_ of MariaDB, which includes SQL syntax that
7-
might change in the next GA (stable) version.
6+
**Note:** This demo uses an _RC version_ of MariaDB, which includes SQL syntax that might change in the next GA (stable) version.
87

98
## Prerequisites
109

@@ -20,23 +19,27 @@ docker compose up -d
2019

2120
This also creates the database schema and loads a [data set with around 1000 Walmart products](https://github.com/luminati-io/Walmart-dataset-samples/blob/main/walmart-products.csv).
2221

23-
Calculate the vector embeddings:
22+
Wait until the AI models have been downloaded successfully:
2423

2524
```shell
26-
./UpdateVectors.java
25+
docker logs -f local-ai
2726
```
2827

29-
Be patient. This might take some time depending on your hardware.
28+
Wait until you see the message _LocalAI API is listening!_ in the log.
3029

31-
## Run the demo
30+
## Calculate the vector embeddings
3231

33-
Before you run the demo, double-check that the models have been downloaded successfully:
32+
To calculate the vector embeddings for all the products in the database, run:
3433

3534
```shell
36-
docker logs -f local-ai
35+
./ComputeVectors.java
3736
```
3837

39-
Start the demo:
38+
Be patient. This might take some time depending on your hardware.
39+
40+
## Run the demo
41+
42+
To run the demo, execute the following:
4043

4144
```shell
4245
./RagDemo.java

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /