Overview
FlexOrch supports two RAG approaches:Approach 1 — Export chunks
After building a dataset, export it as RAG-ready chunks: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)
Approach 2 — Managed search (Pro+)
Semantic and hybrid search require a Pro or Enterprise plan.
Step 1 — Index the dataset
GET /v1/datasets/{id}/index/status until status is "ready".
Step 2 — Search
Step 3 — Retrieve chunks for a dataset
Use FlexOrchRetriever (LangChain)
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:
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