discover_products

discover_products

Find products using natural language. This tool uses AI-powered semantic search with vector embeddings to understand intent, not just keywords. A query like "something elegant for a night out" will match cocktail dresses, statement jewelry, and heeled sandals — even if those words don't appear in the product descriptions.

Parameters

ParameterTypeRequiredDefaultDescription
querystringYesNatural language search query — be descriptive for best results
categorystringNoProduct category
subcategorystringNoLowercase subcategory, e.g. dresses, sneakers, crossbody bags
colorsstring[]NoFilter by colors, e.g. ["black", "navy", "sage green"]
materialsstring[]NoFilter by materials, e.g. ["cotton", "silk", "leather"]
genderstringNowomen, men, unisex, or kids
occasionstringNocasual, formal, athletic, evening, business, outdoor, wedding, loungewear, or streetwear
seasonstringNospring, summer, fall, winter, or all-season
stylestringNoStyle filter (e.g. minimalist, streetwear, bohemian, classic)
silhouettestringNoSilhouette/fit filter (e.g. fitted, oversized, relaxed, tailored)
brandstringNoFilter by brand name
min_pricenumberNoMinimum price
max_pricenumberNoMaximum price
in_stock_onlybooleanNotrueOnly show in-stock products
store_idstringNoFilter by store
limitnumberNo10Max results to return

Response

Returns products ranked by semantic relevance:

[
  {
    "id": "665a1f...",
    "title": "Coastal Breeze Linen Dress",
    "summary": "A flowing linen midi in soft sage with subtle pleating...",
    "price": 178,
    "currency": "USD",
    "category": "Apparel",
    "subcategory": "dresses",
    "colors": ["sage green"],
    "materials": ["linen"],
    "gender": "women",
    "occasion": "casual",
    "season": "summer",
    "style": "bohemian",
    "silhouette": "relaxed",
    "inStock": true,
    "images": ["https://..."],
    "productUrl": "https://store.com/coastal-breeze",
    "brand": "Reformation",
    "relevanceScore": 0.92
  }
]

Response fields

FieldDescription
relevanceScoreSemantic similarity score (0–1) — how closely the product matches the query
colors / materialsAI-classified product attributes
gender / occasion / seasonAI-classified taxonomy fields
style / silhouetteAI-classified style and fit attributes
inStockCurrent availability

Examples

Descriptive natural language query with filters:

{
  "name": "discover_products",
  "arguments": {
    "query": "breathable linen dress for a beach wedding under $200",
    "occasion": "wedding",
    "max_price": 200
  }
}

Style-based search:

{
  "name": "discover_products",
  "arguments": {
    "query": "minimalist gold jewelry for everyday wear",
    "category": "Jewelry",
    "materials": ["gold"]
  }
}

Color and season filtering:

{
  "name": "discover_products",
  "arguments": {
    "query": "cozy oversized sweater for fall",
    "colors": ["cream", "camel", "burgundy"],
    "season": "fall"
  }
}

How it works

  1. Your query is embedded into a vector using Voyage AI's multimodal embedding model
  2. The vector is compared against pre-computed embeddings for every product in the catalog
  3. Qdrant returns the nearest neighbors, filtered by any structured parameters you provide
  4. Results are ranked by cosine similarity (the relevanceScore field)

When to use

Use discover_products for all product search. It handles both natural language ("something elegant for a cocktail party") and filter-driven requests ("sneakers under $150") — the semantic model understands intent either way.