veryfront knowledge ingest is the primary CLI workflow for getting documents
into a project's knowledge base. It finds a source file, parses it, and writes
generated Markdown back into the project. Generated and imported concept documents
are indexed automatically with searchable chunks and embeddings tied to the
published canonical file version. Imported bytes, metadata, and authored links
remain intact. Reserved index/log documents and referenced companion artifacts
are preserved without becoming searchable concepts.
Indexing uses the existing Cloud embedding default, including
VERYFRONT_DEFAULT_EMBEDDING_MODEL overrides. A missing provider credential,
provider failure, or stale-version conflict fails that source instead of reporting
it ready. Failed-source results retain the canonical publication receipt so you
can inspect the persisted document and retry. A source is successful only after
its complete index commits on the destination branch.
Atomic indexing accepts at most 500 chunks and a 10 MiB request. Larger indexes fail with a useful error; split the source into smaller documents and retry. Content is never truncated to fit the limit.
Ingest one uploaded file:
veryfront knowledge ingest uploads/contracts/q1.pdf --jsonIngest an exact list of uploaded files:
veryfront knowledge ingest uploads/contracts/a.pdf uploads/contracts/b.pdf uploads/contracts/c.pdf --jsonStudio knowledge-ingest runs write generated files to their admitted preview branch. Main-branch runs keep writing to main. The destination comes from the signed run target, not ingestion task configuration. Select main or a preview branch for knowledge ingestion. Environment-target runs fail before ingestion starts.
Select the destination branch
CLI ingestion writes to main when --branch is omitted. Select an existing
preview branch with --branch or -b:
veryfront knowledge ingest ./contracts/q1.pdf --project my-project --branch review-contracts --jsonThe branch must already exist. An unknown branch fails instead of falling back
to main. The selector applies to every generated file, including documents and
companions imported with --okf-bundle:
veryfront knowledge ingest --path ./bundle --all --okf-bundle --project my-project -b review-contracts --jsonPrerequisites
Authenticate with the CLI and set the target project:
export VERYFRONT_API_TOKEN=<TOKEN>export VERYFRONT_PROJECT_SLUG=my-projectOr log in interactively:
veryfront loginveryfront knowledge ingest parses PDF, Office, EPUB, HTML, and RTF sources
through the built-in Kreuzberg document extension. Plain text, Markdown, JSON,
CSV, TSV, and common code files are converted directly by the CLI.
Import an OKF bundle
Preserve an existing bundle rather than converting its documents:
veryfront knowledge ingest --path ./bundle --all --okf-bundleBundle mode requires an explicit root and --all; it does not accept positional
sources. Documents retain their metadata, Markdown, links and relative paths,
including files in hidden directories. Bundle walks skip node_modules and VCS
metadata directories (.git, .hg, .svn, and .bzr). Document envelopes are validated before
upload. A root index envelope declares only okf_version; nested indexes contain no frontmatter.
Referenced resource, source, computation, executor and attester companions are preserved with
their relative paths, regardless of filename extension. Unreferenced viewer artifacts are excluded.
Companion references are resolved relative to the referencing document when that file exists.
Leading-slash references resolve from the bundle root.
For legacy bundles whose nested documents use root bundle paths without a leading slash, bundle mode preserves the existing root file when no document-relative file exists. This compatibility behavior preserves bytes during ingestion and does not rewrite OKF graph semantics.
Project pull writes referenced UTF-8 companions returned for a branch proof without adding their extensions to ordinary push or prune source sync.
Referenced non-text binary companions use immutable raw-byte asset storage. Each asset is limited to 8 MiB.
Publication resolves the selected branch name or UUID, then sends a SHA-256 digest and an absent-file precondition.
A retry reuses an existing binary asset only after verifying its exact scoped path, immutable version, digest and bytes. Different content produces a conflict; ingestion does not overwrite it or blindly repeat an ambiguous write.
Asset edits require the expected current version UUID. This capability requires a compatible API release.
Referenced Markdown companions preserve their bytes even when their contents resemble
malformed YAML frontmatter. Successfully parsed OKF type or version declarations and reserved index/log
files retain document validation and classification. Unreferenced Markdown remains subject to document
diagnostics.
IDs, labels and descriptions in companion objects remain metadata;
only their path and resource fields reference files. The same rules apply to a bundle under uploads/....
Markdown documents and existing text companion formats (including code, JSON, YAML, CSV, XML and notebooks) must be valid UTF-8 and retain their authored bytes through text publication. UTF-8 extensionless executors also use text storage. Invalid UTF-8 in these referenced files fails preflight before bundle publication. Other companions retain raw bytes. Mixed binary bundles are parsed completely before their first publication. Custom --knowledge-path destinations use the same portable project path validation and scoped binary publication.
Binary assets do not use ordinary text project uploads. Native bundle export verifies scoped immutable
versions and content digests before returning bytes; source-only project pull retains its existing scope.
Ordinary conversion retains its informational source
field and records standardized provenance only when a usable absolute HTTP(S)
source URL is available.
Single-file examples
Ingest a remote upload
Use uploads/... to reference a file from the project's remote uploads store:
veryfront knowledge ingest uploads/contracts/q1.pdf --jsonIngest a local file
Use a local path to ingest a file that already exists on disk:
veryfront knowledge ingest ./contracts/q1.pdf --jsonInside a sandbox, use a local relative path when the upload is already present in the workspace:
veryfront knowledge ingest ./uploads/contracts/q1.pdf --jsonExact-file batch ingestion
To ingest a specific list of files without ingesting the entire folder:
veryfront knowledge ingest uploads/contracts/a.pdf uploads/contracts/b.pdf uploads/contracts/c.pdf --jsonThe command preserves input order in the JSON ingested array. Agent workflows
can match each output back to the original source path.
Batch ingestion
To ingest every supported file under a remote uploads prefix:
veryfront knowledge ingest --path uploads/contracts --all --jsonTo recurse through a local directory:
veryfront knowledge ingest --path ./contracts --all --recursive --jsonEach source document becomes its own markdown file in the project knowledge tree.
Use --path ... --all only when you want everything under that uploads prefix
or local directory. For an exact file list, pass the file paths as positional
arguments instead.
What the JSON output looks like
With --json, the command returns a machine-readable run result with
ingested, skipped, and failed arrays:
{ "kind": "knowledge_ingest", "version": 1, "metadata": { "requested_count": 1, "source_mode": "explicit_sources", "knowledge_path": "knowledge", "okf_bundle": false, "pending_acceptance": [] }, "summary": { "requested_count": 1, "ingested_count": 1, "skipped_count": 0, "failed_count": 0 }, "ingested": [ { "source": "uploads/demo/notes.txt", "localSourcePath": "<LOCAL_SOURCE_PATH>", "outputPath": "<OUTPUT_PATH>", "remotePath": "knowledge/demo-notes.md", "slug": "demo-notes", "sourceType": "txt", "summary": "Converted document to markdown (87 chars).", "stats": { "characters": 87, "lines": 3 }, "warnings": [] } ], "skipped": [], "failed": []}The exact stats shape varies by source type, but the top-level result fields
are stable.
metadata.okf_bundle is true when you use --okf-bundle; otherwise it is
false. metadata.pending_acceptance lists acceptance checks that the command
does not verify. It is empty for ordinary ingestion. In bundle mode, it contains
job_retry_idempotence, derived_link_index, provider_file_flow, and
full_okf_import_export_roundtrip. A successful ingestion result does not prove
that those checks passed.
Path rules
The source path determines how the command behaves:
uploads/...means a remote project upload./uploads/...means a local file or directory relative to the current working directory- multiple explicit sources are passed as positional arguments:
veryfront knowledge ingest <source...> --json
That distinction matters because uploads/... triggers the remote upload
download step, while local paths skip it.
Supported file types
veryfront knowledge ingest supports these source formats:
pdfcsvtsvdocxxlsxxlspptxhtmlhtmtxtjsonmdmdx
Troubleshooting
Unknown command: knowledge
Your installed CLI is older than the branch or release that added the command. Update the CLI or run the current source tree directly with:
cd veryfront-codedeno run -A cli/main.ts knowledge ingest uploads/contracts/q1.pdf --jsonMissing API token
Set VERYFRONT_API_TOKEN, run veryfront login, or use a local CLI config with
a saved token.
Could not determine project slug
Set VERYFRONT_PROJECT_SLUG or pass the project explicitly:
veryfront knowledge ingest uploads/contracts/q1.pdf --project my-project --jsonDocument extraction errors
Use a supported document type and ensure the source file is readable. Rich document formats use the built-in Kreuzberg extension, while text-like formats are converted directly by the CLI.
Verify it worked
After ingesting a source, the command writes one or more markdown files under
the project's knowledge/ directory:
ls knowledge/A working ingestion lists the new knowledge/<name>.md entry. Open the
generated markdown and confirm the parsed content matches the original.
For automation, capture the JSON output of the command directly:
veryfront knowledge ingest uploads/sample.pdf --json | jq '.ingested'The ingested array names every file the command wrote. If the array is empty
or the command exited non-zero, check skipped, failed, and the command
output for the reason.
Next, use Project knowledge to search the generated paths and frontmatter, retrieve an exact Markdown document, or index the files for semantic retrieval.