latestOpenAPI 3.1.02026-08-197104501.1 MB
8fbaab4fc7c5
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"}