
Hybrid Search and Reranking: Better RAG Retrieval
Boost RAG accuracy with hybrid search and reranking, fusing BM25 keyword search with vector search, then reranking with cross-encoders before generation.
Blog
Deeper machine learning articles — model selection, embeddings, and the core ML concepts behind applied AI systems.
5 articles

Boost RAG accuracy with hybrid search and reranking, fusing BM25 keyword search with vector search, then reranking with cross-encoders before generation.

A practical framework for picking an embedding model for RAG: dimension versus cost versus recall, why MTEB scores can mislead you, and a script to benchmark candidates on your own data.

You probably do not need Pinecone. How to build production semantic search with pgvector inside the PostgreSQL you already run, indexes and hybrid search included.

RAG and fine-tuning solve different problems, and most teams pick wrong. A practical framework for deciding which one your LLM feature actually needs.

A practical guide to architecting production-grade Retrieval-Augmented Generation systems using LangChain, pgvector, and RAGAS evaluation metrics. Covers chunking strategies, vector store setup, retrieval optimization, and how to measure answer quality in real deployments.