Comprehensive glossary of AI and commerce terminology to help you navigate the evolving language of artificial intelligence.
Glossary Explorer
Browse all glossary terms
RAG (Retrieval-Augmented Generation)
Retrieval-Augmented Generation (RAG) is an architectural pattern that enhances language model outputs by dynamically retrieving relevant information from an external knowledge base — such as a vector database, document store, or search index — and injecting it into the model's context at inference time. Rather than relying solely on knowledge encoded in model weights during training, RAG grounds model responses in up-to-date, curated, or proprietary information the model was not trained on. RAG has become the dominant pattern for enterprise LLM deployment because it addresses two of the most critical limitations of standalone LLMs: knowledge cutoffs and hallucination. A commerce platform using RAG can build AI assistants that accurately answer questions about current product catalog details, live inventory status, customer order history, or internal policy documents — without retraining the model. RAG also improves auditability, since retrieved source documents can be surfaced alongside generated answers. Key engineering challenges include retrieval quality, context window management, and handling conflicting information across retrieved documents.
Real-Time Personalization Engine
A real-time personalization engine is a software system that dynamically adjusts the content, product recommendations, pricing, or experience delivered to an individual user based on signals processed with minimal latency—typically within milliseconds of a user action. These engines combine online feature stores, low-latency model serving infrastructure, and decision logic to produce context-aware responses at the moment of interaction rather than in batch processes that run hours or days later. In e-commerce and digital experience platforms, a real-time personalization engine determines which products appear in a recommendation carousel, which promotional banner a visitor sees, or which search results rank highest—all tuned to the individual's current session context, historical behavior, and predicted intent. The commercial value is significant: personalized experiences consistently outperform generic ones on conversion rate, average order value, and customer retention. Engineering these systems at scale requires careful investment in feature infrastructure, model refresh cadence, and fallback logic for cold-start scenarios.
Recommendation Engine
A Recommendation Engine is a system that uses data about user behavior, preferences, and item attributes to surface personalized suggestions—typically products, content, or services—that a given user is likely to find relevant or desirable. These systems rely on approaches such as collaborative filtering (identifying patterns across users with similar tastes), content-based filtering (matching item attributes to user preferences), and hybrid models that combine both, increasingly augmented by deep learning and large language models. Recommendation engines are among the highest-ROI AI investments in commerce, directly influencing product discovery, cross-sell and upsell performance, and average order value. Platforms like Amazon attribute a significant share of revenue to recommendations. In B2B contexts, recommendation engines help buyers navigate complex catalogs and surface relevant products based on account history and industry segment. Modern recommendation systems increasingly incorporate real-time signals—session behavior, search queries, inventory availability—to deliver contextually appropriate suggestions that align with immediate customer intent rather than only historical patterns.
Red Teaming
Red teaming is a structured adversarial testing methodology in which a dedicated team attempts to elicit harmful, incorrect, or policy-violating outputs from an AI system by probing it with challenging, edge-case, and adversarial inputs. Borrowed from cybersecurity practice, AI red teaming involves crafting inputs designed to bypass safety guardrails, surface biases, induce hallucinations, or expose unintended capabilities. Red teams may include internal security researchers, domain experts, and external contractors with specialized expertise in AI failure modes. For organizations deploying AI in commerce, red teaming is a critical pre-launch and ongoing safety practice. An e-commerce chatbot that can be manipulated into revealing confidential pricing logic, generating offensive content, or providing dangerous advice represents both a security vulnerability and a brand liability. Red teaming exercises surface these risks in a controlled environment before they materialize in production. Findings feed directly into prompt hardening, safety filter tuning, and policy updates, making red teaming an indispensable component of responsible AI deployment at scale.
Reinforcement Learning
Reinforcement learning (RL) is a machine learning paradigm in which an agent learns to make decisions by interacting with an environment, receiving scalar reward signals for its actions, and optimizing its behavior policy to maximize cumulative reward over time. Unlike supervised learning (which requires labeled input-output pairs), RL learns from the consequences of actions taken in a dynamic environment, making it well-suited for sequential decision-making problems. In commerce, reinforcement learning is applied to problems where the optimal action depends on context and has delayed consequences — such as dynamic pricing, bid optimization in advertising platforms, personalized promotion sequencing, and inventory replenishment. RL agents can learn strategies that outperform rule-based systems by adapting to complex, nonstationary environments. The key challenges in production RL deployments are reward function design (misspecified rewards produce unexpected behaviors), sample efficiency (RL often requires many interactions to learn), and safe exploration (the agent must not take harmful actions while learning).
Responsible AI
Responsible AI is a practice and set of principles guiding the development and deployment of AI systems in ways that are fair, transparent, accountable, safe, and aligned with human values. Core dimensions include fairness (avoiding discriminatory outcomes), explainability (making model decisions interpretable to affected parties), privacy (handling personal data with appropriate protections), robustness (ensuring systems behave reliably under distribution shift and adversarial conditions), and human oversight (maintaining meaningful human control over consequential decisions). For commerce organizations, responsible AI is both an ethical imperative and a business risk management strategy. AI systems that discriminate in credit, pricing, or hiring expose organizations to regulatory enforcement and litigation. Systems that are opaque generate customer distrust and make it difficult to diagnose and correct errors. Responsible AI programs typically include bias auditing, model documentation, impact assessments before deployment, and ongoing monitoring for performance degradation and disparate outcomes. Organizations that operationalize responsible AI principles consistently build more durable customer relationships, navigate regulatory scrutiny more effectively, and reduce the risk of costly AI-related incidents.
Retrieval-Augmented Generation (RAG)
Retrieval-Augmented Generation (RAG) is an AI architecture that combines a large language model with a retrieval system, allowing the model to access and incorporate external knowledge at inference time rather than relying solely on information encoded in its parameters during training. In a RAG pipeline, a user query triggers a search over an external knowledge base—product catalogs, documentation, customer records, or enterprise knowledge repositories—and the retrieved content is injected into the model's prompt as context before the model generates its response. RAG addresses two fundamental limitations of standalone LLMs in enterprise settings: knowledge staleness (models are frozen at training time) and hallucination risk (models confabulate facts they were not trained on). In commerce, RAG enables AI assistants to answer accurate questions about current inventory, pricing, policies, and product specifications without retraining. It also provides a mechanism for grounding model outputs in auditable source documents, which is important for compliance, customer trust, and debugging when responses are incorrect. Effective RAG implementation requires careful attention to retrieval quality, chunk sizing, context window management, and citation handling.
Return Reason Analysis
Return reason analysis is the systematic examination of data collected at the point of product return — customer-stated reasons, product condition codes, item characteristics, purchase context, and behavioral signals — to identify patterns that explain why returns occur and which products, categories, customer segments, or operational processes are disproportionately driving return volume. It typically combines structured reason codes captured at return initiation with unstructured text from customer feedback, and may be enriched with product attribute data, sizing information, supplier quality records, and fulfillment metadata. Machine learning techniques including clustering, topic modeling, and classification are frequently applied to surface patterns that aggregate reporting alone would miss. In e-commerce and omnichannel retail, returns represent one of the largest and most controllable cost variables: return rates in apparel and electronics regularly exceed 20–30%, and the fully-loaded cost of processing a return — including reverse logistics, inspection, repackaging, and potential liquidation — often approaches or exceeds the original margin. Return reason analysis converts this cost center into an intelligence asset. Patterns revealing that a specific product consistently generates "doesn't match description" returns point to PIM content quality issues; "wrong size" returns at scale indicate a fit guidance or sizing chart problem; "item arrived damaged" clusters point to packaging or carrier failures. Each root cause has a different remediation: content improvement, supplier communication, packaging redesign, or carrier audit. Organizations that systematically act on return reason intelligence reduce return rates, improve customer satisfaction, and protect margin simultaneously.
RLHF (Reinforcement Learning from Human Feedback)
Reinforcement Learning from Human Feedback (RLHF) is a training technique used to align language model behavior with human preferences. After initial pretraining, human raters compare pairs of model outputs and indicate which is better along dimensions such as helpfulness, accuracy, and safety. These preferences train a reward model, which is then used to fine-tune the language model via reinforcement learning — optimizing it to produce outputs that humans rate more highly. RLHF is the technique behind the transformation of base language models into the instruction-following, safety-conscious assistants deployed in production today (including ChatGPT and Claude). For enterprise buyers, understanding RLHF helps explain both the strengths and limitations of commercial LLMs: the model has been shaped by the preferences of its raters, which may not perfectly align with a specific organization's values, use cases, or customer base. It also informs why some fine-tuning or system prompt configurations are resisted by the model — RLHF-instilled behaviors can be deeply embedded and require significant effort to override safely.
Route Optimization
Route optimization is the computational problem of determining the most efficient path or sequence for completing a set of stops, deliveries, or tasks subject to real-world constraints such as vehicle capacity, time windows, driver hours, road conditions, and delivery priorities. It is a variant of the vehicle routing problem (VRP), a class of combinatorial optimization problems that are NP-hard in their general form, meaning exact solutions become computationally intractable as scale grows. Modern route optimization systems use heuristic algorithms, metaheuristics (genetic algorithms, simulated annealing), and increasingly reinforcement learning to find near-optimal solutions for large fleets in real time. In commerce and logistics, route optimization is a significant source of operational cost reduction and customer experience improvement. Last-mile delivery represents the most expensive segment of the supply chain, and even marginal reductions in vehicle miles traveled, fuel consumption, and driver time directly improve unit economics—critical at the scale of thousands of daily deliveries. AI-powered route optimization can incorporate dynamic inputs that static planning tools cannot: real-time traffic, weather disruptions, last-minute order changes, and driver availability. For omnichannel retailers managing ship-from-store, click-and-collect, and home delivery simultaneously, AI optimization across all fulfillment modes enables more accurate delivery promises, reduced delivery costs, and lower carbon footprints—increasingly important to both customers and regulators.