Tag: java
All the articles with the tag "java".
-
Semantic search in Spring AI — find by meaning, not by keyword
With documents indexed in pgvector, VectorStore.similaritySearch() finds the most relevant chunks for any query. This post covers SearchRequest, similarity thresholds, metadata filters, and how to expose semantic search as an API endpoint.
-
Embedding and storing documents with Spring AI — a step-by-step guide
Before you can search your knowledge base semantically, you need to read documents, split them into chunks, generate embeddings, and store them in the vector database. Spring AI's ETL pipeline handles all of it.
-
Setting up pgvector with Spring AI — store and search embeddings in PostgreSQL
pgvector adds native vector search to PostgreSQL. Spring AI auto-configures the schema and wires an EmbeddingModel to it automatically. This post sets up the complete stack with Docker Compose and verifies it works.
-
GraalVM native image with Spring Boot 4 — startup gains, build costs, and when it's worth it
postGraalVM native image can cut Spring Boot startup from seconds to milliseconds and halve memory usage. Spring Boot 4 ships improved AOT support and requires GraalVM 25. This post covers the real performance numbers, every meaningful limitation, and a decision guide for when native is worth the build complexity.
-
Vector databases explained — why regular databases are not enough for AI
Semantic search requires finding the nearest neighbours among millions of high-dimensional vectors. PostgreSQL with B-tree indexes was not built for this. Here is what vector databases do differently and which options work with Spring AI.