Contextual Retrieval solves this problem by prepending chunk-specific explanatory context to each chunk before embedding (“Contextual Embeddings”) and creating the BM25 index (“Contextual BM25”).
-
Updated
Sep 29, 2024 - Python
Contextual Retrieval solves this problem by prepending chunk-specific explanatory context to each chunk before embedding (“Contextual Embeddings”) and creating the BM25 index (“Contextual BM25”).
Contextual RAG over webinar videos using Pinecone, Claude and AWS.
RAG-Ingest: A tool for converting PDFs to markdown and indexing them for enhanced Retrieval Augmented Generation (RAG) capabilities.
It is a case study of an intelligent agent for Ocean.
Header-aware chunking for RAG, plus mk.diagnose: test on your own documents whether to spend on the retriever, a reranker or LLM enrichment. Zero dependencies. Code for arXiv:2603.23533.
Enhance your RAG with Contextual Retrieval
Production-grade multi-agent RAG system with a self-correcting LangGraph supervisor (Researcher, Synthesizer, Critic), agentic tool calling, hybrid search, and an MCP server. Built with Gemini 2.5 Flash, FastAPI, Next.js 16, Postgres, pgvector, Redis, and Celery.
基于上下文增强(Contextual Retrieval)的 RAG 检索系统。
Local-first document → RAG pipeline for Node: PDF, DOCX, PPTX, XLSX, HTML and images to chunks with layout analysis, tables, figures, OCR and reranking on ONNX — any LLM provider, or fully local with Gemma 4
Shared knowledge layer for human-agent teams. Agents search, classify, and manage knowledge alongside your team.
ContextualRetriever enhances document retrieval accuracy by leveraging Voyage AI models for embedding & reranking models, and the GEMINI model for context and retrieval generation.
Chatbot based on Contextual RAG with Hybrid Search and Reranking with short conversation history awareness, fully OpenSource.
Production-shaped RAG for PDF corpora: contextual retrieval, hybrid dense+sparse search in Qdrant, RRF fusion, reranking, and streaming answers with clickable PDF citations.
Search local documents to provide private knowledge retrieval for AI agents and teams in under a second.
Production-grade agentic Retrieval-as-a-Service (RaaS) microservice built with LangGraph, FastAPI & LangChain. Features Corrective RAG (CRAG) with Pydantic LLM-as-a-Judge, Contextual Retrieval, Single-Database Parent Payloads, Groundedness Self-Correction, Vision OCR, and real-time SSE streaming.
Anthropic's Contextual Retrieval (2024) implemented and measured: LLM-situated chunks vs plain chunks, contextual embeddings + contextual BM25, reproducible recall@5 benchmark on an ambiguity-engineered corpus. Free local Ollama.
Rigorous evaluation of contextual retrieval techniques on FinanceBench: comparing 5 embedders × 4 chunking strategies with bootstrapped confidence intervals on FinMTEB and FinanceBench.
Data and code for AQUA Research TR-007: Does Contextual Retrieval work in Japanese? (Anthropic contextual retrieval vs. structure-aligned chunking vs. LLM reranking on a production Japanese RAG)
Hands-on RAG experiments in a single notebook. Starts with naive semantic search over ChromaDB, then adds BM25 + Reciprocal Rank Fusion, contextual retrieval (LLM-generated chunk context), and cross-encoder reranking. Each stage runs on the same questions over a 17-document corpus with distractors, so you can compare results directly.
A fully-offline, local-first knowledge engine
To associate your repository with the contextual-retrieval topic, visit your repo's landing page and select "manage topics."