Skip to main content

Overview

FlexOrch supports two RAG approaches:

Approach 1 — Export chunks

After building a dataset, export it as RAG-ready chunks:
The min_quality parameter filters out low-quality chunks before export. Pass A for only top-grade content, B to include solid content (recommended), or omit to include everything.

RAG chunk format

Load with Python SDK

Load with FlexOrchReader (LlamaIndex)

See the LlamaIndex guide for the full integration.

Approach 2 — Managed search (Pro+)

Semantic and hybrid search require a Pro or Enterprise plan.

Step 1 — Index the dataset

Indexing is idempotent and runs in the background. Poll GET /v1/datasets/{id}/index/status until status is "ready".

Step 3 — Retrieve chunks for a dataset

Use FlexOrchRetriever (LangChain)

See the LangChain guide for a full RetrievalQA example.

Chunking strategy by document type

The fmt=rag export applies FlexOrch’s built-in chunker based on doc_type. For custom strategies, use the flexorch-audit OSS library:
See the flexorch-audit chunk-quality guide for details.

Quality gate for RAG

Not all chunks should enter your vector store. Use quality grades to filter: Recommended minimum: B for production pipelines.

End-to-end example

LangChain integration

FlexOrchRetriever — full RetrievalQA example

LlamaIndex integration

FlexOrchReader — VectorStoreIndex example

Chunk quality

Grade thresholds, scoring, and strategies

MCP tools

dataset.index and dataset.chunks for AI agents