Skip to content

Commit e29a2bb

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

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

bindings/python/examples/11_vector_index_build.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,10 +1931,12 @@ def main() -> None:
19311931
args.run_label = args.run_label.strip().replace("/", "-").replace(" ", "_")
19321932
if args.jvm_heap_fraction <= 0 or args.jvm_heap_fraction > 1:
19331933
parser.error("--jvm-heap-fraction must be > 0 and <= 1")
1934-
args.qdrant_image = resolve_qdrant_image(args.qdrant_image)
1935-
args.milvus_compose_version = resolve_milvus_compose_version(
1936-
args.milvus_compose_version
1937-
)
1934+
if args.backend == "qdrant":
1935+
args.qdrant_image = resolve_qdrant_image(args.qdrant_image)
1936+
if args.backend == "milvus":
1937+
args.milvus_compose_version = resolve_milvus_compose_version(
1938+
args.milvus_compose_version
1939+
)
19381940
if args.backend == "pgvector" and args.docker_image == "python:3.12-slim":
19391941
args.docker_image = resolve_latest_pgvector_image()
19401942
configure_reproducibility(args.seed)

0 commit comments

Comments
 (0)