The goal was to practice. I read on spring ai and also watched YouTube all described below.
- Java 21 (OpenJDK)
- Spring Boot 3.3.1 (Current latest stable)
- Spring AI (using OpenAI current latest 0.8.1)
- Postgresql DB + PGVector (Postgres Vector extension)
- Generate a dedicated OpenAPI key.
- Locate your pdf within pdfs folder or use mine (Olymic Games wiki)
- Dynamic load of all pdfs for their folder.
- Once loaded, allow querying more than once.