fix: rename stale payloads: key in upload-config example, add hybrid example#154
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
examples/upload-config.yaml: it still used thepayloads:key from before thepayloads→fieldsrename (386995c), and since the config usesdeny_unknown_fieldsthe example failed to parse: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./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 andvalidate()run fully); every one now parses cleanly.cargo test: 96 passed.🤖 Generated with Claude Code