mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-03 00:20:57 -05:00
* amalgamate.py: replace `env!("CARGO_PKG_VERSION")`
Otherwise segment thinks it's v0.0.0 which breaks examples.
* Fix lib/edge/python/examples/repr.py
It it broken by d9393acac6 (#7933), which renamed `SegmentConfig` →
`EdgeConfig` and removed `index` parameter from `VectorDataConfig` by
hardcoding it to `Plain`.
Before:
$ python lib/edge/python/examples/repr.py
NameError: name 'SegmentConfig' is not defined
After:
$ python lib/edge/python/examples/repr.py
EdgeConfig(vector_data={"": VectorDataConfig(size=128, ...)}, ...)
* gitignore output of Rust edge examples
* Restore `lib/edge/python/examples/.gitignore`
I'm not sure why it's removed in 65312a1e82e6ae4d/#7522.
* Add `prepare_facet_snapshot.sh` for `facet_test.rs`
The script is based on steps mentioned in #8045.
* Remove `edge-cli.rs` example
It was added in 895318913afbad4a/#7140 and seems incomplete.
22 lines
467 B
Python
Executable File
22 lines
467 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
from qdrant_edge import *
|
|
|
|
config = EdgeConfig(
|
|
vector_data = VectorDataConfig(
|
|
size = 128,
|
|
distance = Distance.Cosine,
|
|
),
|
|
sparse_vector_data = {
|
|
"sparse": SparseVectorDataConfig(
|
|
index = SparseIndexConfig(
|
|
full_scan_threshold = 1024,
|
|
datatype = VectorStorageDatatype.Float32,
|
|
),
|
|
modifier = Modifier.Idf,
|
|
)
|
|
},
|
|
)
|
|
|
|
print(config)
|