filtered-search

Enforce scalar field filters on Milvus vector searches.

3|2|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/zilliztech/milvus-marketplace --skill filtered-search
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: filtered-search
Source: https://github.com/zilliztech/milvus-marketplace/tree/main/plugins/retrieval-system/skills/filtered-search
Command: npx skills add https://github.com/zilliztech/milvus-marketplace --skill filtered-search

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables precise vector search by applying scalar field filters, allowing you to constrain results based on metadata such as category, price, date, or tags.

Core Features & Use Cases

  • Attribute filtering: Combine text similarity with exact matches on indexed fields to narrow results.
  • Faceted search workflows: Support category hierarchies and multi-field constraints for e-commerce or knowledge-base applications.
  • Efficient filtering strategy guidance: Pre-filter before vector search to improve latency and relevance in large datasets.

Quick Start

To start, configure a filtered search on your Milvus collection, then run a query like "wireless headphones" with category="Electronics" and price<= 100 to retrieve top matches.

Frequently Asked Questions about filtered-search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I filter vector search results by metadata in Milvus?

Filtered search in Milvus applies scalar field constraints before or alongside vector similarity matching. Configure attribute filters on indexed fields like category, price, or date, then run your query to retrieve semantically relevant results that also satisfy your metadata conditions.

What's the best way to combine text similarity with exact attribute matches?

Pre-filter scalar fields before executing vector search to enforce constraints while maintaining relevance ranking. This approach improves latency and result quality by narrowing the search space to records matching your metadata criteria first.

Can I use faceted search with vector embeddings in Milvus?

Yes. Filtered search supports multi-field constraints and category hierarchies, enabling faceted workflows where you combine vector similarity with filters across multiple metadata dimensions simultaneously.

When should I apply filtering before vector search instead of after?

Pre-filtering is more efficient in large datasets because it reduces the number of vectors to compare before ranking. Filter first on scalar fields to constrain results, then execute vector search on the filtered subset for faster latency and better relevance.

Does filtered search support array fields and range operators?

Filtered search enforces common comparison operators and supports array checks on scalar fields, allowing you to match tags, lists, and range-based constraints like price ranges or date windows.

How does metadata filtering improve search relevance in e-commerce or knowledge bases?

Filtering by attributes like product category, price tier, or document type ensures results are both semantically similar and contextually appropriate. This combination eliminates irrelevant matches and narrows results to your exact domain or business constraints.