Ingest Document
Changed onIngest a document into a given Datastore.
Ingestion is an asynchronous task. Returns a document id which can be used to track the status of the ingestion job through calls to the GET /datastores/{datastore_id}/documents/{document_id}/metadata API.
This id can also be used to delete the document through the DELETE /datastores/{datastore_id}/documents/{document_id} API.
file must be a PDF, HTML, DOC(X), PPT(X), PNG, JPG, or JPEG file. The filename must end with one of the following extensions: .pdf, .html, .htm, .mhtml, .doc, .docx, .ppt, .pptx, .png, .jpg, .jpeg.
Request
- Base URLhttps://api.contextual.ai/v1
- URLhttps://api.contextual.ai/v1/datastores/{datastore_id}/documents
- AuthHTTP bearer
Path parameters
Datastore ID of the datastore in which to ingest the document
Request body multipart/form-data
Response
Successful Response
Changes
- info
added the new optional request property
- info
- info
api tag
/datastores/{id}/documentsadded - info
api tag
/datastoresremoved
- info