Skip to content

Commit bde69a4

Browse files
committed
feat: conditionally resolve Qdrant and Milvus versions based on selected backend
1 parent e29a2bb commit bde69a4

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

bindings/python/examples/12_vector_search.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,10 +2216,12 @@ def main() -> None:
22162216
args.run_label = args.run_label.strip().replace("/", "-").replace(" ", "_")
22172217
if args.jvm_heap_fraction <= 0 or args.jvm_heap_fraction > 1:
22182218
parser.error("--jvm-heap-fraction must be > 0 and <= 1")
2219-
args.qdrant_image = resolve_qdrant_image(args.qdrant_image)
2220-
args.milvus_compose_version = resolve_milvus_compose_version(
2221-
args.milvus_compose_version
2222-
)
2219+
if args.backend == "qdrant":
2220+
args.qdrant_image = resolve_qdrant_image(args.qdrant_image)
2221+
if args.backend == "milvus":
2222+
args.milvus_compose_version = resolve_milvus_compose_version(
2223+
args.milvus_compose_version
2224+
)
22232225
if args.backend == "pgvector" and not args.docker_image:
22242226
args.docker_image = resolve_latest_pgvector_image()
22252227
configure_reproducibility(args.seed)

0 commit comments

Comments
 (0)