This guide covers the platform SDK (
flexorch-sdk). For local file auditing with the zero-dependency OSS library, see flexorch-audit LangChain.Install
FlexOrchRetriever
FlexOrchRetriever implements LangChain’s BaseRetriever interface. It calls POST /v1/search under the hood and returns RAGDocument objects that are duck-type compatible with LangChain’s Document.
Parameters
mode="semantic" and mode="hybrid" require a Pro or Enterprise plan. Pass mode="auto" to fall back to structured search on lower plans.RetrievalQA chain
LCEL chain
Quality and language filters
Async support
FlexOrchRetriever implements aget_relevant_documents() for async chains:
RAGDocument fields
FlexOrchRetriever.invoke() returns a list of RAGDocument objects:
Metadata keys:
RAG pipeline overview
End-to-end guide: export vs. managed search
LlamaIndex integration
FlexOrchReader for VectorStoreIndex