Contact us

AI-Powered Marketplace Search Solution

Custom development of a PoC for a smart solution that finds products from natural-language queries, even when shoppers describe a need instead of naming an item

ABOUT the project

Client:
Leobit's Internal Project
Location:
Country flag

USA

Company Size:
200+ Employees
Industry:

Information Technology

Technologies:

Angular

Leobit developed a proof of concept for an AI-powered search that understands natural-language text and voice queries and returns products that match the shopper’s intent. The solution combines fast local filtering with an LLM that ranks only the shortlisted products and provides relevance score, as well as highlights the words that justify the match. It provides users with outputs based on both keyword search and intelligent AI search, along with explanations for each recommendation.

The regular marketplace item search is fully functional. It understands word forms, searches reviews, and suggests completions as you type. The demo examples show more than whether AI finds more or fewer results. They show that AI accounts for the meaning of the query. To make the difference between a standard query and a smart AI query clear to the user, we settled on a two-column layout. The gap between the columns shows exactly what understanding the meaning of a query looks like.

Olesia Kazanivska

Software Engineer at Leobit

Someone working

Customer

It was Leobit’s internal R&D project, aimed at strengthening our AI expertise and building a framework that can be reused across e-commerce projects.

Business Challenge

Shoppers rarely search the way catalogs describe products. They typically type a situation (“a gift for my mom’s birthday”) or a need (“something gentle for dry, sensitive skin”). Marketplace filters limit the criteria, and keyword search breaks when a description uses a synonym. A query like the skin example returns every product that contains the word “sensitive,” or nothing at all.

We decided to build a PoC to show that AI can understand what the shopper means while keeping the cost of each query low. We wanted the PoC tool to run regular search and AI search side by side on the same catalog to highlight the differences.

Project
in detail

Our R&D team built the solution over several weeks of part-time work. Some time was spent researching different AI models to power the solution’s core functionality.

Project in Detail

We planned the solution’s concept and designed a basic prototype with a test catalog, a basic interface, and a first version of AI search. After that, we came up with a vision of a hybrid search pipeline in which the LLM plans and reranks, and fast local retrieval sits in between. The model interprets the query first, local keyword and vector search then narrows the catalog, and the model evaluates only the shortlist. This keeps one query at a few thousand tokens instead of hundreds of thousands.

Our R&D specialists built an Angular front end with Tailwind CSS and connected it to an open model, gpt-oss-20b, through the OpenAI API. A server stores the API key. The model receives a standard chat request and returns JSON. Semantic search runs on the all-MiniLM-L6-v2 embedding model, which works in the browser through Transformers.js. The first prototype ran on the Beauty catalog of 1,227 products and 6,186 customer reviews. One of the biggest challenges here was the size of the catalog, which made searches too long. We configured the AI pipeline so the model decides where and how to search, reducing the catalog to a shortlist through local keyword and semantic search on each request.

We added a fallback local search with synonyms, a session cache, and a request queue so search keeps working when the AI provider is unavailable or a rate limit is hit. Separate scripts check search accuracy and score demo queries, so quality does not drop unnoticed after changes.

An image with hands
Mock up 1

Intelligent Search with Intent Understanding

The solution reads text and voice queries the way shoppers write them. “Ski trip” returns sunscreen and after-sun gels. “Without fragrance” returns unscented shampoos, not perfume. “SPF 30+” returns products from SPF 30 up, not tanning oil with SPF 4. The AI also searches customer reviews, so it accounts for who bought a product, how it smells, and whether it worked.

The interface runs both engines on the same query and shows the two result sets in parallel columns, keyword search on one side and AI search on the other. A keyword engine matches the words a shopper typed, while the AI matches what the shopper meant, so a query describing a need returns products whose descriptions never contain that wording.

Price, category, and product form in a query turn into filters automatically, without an LLM call. Highlights in each product card show which exact words and synonyms drove the match, so shoppers see why a product appeared.

MHD-2573 абстракція

Resource-Efficient AI Workflow

Each query runs in four steps. Code parses price, category, and form into filters. A short LLM call (about 600 tokens) picks the relevant categories and the words that describe such products. Local hybrid search, which combines keyword matching with semantic vector search, then cuts the 1,000+ product catalog to the 32 best candidates. A second LLM call (about 3 to 4 thousand tokens) reads their descriptions, specs, and review excerpts, and returns the products that fit, each with a score and an explanation.

The Journey
Behind Our Success

Team:
2 Software Engineers
1 UI/UX Designer
Phase 1
Phase 2
Phase 3

Project planning

Developing a simple prototype

Designing a hybrid search pipeline

Building the solution's front end

Configuring model connectivity with OpenAI API

Integration with a live Beauty catalog

Additional configurations to the model

Tool validation and optimization

Technology Solutions

  • Hybrid search pipeline with rule-based query parsing, an LLM search plan, local keyword and semantic vector retrieval, and LLM reranking with explanations
  • In-browser semantic search with the all-MiniLM-L6-v2 embedding model through Transformers.js
  • The approach that works with any AI vendor, from OpenAI, Azure OpenAI, Claude, Gemini, and Groq to a self-hosted model, because switching only means adapting a small connection layer while the search logic stays the same
  • Resilience layer with local synonym search as a fallback, session caching, and request queuing, plus scripts that check search accuracy after every change

Value Delivered

  • Fewer empty and irrelevant search results, which means fewer shoppers leaving without a product
  • Better visibility for long-tail products described in different words than shoppers use, with reviews powering search without manual catalog tagging
  • Controlled search cost through a capped shortlist per LLM query, session caching, and a provider chosen to fit the budget