Product retrieval becomes more complicated when shoppers describe what they want instead of searching for a specific item. A request for a linen shirt for an outdoor wedding under $100 requires a system to understand the occasion, identify suitable products, and check whether those products meet the shopper’s needs.
Even when a search system understands the request, the underlying catalog can create problems. One shirt might be a good match but unavailable in the requested size or another might meet every requirement except that it exceeds the budget. Product descriptions may also be missing details that would help determine whether an item is appropriate for the occasion.
Retrieval-augmented generation (RAG) offers a way to connect AI models to external product information so they can work with relevant catalog records when generating responses. For ecommerce, the effectiveness of that approach depends on how products are represented in the catalog and how accurately the retrieval system identifies suitable matches.
How RAG works for ecommerce product retrieval
A language model learns patterns from its training data, but that training doesn't give it a continuously updated view of a retailer's catalog. RAG adds a retrieval step: the system finds information relevant to a request, supplies that information to the model, and then asks the model to generate a response using it.
The approach emerged from research published in 2020 and is now used in applications ranging from customer support to enterprise search. For ecommerce, RAG allows AI applications to work with current product information without retraining the underlying model whenever a catalog changes.
In a typical product catalog RAG workflow, the retrieval system searches for relevant products, checks the shopper's requirements, and returns catalog records to the language model. For the linen shirt request, this means identifying suitable products under $100 that are available in the requested size. The model can then generate recommendations supported by those records.
Retailers can also use retrieval-augmented product search to improve how customers find products through traditional search interfaces. Media platforms can use product retrieval to connect content with relevant catalog items.
In 2024, Amazon Search researchers published ProductRAG, a research framework that retrieves products and uses their metadata to generate search autocomplete suggestions. The research demonstrates how product information can support search experiences without requiring a conversational interface.
Hybrid search for RAG: semantic, keyword, and filters
Product retrieval introduces requirements that don't always arise when an AI system answers questions from documents. A relevant product must satisfy the shopper's stated requirements, which may include exact constraints alongside more subjective preferences.
Developers can address these requirements by combining retrieval techniques. Semantic search helps identify products that match the meaning of a request, while keyword search preserves exact brand names or product identifiers. Structured filters can enforce requirements such as price and size.
This combination is commonly described as hybrid search, although implementations vary in how they combine search methods and apply filters.
Returning to the linen shirt example, the retrieval process could work as follows:
- Semantic search identifies suitable products. A request for an outdoor wedding can be associated with breathable material such as linen and colors appropriate for a summer event. This allows the system to retrieve relevant shirts even when their product titles do not contain the words “outdoor wedding.”
- Structured filters enforce the budget. The system checks product prices against the shopper’s $100 limit. A shirt priced at $150 should be excluded regardless of how closely its description matches the occasion.
- Variant-level inventory checks confirm availability. A shirt may be available in medium but sold out in large. If the shopper requests a large, the system needs to check that specific variant before returning the product as an available option.
These checks can be performed at different points in the retrieval process, depending on the architecture. Some systems apply filters before semantic retrieval, while others retrieve candidates and then filter or rerank them.
The order matters because a system that retrieves only a small set of products before applying strict filters may discard every candidate, even when suitable products exist elsewhere in the catalog.
Why product data quality decides RAG results
Retrieval quality depends on the information available in the product catalog. Retailers may describe similar materials or colors differently or organize product variants inconsistently.
A product title “Men’s summer button-down” might be made entirely of linen, but a retrieval system cannot reliably filter by material if that information is missing from the record. Another retailer might describe the same material as “linen fabric” or “100% flax linen.”
Normalizing these records gives retrieval systems a more consistent basis for matching products. Product data enrichment can also help make attributes explicit when the necessary information is available from source records or other supported inputs.
For example, an incomplete supplier record might look like this:
{
"title": "Men's summer shirt",
"description": "Lightweight sand button-down",
"price": 89.00,
"sizes": ["M", "L"]
}The title provides limited information about the material or intended occasion. The size list also does not indicate whether either variant is currently available.
An illustrative normalized record could look like this:
{
"title": "Men's linen button-down shirt",
"attributes": {
"material": "100% linen",
"color": "sand",
"occasion": ["wedding", "summer"]
},
"price": {
"amount": 89.00,
"currency": "USD"
},
"variants": [
{"size": "M", "in_stock": true},
{"size": "L", "in_stock": false}
]
}The normalized record identifies the material, price and availability by size, which allows the system to exclude the unavailable large variant. Attributes such as material must come from verified product information rather than assumptions based on the description.
This becomes more complicated when products come from multiple retailers. Similar items may use different naming conventions or category structures, so product matching across retailers requires systems to identify equivalent or comparable items without losing the differences that affect purchasing decisions.
Price and inventory information also need to stay current. Normalizing a catalog once does not guarantee that a product remains available or that its listed price is accurate. Applications need a way to retrieve updated information or verify relevant fields before presenting a recommendation.
Multimodal RAG: retrieving products from images and video
Product discovery doesn't always begin with a text query. Someone might see a shirt in a photograph or notice an outfit while watching a video, then want to find a similar product.
Multimodal RAG extends retrieval to information represented in different formats, including images and video. For ecommerce, this can allow applications to identify products from visual content and connect those observations to catalog records.
A shopper could upload a photograph of the linen shirt they saw at a wedding. The system can identify visual characteristics, retrieve similar catalog products and apply the shopper's $100 budget and size requirements.
The process might involve:
- Visual analysis: Extract information from the uploaded image or generate a representation suitable for similarity search.
- Product matching: Retrieve catalog items with similar visual characteristics and compare available product attributes.
- Constraint checking: Apply the shopper’s price and size requirements using structured catalog fields.
- Response generation: Provide matching products and explain relevant similarities using information supported by the retrieved records.
A similar workflow can begin with video. A viewer might pause a scene featuring a shirt and request comparable products. The application could use the selected frame to identify the item and search for matching catalog records.
Video retrieval introduces additional considerations. A frame may contain several products, or the item of interest may be partially obscured. Applications need to determine which object should be matched and whether the visual information is sufficient to support a reliable recommendation.
Visual similarity also has limits. An image may suggest that a shirt is made from linen, but appearance alone cannot confirm its fabric composition. That information should come from the catalog or another reliable source.
RAG vs. fine-tuning for product catalogs
RAG and fine-tuning can both improve how AI applications perform, but they address different requirements.
RAG retrieves external product information when processing a request. If a retailer changes a linen shirt's price from $89 to $95, an application connected to the updated catalog can retrieve the new price without retraining the model. The same applies to inventory changes, provided the data source and retrieval index stay current.
Fine-tuning adjusts a model's parameters through additional training. It can help a model follow domain-specific instructions or produce responses in a particular format. However, fine-tuning does not automatically provide a reliable, continuously updated view of a retailer's inventory.
Fine-tuning may still be useful for applications that need specialized response behavior. It can also be combined with RAG, allowing a model to follow domain-specific instructions while consulting external product information.
When the primary requirement is access to current product information, retrieval offers a more direct way to incorporate catalog updates.
How to evaluate RAG for product discovery
Evaluating RAG for ecommerce requires looking at both the products retrieved and the responses generated from them.
Developers should evaluate these stages separately.
Retrieval relevance measures whether the system identifies products that match the shopper’s intent. A test might include requests for clothing appropriate for specific occasions, with known relevant products used to assess retrieval performance.
Metrics such as precision at k and recall at k can help measure how effectively the system retrieves relevant products.
Constraint satisfaction measures whether returned products meet explicit requirements. For the linen shirt example, a recommendation should remain within the stated budget and be available in the requested size.
Grounding measures whether the application’s claims are supported by the retrieved information. If a response describes a shirt as “100% linen,” the corresponding product record should contain evidence for that description.
Data freshness is important because a recommendation based on an outdated inventory may be accurate according to an older catalog snapshot but unusable when the shopper attempts to purchase the item.
Developers can test how quickly catalog updates become available to the retrieval system and whether price or stock changes are reflected in subsequent requests.
Evaluation should also include requests with no suitable match. If every linen shirt under $100 is unavailable in the requested size, the application should communicate that limitation rather than recommending an item that fails the shopper's requirements.
These tests help identify whether problems originate in retrieval, product data or response generation, making it easier to determine which part of the system needs improvement.
How Shopsense supports RAG-powered product discovery
Shopsense works with product information to support retrieval and matching across ecommerce catalogs. Its technology addresses the catalog preparation and product matching work that developers need when building search and product discovery applications.
Product records from different sources can contain inconsistent descriptions or missing attributes. Shopsense's catalog enrichment capabilities are designed to make product information more structured and usable for retrieval.
The platform also supports product matching across retailers, helping applications connect product requests with relevant catalog items when source listings describe similar products differently.
Shopsense supports discovery through natural-language requests and visual inputs, including images and video. These capabilities can be used in applications that connect content to relevant products or retrieve catalog matches from shopper requests.
For example, an application could use Shopsense's visual product matching capabilities to identify catalog items similar to a shirt shown in an image. The returned product information could then be used to check attributes such as material and color against the shopper's request.
For developers building RAG-powered applications, Shopsense can provide product information that supports retrieval and grounded recommendations. Teams can use that information in their own search interfaces or AI applications rather than building every component of catalog preparation and matching themselves.
Developers can explore Shopsense's product discovery capabilities through the self-serve portal. Enterprise teams can contact Shopsense to discuss integration requirements.

