How I Added LangChain4j Without Letting It Take Over My Spring Boot App
java
dev.to
Most AI examples look clean for about five minutes. Then the framework starts leaking everywhere: controllers know about embedding models services return framework types retrieval becomes a black box swapping providers means rewriting half the application I did not want that here. This project is a Spring Boot knowledge base backed by PostgreSQL, pgvector, and LangChain4j. It supports a practical RAG-style flow: accept documents through an HTTP API split them into chunks generate embeddi