forked fromalejandro-du/mariadb-rag-demo-java
- Notifications
You must be signed in to change notification settings - Fork0
mariadb-developers/mariadb-rag-demo-java
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This demo shows how to build a Retrieval-Augmented Generation (RAG) applicationusingMariaDB,OpenAI API, andJava (with no AI frameworks for learning purposes).
- Set the
OPENAI_API_KEYenvironment variable to your OpenAI API key. For example (Linux/MacOS):
export OPENAI_API_KEY=sk-example1234567890abcdef1234567890abcdef- Start MariaDB (see thedocker-compose.yml file):
docker compose up -d
- Check that MariaDB started successfully:
docker logs mariadb
To calculate the vector embeddings for all the products in the database, run:
./ComputeVectors.java
To run the chat demo, execute the following:
./ChatDemo.java
About
Retrieval-Augmented Generation (RAG) with MariaDB vector search and OpenAI API
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Languages
- PowerShell32.3%
- Shell29.7%
- Java24.9%
- Batchfile13.1%