Artifacts
Artifacts
Ingest Content
Unified endpoint to ingest files, text, URIs, or already processed content
post/v1/artifacts/ingest
Request body
Example request
{
"artifact": "company_mission_statement",
"collection": "corporate_docs",
"input": {
"type": "text",
"value": "Our mission is to democratize access to artificial intelligence through secure, private, and user-controlled AI systems that respect data sovereignty and privacy."
},
"metadata": {
"author": "CEO",
"created_date": "2024-01-01",
"department": "Executive",
"file_name": "mission_statement.txt"
}
}Response
Content successfully ingested and processed
Example response
{
"data": [
{
"artifact": "quarterly_report_q1",
"doc_metadata": {
"department": "finance",
"file_name": "Q1_Report.pdf",
"page_number": 1,
"total_pages": 15
},
"object": "ingest.document"
}
],
"model": "private-gpt",
"object": "list"
}