latestOpenAPI 3.1.02026-08-236994571.1 MB

79928a3d37d3

rag

Rag Ingest

RAG Ingest endpoint - all-in-one document ingestion pipeline.

Supports form upload (for files) or JSON body (for URLs).

Form upload (for files):

curl -X POST "http://localhost:4000/v1/rag/ingest" \
    -H "Authorization: Bearer sk-1234" \
    -F file="@document.pdf" \
    -F 'ingest_options={"vector_store": {"custom_llm_provider": "openai"}}'

JSON body (for URLs):

curl -X POST "http://localhost:4000/v1/rag/ingest" \
    -H "Authorization: Bearer sk-1234" \
    -H "Content-Type: application/json" \
    -d '{
        "file_url": "https://example.com/document.pdf",
        "ingest_options": {"vector_store": {"custom_llm_provider": "openai"}}
    }'

Bedrock:

curl -X POST "http://localhost:4000/v1/rag/ingest" \
    -H "Authorization: Bearer sk-1234" \
    -F file="@document.pdf" \
    -F 'ingest_options={"vector_store": {"custom_llm_provider": "bedrock"}}'
post/v1/rag/ingest

Response

Successful Response

{"stackTrail":"paths:/v1/rag/ingest:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}