Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.iml

# Local benchmark data & outputs
/datasets/
/tmp-data/
/logs/
*.fbin
Expand Down
47 changes: 47 additions & 0 deletions examples/simple-hybrid.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Example bfb upload config for a simple hybrid (dense + sparse) collection:
# one 768-d dense vector with turbo-2bit quantization and one zipf-distributed
# sparse vector, plus a couple of payload fields to filter on.
#
# bfb upload --file examples/simple-hybrid.yaml -n 1M -b 256 -p 16 -t 8 \
# --uri http://localhost:6334

collection:
name: benchmark
id: uuid
on_disk_payload: true

optimizers:
default_segment_number: 3

quantization:
type: turbo-2bit
always_ram: true

vectors:
- name: image
size: 768
distance: cosine
datatype: float32
on_disk: true
source: random

sparse_vectors:
- name: bm25
on_disk: true
source:
type: random
vocab_size: 100000
length: 100
distribution: zipf

fields:
- name: a
type: keyword
source:
type: random
cardinality: 10
values_per_point: 1
- name: b
type: float
source: { type: random, min: -1.0, max: 1.0 }

2 changes: 1 addition & 1 deletion examples/upload-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ collection:
length: 1000
distribution: zipf # uniform | zipf

payloads:
fields:
- name: color
type: keyword
source:
Expand Down
Loading