Skip to main content

S1. Natural-Language Semantic Search (AMWAY)

Published 2026-05-14Updated 2026-06-303 min read

1. URL & Personasโ€‹

  • /semantic-search ยท P1 (ABO Field), P2 (Insights), P5 (Compliance)

2. User Storiesโ€‹

  • P1: "Vegan protein + new ABO in their 30s + no active subscription" โ†’ instant ABO recommendations
  • P5: "Review Nutrilite ad language + SKUs with minor risk" โ†’ regulatory guard list

3. Input UIโ€‹

  • Natural-language input box (multilingual support)
  • Filters: category (Nutrition / Beauty / Home), brand, ABO level, country, price
  • Persona switcher

4. Data Mixโ€‹

DataSourceUse
In-house SKUsOpenSearch idx_productBM25 + KNN
ABO profileOpenSearch idx_aboKNN
In-house reviewsOpenSearch idx_reviewBM25 + KNN
External social postsOpenSearch idx_social_trend (Reddit ยท Instagram ยท X)KNN (multilingual)
Regulatory textOpenSearch idx_regulationBM25 (P5 only)
KG 1-hopNeptune (ABO ร— Product ร— Brand ร— BU)Graph expansion

5. Processing Pipelineโ€‹

  1. Input โ†’ Cohere embed-v4
  2. OpenSearch in parallel: BM25 + KNN โ†’ top 100/100
  3. RRF fusion โ†’ top 50
  4. Cohere rerank-v3.5 (cohere.rerank-v3-5:0) โ†’ top 20
  5. Neptune 1-hop expansion (ABO / SKU nodes)
  6. Result cards + graph

6. Output UIโ€‹

  • Three columns: SKU cards / ABO ยท Customer cards / external review cards
  • 1-hop KG (cytoscape.js)
  • Cohort badge: ๐ŸŸข real / ๐ŸŸก synth / ๐Ÿ”ต external
  • Result count + response time

7. Per-department Variationsโ€‹

PersonaSuggested Query
P1"Diamond candidate ABO recommendations"
P2"Emerging vegan trends matched to in-house SKUs"
P3"Review embedding drift"
P4"Subscription churn risk + similar ABOs"
P5"SKUs with ad-language risk"

8. Guardrailsโ€‹

  • PII masking (ABO and customer names and contacts)
  • Block nutritional supplement and beauty marketing to suspected minors
  • Cite external review sources

9. Demo Scenariosโ€‹

  1. "Vegan protein + 30s + Instagram +20%" โ†’ Nutrilite Plant Protein + reviews
  2. "Diamond-level candidate ABOs" โ†’ ABO + tree (linked to S9-A)
  3. "Artistry ad-language review" โ†’ SKU + regulatory risk markers