Skip to main content
rag.ingest() is the SDK workflow for indexing. It extracts source content, chunks it, embeds the chunks, and stores them in your vector database. Use it when your application wants the full indexing path without manually calling every stage.

Source Inputs

ingest() accepts documents, websites, REST APIs, direct Markdown, or a mix of them.

Combine Sources

concurrency="parallel" runs independent document, URL, and API extraction stages in parallel before chunking. Direct Markdown is added after extraction.

Configure Stages

Stage config dictionaries let you tune the workflow without dropping to manual stage calls.

Result

When Not to Use ingest()

Use individual stage pages when you need to review extracted text before chunking, save stage output to disk, transform chunks, use a custom embedder object, validate vectors before storage, or implement a custom maintenance manifest.

Extraction

Run source extraction directly.

Pipeline Overview

See all stage boundaries.