giuseppe-trisciuoglio avatar

Langchain4j Vector Stores Configuration

This handles LangChain4J vector store setup for RAG applications across PostgreSQL/pgvector, Pinecone, MongoDB Atlas, Milvus, and Neo4j. You get builder-based configuration patterns, connection pooling with HikariCP, metadata filtering with multiple field types, and health check implementations. The validation workflow is smart: it walks you through connection testing, dimension validation, and test queries before you ingest production data. Most useful when you're wiring up semantic search or need to switch between vector databases without rewriting your embedding logic. The examples cover everything from basic in-memory stores for development to production setups with monitoring and connection pools. Good reference if you're tired of reading vendor-specific documentation for each database.

skills.sh installs
3.8K
GitHub stars
369
last updated
Aug 21, 2026

Install

$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill langchain4j-vector-stores-configuration --agent claude-code

Installs into .claude/skills of the current project.

Files

LangChain4J Vector Stores Configuration

Configure vector stores for Retrieval-Augmented Generation applications with LangChain4J.

Overview

LangChain4J provides a unified abstraction for vector stores (PostgreSQL/pgvector, Pinecone, MongoDB Atlas, Milvus, Neo4j) with builder-based configuration, metadata filtering, and hybrid search support.

When to Use

  • Configuring vector stores for semantic search and RAG applications
  • Setting up embedding storage with metadata filtering and hybrid search
  • Optimizing vector database performance for production AI workloads

Instructions

Set Up Basic Vector Store

Configure an embedding store for vector operations:

@Bean
public EmbeddingStore<TextSegment> embeddingStore() {
    return PgVectorEmbeddingStore.builder()
        .host("localhost")
        .port(5432)
        .database("vectordb")
        .user("username")
        .password("password")
        .table("embeddings")
        .dimension(1536) // OpenAI embedding dimension
        .createTable(true)
        .useIndex(true)
        .build();
}

Validation Workflow

Follow this workflow to ensure correct vector store setup:

Sponsors

Details

Repository
github.com/giuseppe-trisciuoglio/developer-kit
Categories
Backend & APIs, AI & Agent Building, Debugging, Databases
First seen
May 16, 2026

More from giuseppe-trisciuoglio/developer-kit

All 102
1dpearson2699 avatardevice-integritydpearson2699/swift-ios-skillsVerify device legitimacy and app integrity using DeviceCheck (DCDevice per-device bits) and App Attest (DCAppAttestService key generation, attestation, and asse3.8Kskills.sh installs
2giuseppe-trisciuoglio avataraws-rds-spring-boot-integrationgiuseppe-trisciuoglio/developer-kitProvides patterns to configure AWS RDS (Aurora, MySQL, PostgreSQL) with Spring Boot applications. Configures HikariCP connection pools, implements read/write sp3.8Kskills.sh installs
3dotnet avatarfetch-and-send-datadotnet/skillsCall APIs, load data into components, and handle the async lifecycle in Blazor. USE FOR fetching data from a backend, submitting data to an API, displaying load3.8Kskills.sh installs
4raroque avatarvibe-securityraroque/vibe-security-skillAudits codebases for common security vulnerabilities that AI coding assistants introduce in "vibe-coded" applications. Checks for exposed API keys, broken acces3.8Kskills.sh installs
5browser-use avataropen-sourcebrowser-use/browser-useDocumentation reference for writing Python code using the browser-use open-source library. Use this skill whenever the user needs help with Agent, Browser, or T3.7Kskills.sh installs
6giuseppe-trisciuoglio avatarspring-boot-project-creatorgiuseppe-trisciuoglio/developer-kitCreates and scaffolds a new Spring Boot project (3.x or 4.x) by downloading from Spring Initializr, generating package structure (DDD or Layered architecture), 3.7Kskills.sh installs