RAG
RAG
Plug-and-play retrieval. Chunk, embed, search, rerank, loaders.
Want a working RAG agent rather than wiring the pipeline yourself? The Registry ships document-Q&A starters you can install and point at your data.
#Core pipeline
createRAG({ embed, store })β one-liner ingest + retrieve + search. Defaults:chunkSize512,chunkOverlap50.chunkText(text, { chunkSize, chunkOverlap, split? })β standalone splitter.splitis an optional(text: string) => string[].
#Reranking + hybrid
createRerankedRetriever(base, { candidatePool?, topK?, rerank? })β plug invoyageReranker,jinaReranker, or the built-inbm25Rerank.createHybridRetrieverβ vector + BM25 blend with weighted normalization.- Recipe: RAG reranking.
#Document loaders
loadUrl(raw response text),loadGitHubFile,loadGitHubTree,loadNotionPage,loadConfluencePage,loadGoogleDriveFile,loadPdf(BYO parser). All returnInputDocument[].- Recipe: Document loaders.
Loader and reranker guides are available through the document loaders recipe and RAG reranking recipe.