Repository navigation
feat(retrieval): add Milvus ANN benchmarking - #546
Open
lewellin727 wants to merge 12 commits into
Open
lewellin727 wants to merge 12 commits into
lewellin727 wants to merge 12 commits into
Conversation
Register ANN datasource, dataset and converter components with lazy HDF5 access and configurable caching. Add a cache-dir loading example, configuration documentation and offline validation for SIFT1M. Preserve the existing MTEB retrieval flow.
Add backend-neutral import records and receipts, ANN batch previews, and injectable vector query execution with per-attempt JSONL output. Generalize SearchClient for typed vector queries while preserving text search behavior. Keep live Milvus import and search as explicit TODO placeholders. Rename benchmark examples to Milvus_benchmark and cover batching, timing, errors, and output protection with offline tests.
Add pure ANN quality and aggregation helpers with nearest-rank latency summaries. Evaluate saved vector-query JSONL against cached ANN-Benchmarks top-ten ground truth and write per-query and aggregate reports. Cover invalid result slots, failed-attempt denominators, offline cache reuse, and report collisions including dangling symlinks. Leave QPS and evaluation modularization as TODOs.
Implement injected-client import and search adapters with receipt validation, protobuf ID support, and timeout normalization. Wire runtime connection parameters into the examples and add a complete import and readback check with batch and summary reports. Validate with 269 regression tests and a live 100-vector SIFT1M import with exact float32 readback. Keep local configuration and experiment artifacts outside tracked source.
Replace ANN download and cache configuration with the Local/S3 HDF5 pipeline. Keep ANN field mapping and ground-truth validation in the benchmark examples. Group the HDF5 input helper under the numbered data-loading stage and update example, test, and documentation paths.
Reuse InputArgs for HDF5 sources and make array keys, dataset labels, and evaluation metrics configurable. Infer K from the query log and allow latency and request metrics without reopening HDF5.
Read local HDF5 inputs through the existing file loop while validating single-file inputs before traversal. Restore the S3 loader docstring structure and document its return values.
Map existing Milvus connection, top-K, and output options to Dingo InputArgs while preserving CLI flags, query logs, and report formats.
Document generic HDF5 reading alongside other dataset formats, place the Milvus benchmark instructions next to the examples, and complete the directory tree.
Add the repository root to the two ANN test modules before resolving examples, and skip HDF5-dependent tests before importing the benchmark helper.
Reuse source file enumeration to read matching HDF5 files in order and release each file before moving to the next. Support multi-file previews and keep Milvus import, query, and evaluation inputs single-file.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
一、改动概述
新增 Milvus 向量检索评测流程:读取 HDF5 → 批量导入 → Top-K 查询 → 离线评测
二、主要修改
InputArgs,支持从本地或 S3 读取已有 HDF5 文件examples/milvus_benchmark/README.md,现有文本检索和 MTEB 流程保持原样三、验证
dev后,764 项相关测试通过,覆盖向量评测及上游本次更新的规则1,000,000 × 128Recall@20 = 1.0四、已知限制