Skip to content
All projects

Semantic search and product recommendations in a home goods store

Project write-up

The client is described by industry and scale, without a name. KPI figures are targets agreed with the client after a baseline measurement.

In brief

Problem
Customers search descriptively (“table for a small balcony”), and a keyword-based search engine returns poor results.
Approach
We combine keyword search with semantic search (hybrid), and the ranking takes availability and margin into account.
Goal
Conversion on the key path: an increase over the baseline, target set after the baseline measurement; API p99 latency: ≤ 300 ms.

Client context

Online retail runs on the rhythm of campaigns and seasonal peaks: Black Friday, the holidays, sales. An outage at the peak means lost revenue that cannot be recovered. The client is an online store with several tens of thousands of home and garden products.

Challenge

Customers search descriptively (“table for a small balcony”), and a keyword-based search engine returns poor results. Recommendations are a simple “customers also bought”.

Requirements and constraints

  • The Omnibus Directive and the Polish act on price information require showing the lowest price from the 30 days before a discount, and disclosing how reviews are verified and whether the seller is a business. The pricing engine and the catalog must store price history. (source)
  • GDPR, that is Regulation (EU) 2016/679, requires data minimization, a legal basis for processing, and processing agreements, and for high-risk processing also a data protection impact assessment (DPIA). In practice it rules out copying production data into test environments without anonymization or pseudonymization. (source)
  • The AI Act, that is Regulation (EU) 2024/1689, introduces obligations that depend on the risk category of an AI system: transparency toward users, human oversight, technical documentation, and event logging. Systems that affect creditworthiness or employment may fall into the high-risk category. (source)
  • Project constraints: work only on anonymized or synthetic data outside production, access to systems through the client's infrastructure, and every deliverable shipped with documentation that the client's team can take over.

Approach and architecture

We start an AI project with the business question and the cost of error: what happens when the model is wrong in one direction or the other. Only then do we choose the method. A simpler, explainable model often beats a deep network. We work in an MLOps cycle: data and model versioning, validation on data from a different period than training, drift monitoring, and a path for rolling a model back to rules.

We combine keyword search with semantic search (hybrid), and the ranking takes availability and margin into account. Recommendations are based on product similarity and sessions. Every change is A/B tested.

Key elements of the solution:

  • A hybrid index (keyword and vector)
  • Ranking with business rules
  • Session-based recommendations
  • A/B tests for every change

Team and roles

RoleCountResponsibility
Data scientist1models, validation, explainability
MLOps engineer1model deployment, drift monitoring, versioning
Python developer1services, integrations, processing scripts
Data engineer1pipelines, data model, data quality tests
Product owner and domain experts (client side)as neededpriorities, business decisions, acceptance

Phased schedule

PhaseWeeksDeliverable
1. Problem and data definition1–2problem card, data analysis
2. Prototype and offline evaluation3–6baseline model, metrics
3. Pilot with users7–10pilot, evaluation report
4. Production and MLOps11–14pipeline, monitoring, documentation
5. Review and roadmap15–16report, backlog

Technology stack

OpenSearch with vector search, embedding models, Python, Kafka, an A/B testing tool.

Risks and how we mitigate them

RiskHow we mitigate it
Data drift and declining model qualitydistribution monitoring, alerts, periodic validation, and a path back to rules
Processing of especially sensitive dataa DPIA before the start, pseudonymization, role-based access, logging of reads
Uncontrolled growth of cloud costsbudgets and alerts, tagging, a weekly FinOps review, reservations once the load has stabilized

Measurable goals and KPIs

The values below are targets that we agree with the client after a baseline measurement in the first phase.

KPITargetHow it is measured
Conversion on the key pathan increase over the baseline, target set after the baseline measurementproduct analytics, A/B tests
API p99 latency≤ 300 msAPM

Lessons learned and good practices

Hybrid search combines the precision of keywords with an understanding of intent. Without A/B tests you cannot tell whether a change helped or just looks better. A simple model that works in production is worth more than the best model in a notebook.

Why DYNAMINDS Labs

DYNAMINDS Labs is the R&D division of B2B.net S.A. On the Elevate platform, our external IT department model, we deploy AI Workers that organize data and take over repetitive work. Every step is a separate ticket with a price and a deadline within 24 hours, and payment follows acceptance. The diagnosis is free of charge.

Acceptance criteria

Each phase ends with a formal acceptance against criteria agreed at the start. In this implementation, acceptance covers: problem card, data analysis; baseline model, metrics; pilot, evaluation report; pipeline, monitoring, documentation; report, backlog. Final acceptance requires a KPI measurement report against the baseline, complete documentation handed over to the client's team, and a list of recommendations for the next stage, with a cost and risk assessment for each.

Next step

Submit your first request in Elevate in your own words. You will get a price and a deadline within 24 hours, and you pay after acceptance. Contact: office@b2bnetwork.pl.

Start with one task.

Describe it in your own words. We start with a free diagnosis and reply within 24 hours.

Meet DYNAMINDS Labs

B2Bnetwork · B2B.net S.A. · accredited exam center. We describe clients by industry and scale, without names.

More projects: E-commerce