Skip to content

fix: rename stale payloads: key in upload-config example, add hybrid example#154

Merged
generall merged 1 commit into
devfrom
fix/examples-fields-rename-and-hybrid-example
Jul 14, 2026
Merged

fix: rename stale payloads: key in upload-config example, add hybrid example#154
generall merged 1 commit into
devfrom
fix/examples-fields-rename-and-hybrid-example

Conversation

@generall

Copy link
Copy Markdown
Member

What

  • Fix examples/upload-config.yaml: it still used the payloads: key from before the payloadsfields rename (386995c), and since the config uses deny_unknown_fields the example failed to parse:
    collection: unknown field `payloads`, expected one of ..., `payload`, `fields` at line 54 column 3
    
  • Add examples/simple-hybrid.yaml: a minimal hybrid (dense + sparse) upload config — one 768-d dense vector with collection-level turbo-2bit quantization, one zipf-distributed sparse vector, and two payload fields.
  • Ignore /datasets/ in .gitignore — the default dataset download cache (BFB_DATASETS_DIR) previously showed up as untracked noise after running any dataset example.

Verification

All 7 files in examples/ were run against their respective subcommands (bfb upload/search/scroll --file … pointed at a dead port, so config parsing and validate() run fully); every one now parses cleanly. cargo test: 96 passed.

🤖 Generated with Claude Code

…d example

`examples/upload-config.yaml` still used the pre-386995c `payloads:` key,
which `deny_unknown_fields` rejects — the example failed to parse. Rename
it to `fields:`.

Add `examples/simple-hybrid.yaml`: a minimal dense + sparse collection
with turbo-2bit quantization and a couple of payload fields.

Also ignore `/datasets/`, the default dataset download cache.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@generall generall merged commit aa43c81 into dev Jul 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant