Semantic search over PDFs with PostgreSQL and pgvector
A Spring Boot example that shows how to build semantic search over PDF documents using Spring AI, OpenAI embeddings and PostgreSQL + pgvector as the vector store. It also exposes a simple chat endpoint backed by an OpenAI chat model.
Full setup, endpoints and configuration are in the project README. The project page is here.