https://github.com/thomasvitale/concerto-for-java-and-ai
https://github.com/thomasvitale/concerto-for-java-and-ai
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thomasvitale/concerto-for-java-and-ai
- Owner: ThomasVitale
- License: apache-2.0
- Created: 2024-05-22T11:29:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-10T23:11:37.000Z (7 months ago)
- Last Synced: 2025-03-11T00:19:32.811Z (7 months ago)
- Language: Java
- Size: 576 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Concerto for Java and AI
[Slides](https://speakerdeck.com/thomasvitale/concerto-for-java-and-ai-building-production-ready-llm-applications-bc8c4ab8-6384-4937-bfbc-b18c024bc924)
## Stack
* Java 23 (with GraalVM)
* Spring Boot 3.4 (with Spring AI)
* Vaadin## Mousike
First, make sure you have an [OpenAI account](https://platform.openai.com/signup).
Then, define an environment variable with the OpenAI API Key associated to your OpenAI account as the value.```shell
export SPRING_AI_OPENAI_API_KEY=
```Finally, run the Spring Boot application.
```shell
cd mousike
./gradlew bootTestRun
```You can access the application at http://localhost:8080.
The application relies on the native Testcontainers support in Spring Boot to spin up a PostgreSQL database with the pgvector extension,
and a Grafana LGTM service for observability.Grafana is listening to port 3000. Check your container runtime to find the port to which is exposed to your localhost and access Grafana from http://localhost:.
The credentials are `admin`/`admin`.