n4nAI

Topic

LangChain RAG with Vector Databases

15 posts on langchain rag with vector databases — part of framework tutorials on the n4n AI blog.

Framework tutorialsHow-to

Supabase pgvector plus LangChain for RAG

Build a production RAG pipeline with Supabase pgvector and LangChain — from schema design to retrieval tuning, with runnable code at each step.

4 min read
Framework tutorialsHow-to

Retrieval-augmented generation with LangChain and Qdrant

Build a production-ready RAG pipeline with LangChain and Qdrant — from document ingestion to retrieval and generation, with verification steps at each stage.

4 min read
Framework tutorialsHow-to

Reranking retrieved documents in a LangChain RAG pipeline

Learn how to add reranking to your LangChain RAG pipeline with step-by-step code examples using cross-encoders and Cohere rerank for better retrieval quality.

4 min read
Framework tutorialsHow-to

LangChain RAG with Redis as the vector store

Build a production-ready RAG pipeline using LangChain and Redis as the vector store, with complete code and verification steps.

3 min read
Framework tutorialsGuide

LangChain and Milvus: scaling RAG to millions of documents

A practical guide to scaling LangChain RAG pipelines with Milvus to millions of documents, covering collection design, embedding pipelines, retrieval strategies, and operational pitfalls.

5 min read
Framework tutorialsGuide

LangChain RAG with Weaviate: a step-by-step guide

Build production-ready RAG with LangChain and Weaviate — from ingestion to retrieval, with code, pitfalls, and scaling tradeoffs.

6 min read
Framework tutorialsHow-to

LangChain RAG evaluation with RAGAS and n4n.ai

A step-by-step guide to evaluating LangChain RAG pipelines with RAGAS, including synthetic dataset generation, metric selection, and CI integration.

4 min read
Framework tutorialsGuide

Hybrid search in LangChain: combining BM25 and embeddings

A practical guide to implementing hybrid search in LangChain by combining BM25 keyword search with dense vector embeddings for better retrieval accuracy.

5 min read
Framework tutorialsHow-to

FAISS vector search in LangChain for local RAG prototypes

Build a local RAG prototype with LangChain and FAISS — complete setup, indexing, retrieval, and generation steps with runnable code.

4 min read
Framework tutorialsGuide

Using pgvector with LangChain for production RAG

Practical guide to building langchain pgvector production rag systems: schema, ingestion, tuning, and pitfalls for serving real traffic on Postgres.

3 min read
Framework tutorialsTutorial

LangChain RAG tutorial: Chroma plus n4n.ai models

Build a retrieval-augmented generation pipeline with LangChain and Chroma using n4n.ai models via an OpenAI-compatible endpoint. Hands-on tutorial with runnable code.

2 min read
Framework tutorialsComparison

Comparing Pinecone and Chroma for LangChain RAG apps

Head-to-head comparison of Pinecone vs Chroma for LangChain RAG apps across cost, latency, ergonomics, and limits, with a verdict per use case.

6 min read
Framework tutorialsGuide

Chunking strategies for LangChain RAG pipelines

A practical guide to langchain rag chunking strategies: fixed-size, semantic, and recursive splitting with code, tradeoffs, and common pitfalls.

4 min read
Framework tutorialsHow-to

Build a RAG pipeline with LangChain and Pinecone

Build a langchain pinecone rag pipeline from scratch: install deps, chunk docs, embed to Pinecone, query with LangChain retrieval chains, and verify.

3 min read
Framework tutorialsHow-to

Build a RAG chatbot with LangChain, LanceDB, and n4n.ai

A practical end-to-end tutorial for engineers: build a LangChain LanceDB n4n.ai RAG chatbot with vector search and OpenAI-compatible LLM calls.

2 min read