Skip to main content
POST /v1/pipelines/ingest runs extraction, chunking, embedding, and storage together with a JSON request body. Use it when your application wants one request to build or refresh a collection from server-accessible paths, document URLs, websites, APIs, or Markdown. Use POST /v1/pipelines/ingest/mixed when the same document pipeline includes browser uploads plus JSON-addressable sources such as file paths, folders, or remote document URLs.

Request

Mixed Document Uploads

POST /v1/pipelines/ingest/mixed uses multipart form data with a JSON manifest, uploaded files, and optional file_refs. The manifest keeps the pipeline shape identical to JSON ingest while allowing uploaded bytes to join path, URL, and folder documents in one request.
Request
file_refs is optional when file_ref matches the uploaded filename. When you provide it, repeat file_refs once per uploaded file in the same order as files.

Inputs

Document items can use kind: "path", kind: "folder", kind: "url", or kind: "upload". JSON ingest cannot carry upload bytes; use /v1/pipelines/ingest/mixed for upload items. You can combine inputs in one request. Ragrails merges extracted documents before chunking.

Config Blocks

When To Use Stage Endpoints

Use stage endpoints instead of /v1/pipelines/ingest when you need to inspect extracted documents, review chunks before embedding, store artifacts outside the API response, or retry a specific stage.