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
50 changes: 50 additions & 0 deletions examples/simple-hybrid-text.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Example bfb upload config for a simple hybrid (dense + full-text) collection:
# one 768-d dense vector with turbo-2bit quantization and one zipf-distributed
# text payload field with a full-text index (the BM25-side of the hybrid),
# plus a couple of payload fields to filter on.
#
# bfb upload --example simple-hybrid-text -n 1M -b 256 -p 16 -t 8 \
# --uri http://localhost:6334

collection:
name: benchmark
id: uuid
payload:
memory: cold

optimizers:
default_segment_number: 3

quantization:
type: turbo-2bit
memory: pinned

vectors:
- name: image
size: 768
distance: cosine
datatype: float32
memory: cold
source: random

fields:
- name: text
type: text
tokenizer: word
scoring: bm25 # rank by BM25 (Qdrant 1.19.3+); implies phrase matching
memory: cold
source:
type: random
vocab_size: 100000
min_length: 100
max_length: 100
distribution: zipf
- 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 }
5 changes: 5 additions & 0 deletions src/config/examples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ pub static EXAMPLES: &[Example] = &[
Upload,
"Hybrid collection: dense + sparse vectors and a few payload fields"
),
example!(
"simple-hybrid-text",
Upload,
"Hybrid collection: dense vector + full-text indexed field and a few payload fields"
),
example!(
"upload-dataset-config",
Upload,
Expand Down
Loading