Manifest
A manifest is the optional file .duckdb-vectors.yaml that holds the settings of one knowledge base, so that no command needs a flag. This page lists every key, and is the only place that does.
Knowledge base
A knowledge base is the union of two things: a folder of pages (Markdown and PDF files, with their sidematter files) and the database built from them. The manifest sits at the root of the knowledge base. Every key is optional, every path is relative to the folder of the manifest, and version: 1 is the only schema version. The manifest, the work folder and the database file are never indexed nor annotated, even when they sit under pages.
Example
# yaml-language-server: $schema=https://bernard357.github.io/duckdb-vectors/manifest.schema.json
version: 1
pages: . # folder of Markdown and PDF documents
recursive: true
database: vectors.duckdb
work: .duckdb-vectors # caches, questions, results, batch queue
top_k: 20
embeddings:
model: local:minishlab/potion-multilingual-128M
tags:
fields:
- "context: $.retrieval.context"
bm25: true
annotation:
model: bedrock:eu.anthropic.claude-haiku-4-5-20251001-v1:0
bedrock_region: ${AWS_REGION:-eu-central-1}
anthropic_api_key: ${ANTHROPIC_API_KEY} # ignored while the model is bedrock:
write_to: sidematter
workers: 8
max_document_chars: 12000
batch:
bedrock_bucket: ${BATCH_BUCKET}
bedrock_role_arn: ${BATCH_ROLE_ARN}duckdb-vectors init writes a commented version of this file, and duckdb-vectors config --schema prints its JSON Schema. The first line of the example lets an editor complete and check the file.
Keys
| Key | Type | Default | Environment variable | Flag |
|---|---|---|---|---|
version | 1 | 1 | none | none |
pages | folder | . | DUCKDB_VECTORS_PAGES | FOLDER of index |
recursive | boolean | true | none | --recursive |
database | file | vectors.duckdb | DUCKDB_VECTORS_DATABASE | --database |
work | folder | .duckdb-vectors | DUCKDB_VECTORS_WORK | --work |
top_k | integer | 20 | DUCKDB_VECTORS_TOP_K | --top-k |
embeddings.model | model | local:minishlab/potion-multilingual-128M | DUCKDB_VECTORS_EMBEDDINGS | --embeddings |
tags.fields | list of label: $.path | none | DUCKDB_VECTORS_TAG_FIELDS | --tag-field |
tags.bm25 | boolean | false | DUCKDB_VECTORS_TAG_BM25 | --tag-bm25 |
annotation.model | model | none | DUCKDB_VECTORS_ANNOTATION_MODEL | --model |
annotation.write_to | sidematter or frontmatter | sidematter | none | --write-to |
annotation.workers | integer | 8 | none | --workers |
annotation.max_document_chars | integer | none | none | --max-document-chars |
batch.bedrock_bucket | S3 bucket | none | none | none |
batch.bedrock_role_arn | IAM role ARN | none | none | none |
embeddings: local:… is a shorthand for embeddings: {model: local:…}. An unknown key, a wrong type or a version other than 1 fails with the key path and the file path. DUCKDB_VECTORS_LOCK_TIMEOUT, DUCKDB_VECTORS_VECTOR_SQL and DUCKDB_VECTORS_TEXT_SQL keep working and have no manifest key.
Models and provider attributes
embeddings.model and annotation.model are provider:model strings. The prefix selects the back-end. The attributes named <provider>_<attribute> in the same section go to that back-end only; the attributes of other providers are validated and ignored, so switching provider is a one-line change. duckdb-vectors config shows which attributes are active.
| Section | Prefix | Attributes | Extra |
|---|---|---|---|
embeddings | local:<model> | none | none (core install, through fastembed) |
embeddings | huggingface:<repo> | huggingface_token | none |
embeddings | bedrock:<model> | bedrock_region, bedrock_profile | bedrock |
annotation | bedrock:<model or inference profile> | bedrock_region, bedrock_profile | bedrock |
annotation | anthropic:<model> | anthropic_api_key (default ${ANTHROPIC_API_KEY}), anthropic_base_url | anthropic |
annotation | openai:<model> | openai_api_key (default ${OPENAI_API_KEY}), openai_base_url | openai |
annotation | fake | none | none |
openai_base_url reaches any OpenAI-compatible server: Azure OpenAI, OpenRouter, Mistral, Ollama, vLLM or LM Studio. fake is a deterministic stand-in with no network, for tests. The former fastembed: and hf: prefixes stay accepted as aliases of local: and huggingface:; see the embedders reference. Without annotation.model, annotate, generate-questions and judge-passages stop and explain how to configure one.
Batch
When the batch section is set, the commands that call Bedrock batch their own requests, with no separate command: the embeddings of index when embeddings.model starts with bedrock:, and the generation of annotate and judge-passages when annotation.model starts with bedrock:. Each run moves the work forward. It fetches the answers of completed jobs, answers what it can from all earlier answers, submits the requests still missing as new jobs and reports the jobs still running. It exits with status 3 until nothing is pending, then completes as an online run would. Running the same command again, by hand or from a scheduler, is the whole procedure, and status lists the jobs with their state.
--no-batchsends the requests online for one run.- A job takes the region of the model whose requests it holds.
- Bedrock refuses jobs under 100 records, so a command with fewer missing requests sends them online and says so.
- Batch jobs of other providers are not supported.
Variables and secrets
Any string value may hold ${VAR} or ${VAR:-default}, substituted from the environment when the manifest is loaded. $${ writes a literal ${, and the $. of tag specs is untouched. A missing variable with no default fails, naming the variable and the key, only when the back-end that uses it is active. A key ending in _api_key or _token accepts only a ${VAR} reference, never a literal, so that a committed manifest cannot carry a secret.
Discovery and precedence
The manifest is found from, in order:
- the flag
--manifest PATH, a manifest file or a folder that holds.duckdb-vectors.yaml; - the variable
DUCKDB_VECTORS_MANIFEST, with the same meaning; - a walk up from the current folder to the filesystem root, as git finds
.git. Without a manifest, every command behaves as it did before. The Python library and the MCP server accept a manifest but never search for one implicitly. A value resolves with the precedence flag >DUCKDB_VECTORS_*variable > manifest > default, so that containers and CI can override a manifest baked into an image or committed with the pages.duckdb-vectors configshows the origin of each value.
See also
- Configuration reference: the environment variables and the precedence rule.
- CLI reference: the commands that read the manifest.
- Embedders reference: the values of
embeddings.model. - Tags reference: the values of
tags.fields.