rag-pipelines

Design RAG pipelines with chunking, hybrid search, and cross-encoder reranking.

19|6|Updated Sep 13, 2025
One-click install
npx skills add https://github.com/neverinfamous/memory-journal-mcp --skill rag-pipelines
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rag-pipelines
Source: https://github.com/neverinfamous/memory-journal-mcp/tree/main/skills/rag-pipelines
Command: npx skills add https://github.com/neverinfamous/memory-journal-mcp --skill rag-pipelines

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Design and implement effective Retrieval-Augmented Generation (RAG) pipelines by applying robust chunking, embedding, and retrieval strategies to ensure accurate, scalable answers over large document collections.

Core Features & Use Cases

  • Chunking Guidance: Employ semantic or structure-aware chunking to maximize context retention and retrieval performance.
  • Embeddings & Models: Select appropriate embedding models and manage constraints for scalable similarity search.
  • Retrieval & Ranking: Implement hybrid search (vector + keyword) with Reciprocal Rank Fusion and a cross-encoder reranker to boost precision.
  • Context Integration: Provide clear guidance on injecting retrieved chunks into prompts and ensuring proper citation and traceability.

Quick Start

Draft a RAG pipeline design that applies semantic chunking, vector search, and cross-encoder reranking.

Frequently Asked Questions about rag-pipelines

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What's the best way to improve retrieval accuracy in a RAG pipeline?

Optimize chunking in your RAG pipeline by applying semantic or structure-aware chunking techniques. These methods maximize context retention and retrieval performance by preserving the logical boundaries of your source documents, ensuring that retrieved chunks provide coherent and complete answers.

How does hybrid search with Reciprocal Rank Fusion work for document retrieval?

Hybrid search combines vector similarity and keyword matching scores, while Reciprocal Rank Fusion merges their ranked result lists. This balances semantic understanding with exact term matching to surface highly relevant documents before passing them to a cross-encoder reranker for final precision boosting.

Can I use cross-encoder reranking with my existing vector database for semantic search?

Yes, you can integrate cross-encoder reranking with an existing vector database. The vector database handles initial similarity search to retrieve candidate chunks, and the cross-encoder reranker then evaluates these top candidates to boost precision and ensure the most accurate context is injected into prompts.

Do I need deterministic chunking for processing large document collections?

Yes, deterministic chunking is needed for processing large document collections to ensure reproducible retrieval results. It applies consistent rules based on document structure, maintaining traceability and stable context boundaries across your entire vector database.

Why does my RAG pipeline return irrelevant chunks despite using vector search?

Vector search alone may return irrelevant chunks due to overlapping embeddings or lost context. Implementing structure-aware chunking to preserve boundaries, followed by hybrid search and cross-encoder reranking, filters out low-relevance candidates and significantly boosts final answer precision.