oc-rag-forge

Automate design, construction, and evaluation of RAG systems.

Updated May 15, 2026
One-click install
npx skills add https://github.com/asfbay-bit/opchain-skills --skill oc-rag-forge
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oc-rag-forge
Source: https://github.com/asfbay-bit/opchain-skills/tree/main/skills/oc-rag-forge
Command: npx skills add https://github.com/asfbay-bit/opchain-skills --skill oc-rag-forge

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pgvector, turbopuffer, pinecone, supabase-vectors, cohere, voyage, openai, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive solution for designing and building Retrieval-Augmented Generation (RAG) systems, addressing the complexities of vector database selection, embedding models, chunking strategies, hybrid search, and retrieval evaluation.

Core Features & Use Cases

  • Vector Database Selection: Offers a choice of vector databases like pgvector, Turbopuffer, Pinecone, and Supabase Vectors.
  • Embedding Model Choice: Allows selection from various embedding models tailored to specific domains and languages.
  • Chunking Strategy: Provides options for chunking strategies to optimize retrieval performance.
  • Hybrid Search: Integrates both dense and BM25 search modes for enhanced retrieval.
  • Retrieval Evaluation: Includes an evaluation process to measure and improve retrieval quality.
  • Use Case: Ideal for developers and data scientists looking to implement a knowledge base or semantic search system with a focus on retrieval quality.

Quick Start

To start using the oc-rag-forge skill, initiate the /oc-rag command to design, build, and evaluate a RAG system.

Frequently Asked Questions about oc-rag-forge

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

FAQPage Schema
How do I design and evaluate a RAG system with hybrid search?

To design and evaluate a RAG system with hybrid search, you need to integrate dense and BM25 search modes, select an appropriate embedding model, and apply a chunking strategy to optimize retrieval performance and measure quality.

What is the best way to choose a vector database for a semantic search system?

Choosing a vector database for a semantic search system involves comparing options like pgvector, Turbopuffer, Pinecone, and Supabase Vectors based on your specific scalability needs, existing infrastructure, and retrieval evaluation metrics.

How does chunking strategy affect retrieval performance in RAG applications?

Chunking strategy affects retrieval performance in RAG applications by determining how source documents are segmented, which directly impacts the precision of the dense and BM25 hybrid search results returned to the embedding model.

Can I use pgvector and Pinecone interchangeably for building a knowledge base?

You can use pgvector and Pinecone for building a knowledge base, but the choice depends on your architecture; pgvector integrates with existing PostgreSQL environments while Pinecone offers a managed, specialized vector search experience.

Do I need an embedding model from Cohere or OpenAI to build a RAG pipeline?

You need an embedding model from providers like Cohere, Voyage, or OpenAI to build a RAG pipeline, as these models convert text chunks into vector representations required for the underlying semantic search retrieval process.

When should I use hybrid search instead of dense search alone in a RAG system?

You should use hybrid search instead of dense search alone in a RAG system when your knowledge base requires matching specific keywords alongside semantic context, a process measurable through dedicated retrieval evaluation techniques.