Skip to content

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
# 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 ​

KeyTypeDefaultEnvironment variableFlag
version11nonenone
pagesfolder.DUCKDB_VECTORS_PAGESFOLDER of index
recursivebooleantruenone--recursive
databasefilevectors.duckdbDUCKDB_VECTORS_DATABASE--database
workfolder.duckdb-vectorsDUCKDB_VECTORS_WORK--work
top_kinteger20DUCKDB_VECTORS_TOP_K--top-k
embeddings.modelmodellocal:minishlab/potion-multilingual-128MDUCKDB_VECTORS_EMBEDDINGS--embeddings
tags.fieldslist of label: $.pathnoneDUCKDB_VECTORS_TAG_FIELDS--tag-field
tags.bm25booleanfalseDUCKDB_VECTORS_TAG_BM25--tag-bm25
annotation.modelmodelnoneDUCKDB_VECTORS_ANNOTATION_MODEL--model
annotation.write_tosidematter or frontmattersidematternone--write-to
annotation.workersinteger8none--workers
annotation.max_document_charsintegernonenone--max-document-chars
batch.bedrock_bucketS3 bucketnonenonenone
batch.bedrock_role_arnIAM role ARNnonenonenone

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.

SectionPrefixAttributesExtra
embeddingslocal:<model>nonenone (core install, through fastembed)
embeddingshuggingface:<repo>huggingface_tokennone
embeddingsbedrock:<model>bedrock_region, bedrock_profilebedrock
annotationbedrock:<model or inference profile>bedrock_region, bedrock_profilebedrock
annotationanthropic:<model>anthropic_api_key (default ${ANTHROPIC_API_KEY}), anthropic_base_urlanthropic
annotationopenai:<model>openai_api_key (default ${OPENAI_API_KEY}), openai_base_urlopenai
annotationfakenonenone

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-batch sends 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:

  1. the flag --manifest PATH, a manifest file or a folder that holds .duckdb-vectors.yaml;
  2. the variable DUCKDB_VECTORS_MANIFEST, with the same meaning;
  3. 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 config shows the origin of each value.

See also ​