mirror of
https://github.com/qdrant/qdrant.git
synced 2026-07-31 23:20:52 -05:00
* simplify edge config * Accept default vector config or explicit vector config map when creating `EdgeConfig` * fixup! Accept default vector config or explicit vector config map when creating `EdgeConfig` Update examples * upd tests * bump edge version to v0.5.0 --------- Co-authored-by: Roman Titov <ffuugoo@users.noreply.github.com>
30 lines
698 B
Python
Executable File
30 lines
698 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
from qdrant_edge import *
|
|
|
|
config = SegmentConfig(
|
|
vector_data = VectorDataConfig(
|
|
size = 128,
|
|
distance = Distance.Cosine,
|
|
index = HnswIndexConfig(
|
|
m = 16,
|
|
ef_construct = 16,
|
|
full_scan_threshold = 1024,
|
|
on_disk = False,
|
|
payload_m = 16,
|
|
inline_storage = False,
|
|
),
|
|
),
|
|
sparse_vector_data = {
|
|
"sparse": SparseVectorDataConfig(
|
|
index = SparseIndexConfig(
|
|
full_scan_threshold = 1024,
|
|
datatype = VectorStorageDatatype.Float32,
|
|
),
|
|
modifier = Modifier.Idf,
|
|
)
|
|
},
|
|
)
|
|
|
|
print(config)
|