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 $LITELLM_MASTER_KEY" \
    -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 $LITELLM_MASTER_KEY" \
    -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 $LITELLM_MASTER_KEY" \
    -F file="@document.pdf" \
    -F 'ingest_options={"vector_store": {"custom_llm_provider": "bedrock"}}'
post/v1/rag/ingest

Request

  • Base URL: https://docs.litellm.com.cn (the document declares no server; this is the origin it was published from)
  • URL: https://docs.litellm.com.cn/v1/rag/ingest
  • Auth: API key in header x-litellm-api-key

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.