Skip to main content
RAGOpt uses LangChain’s LLMChain by default. Agentic RAG requires explicit configuration.
macOS users may need to run:export DYLD_LIBRARY_PATH=$(brew --prefix libomp)/lib:$DYLD_LIBRARY_PATHbefore using RAGWorkflow with hybrid retriever to avoid OpenMP errors.

Overview

RAGOpt’s RAGWorkflow class lets you build custom RAG pipelines with modular components:
  1. Parser - Load and parse documents
  2. Chunker - Split documents into chunks
  3. Indexer - Store embeddings in vector database
  4. Retriever - Retrieve relevant documents
  5. Reranker (Optional) - Rerank retrieved documents
  6. LLM - Generate responses

Complete Example


Component Initialization

Embeddings

LLM

Vector Store

Reranker (Optional)


Document Loading & Indexing


Usage

Single Query

Batch Processing

Using Optimized Configuration


Agentic RAG (Experimental)

Agentic RAG is experimental and requires explicit agent initialization.