Ingestion
Documents are ingested through /v1/artifacts/ingest. Once ingested they are chunked, embedded, and stored in the vector store for retrieval.
Ingest a file
The endpoint takes JSON. Send the file as base64, and give it an artifact ID and a collection:
macOS / Linux
Windows (PowerShell)
Plain text can be sent directly with "input": {"type": "text", "value": "..."}.
List ingested documents
Delete a document
Wipe all local data
This deletes everything under PGPT_HOME/local_data/ (default ~/.local/share/private-gpt/local_data/) including the vector store. It cannot be undone.
Bulk local ingestion
To ingest an entire folder from the command line, enable local ingestion in your settings:
Then run:
Watch mode (re-ingest on file changes):
Supported file formats
PrivateGPT handles plain text natively. The following formats are also supported with built-in parsers:
.pdf · .docx · .pptx · .ppt · .pptm · .hwp · .epub · .md · .csv · .json · .ipynb · .mbox · .jpg · .jpeg · .png · .mp3 · .mp4
Any other file type is read as plain text.

