Reference

Add documents

Adds one or more documents to a corpus and builds them, skipping any file already processed unchanged.
admin.dataSources.addDocument({ slug, filename, content, metadata? })

Adds one or more documents to a corpus and builds them, extracting, chunking, and embedding each. Re-adding an unchanged file is free: no upload and no re-embedding, so an ingest script is safe to re-run. --wait blocks until processing finishes so you can search right after, and re-adding with different metadata updates the tags in place.

Parameters
--source
string
Corpus slug. Defaults to "default", created on first use.
--metadata
k=v,...
Scalar tags for search-time filtering, up to 16 keys.
--wait
flag
Block until processing finishes, so you can search immediately. Exits non-zero on failure.
CLI
remy-admin datasources add --source policies --metadata department=legal,year=2026 --wait contract.pdf