Ingest Content

Unified endpoint to ingest files, text, URIs, or already processed content

Request

This endpoint expects an object.
artifactstringRequired=1 character
Unique identifier for the text being ingested within the collection
inputobjectRequired

Raw input data to be processed and ingested into the system. Can be a file (base64), URI, or plain text

collectionstringOptional=1 characterDefaults to pgpt_collection
Collection name to group related documents for better organization and filtering
metadatamap from strings to anyOptional

Optional metadata dictionary containing additional document information. If provided, must include ‘file_name’ with a valid file extension

Response

This endpoint returns an object.
datalist of objects
List of ingested documents with their metadata and processing information
object"list"
Response object type, always 'list' for ingestion responses
model"private-gpt"

Model identifier, always ‘private-gpt’

Errors

401
Unauthorized
422
Unprocessable Entity