How-toSelected

Milvus hybrid retrieval pipeline for question-bank search

Why we picked it

The design goes beyond vector-only search: it pairs semantic and lexical matching under explicit teaching constraints, which is the non-obvious part most RAG-style question-retrieval setups miss. Developers building search over structured content libraries can copy the hybrid retrieval plus rerank pattern directly. It contrasts with pure full-text retrieval, which fails on reworded questions testing the same concept.

Milvus shared a five-step architecture for searching large educational question banks.

Body

The pipeline combines education-tuned embeddings for semantic matching with Milvus's built-in BM25 keyword search, plus scalar filtering on metadata like course, difficulty and concepts.

Indexing uses HNSW/COSINE for dense vectors, sparse indexes for BM25, and scalar indexes for filtering.Results are merged with WeightedRanker or RRFRanker and reranked by a Cross-Encoder for test assembly, mistake-based review recommendations and question search.

Original · Milvus

Millions of questions. How does Milvus help find the right one? Traditional full-text retrieval finds questions through the words they contain. In a growing question bank, students and teachers also need questions that test similar concepts with different wording and fit the intended curriculum and difficulty level. To support these needs, this Milvus-based architecture combines semantic retrieval, BM25 keyword search, and scalar filtering in a five-step pipeline: 1. Data collection and cleaning. Collect question text, explanations, and metadata; standardize fields such as course, education level, concepts, and difficulty. 2. Vectorization. Use education-tuned embeddings for semantic matching and Milvus’s built-in BM25 function for keyword retrieval. 3. Hybrid index construction. Create HNSW/COSINE indexes for dense vectors, sparse indexes for BM25, and scalar indexes for metadata filtering. 4. Hybrid retrieval. Combine semantic and keyword search under metadata constraints, then merge results with WeightedRanker or RRFRanker. 5. Reranking and output. Use a Cross-Encoder to rerank candidates for test assembly, mistake-based review recommendations, and search by question. The design pairs semantic matching with lexical relevance and explicit teaching constraints, helping students and teachers find questions suited to their learning tasks. #Milvus #EdTech

Industry Coordinates & Source Verification

This report is categorized under AITOP's "How-to" desk, focusing on China's AI industry and domestic foundation model ecosystem. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Milvus, BM25, RAG, vector search.

Source attribution: curated from Milvus (@milvusio).