Ingest File
Ingest a file into the library.
Upload a file (PDF, DOCX, image, etc.) to be parsed, indexed, and made searchable. The file goes through content extraction and full-text indexing automatically.
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "http://127.0.0.1:14242/sources/ingest/file" \ -F file="string"{
"source_id": "string",
"original_name": "string",
"lifecycle_state": "string",
"is_duplicate": false,
"message": ""
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}