A production-ready Retrieval-Augmented Generation (RAG) API built with Spring Boot 3.5, LangChain4j 1.0.0, and PostgreSQL pgvector. Upload documents up to 50 MB, semantically index them with HNSW ...
One trick is to use an open-ended column type like PostgreSQL's JSONB. Our schema has a JSONB field in clicks called user_data. A company (say company 5), can use the column to track whether the user ...