Public Service
What Are the Crucial Components of AI Guardrails?
2024-11-14
In a bustling street, a pair of red and white concrete road barriers stand against a light blue background. These barriers on the highway, much like the ones we're familiar with, serve to protect vehicles from veering off course and into danger. With the emergence of generative AI (gen AI), the concept of guardrails extends to systems designed to ensure that a company's AI tools, especially large language models (LLMs), operate in alignment with organizational standards, policies, and values.

Get to Know and Engage with Senior McKinsey Experts on AI Guardrails

Lareina Yee, a senior partner in McKinsey's Bay Area office, along with Roger Roberts (a partner), Mara Pometti (a consultant in the London office), and Stephen Xu (a senior director of product management in the Toronto office), are here to guide us through the world of AI guardrails.

Benefits of AI Guardrails

Privacy and security are crucial aspects. AI systems are vulnerable to attacks by malicious actors who can manipulate AI-generated outcomes. Guardrails act as a shield, safeguarding organizations and their customers. Regulatory compliance is another key benefit. As government scrutiny of AI increases, guardrails help organizations ensure their AI systems adhere to existing and emerging laws and standards, reducing the risk of legal penalties. Trust is paramount, and guardrails enable continuous monitoring and review of AI-generated outputs, minimizing the risk of errant content being released.

For instance, imagine a healthcare organization using an AI system to diagnose patients. Without proper guardrails, the system might generate inaccurate or misleading diagnoses, putting patients at risk. But with guardrails in place, the system can be monitored and corrected in real-time, ensuring the accuracy and reliability of diagnoses.

Another example is in the e-commerce industry. Guardrails can prevent the sale of counterfeit products by filtering out inappropriate or inaccurate product information generated by AI. This helps build trust with customers and protects the reputation of the business.

Main Types of AI Guardrails

Appropriateness guardrails check for toxic, harmful, biased, or stereotypical content and filter it out before it reaches customers. For example, in a social media platform, these guardrails can prevent the spread of hate speech and offensive content.Hallucination guardrails ensure that AI-generated content is factually correct and not misleading. Say a news organization uses an AI to generate articles; these guardrails would prevent the inclusion of false information.Regulatory-compliance guardrails validate that generated content meets regulatory requirements. In the finance industry, for instance, these guardrails would ensure that financial advice generated by AI complies with relevant regulations.Alignment guardrails ensure that generated content aligns with user expectations and maintains brand consistency. For a brand's customer service chatbot, these guardrails would ensure that the responses are in line with the brand's tone and values.Validation guardrails check if generated content meets specific criteria. If a piece of content fails the validation, it can be funneled into a correction loop. This helps maintain the quality of AI-generated content.

Take a content management system as an example. By implementing these different types of guardrails, the system can ensure that the content published is appropriate, accurate, compliant, and aligned with the organization's goals.

Another instance could be in an educational setting. Guardrails can prevent AI-generated educational materials from containing biases or incorrect information, providing students with high-quality learning resources.

How Guardrails Work

Guardrails are built using various techniques, from rule-based systems to LLMs. Most guardrails are fully deterministic, meaning they produce the same output for the same input. They work by performing a range of tasks such as classification, semantic validation, and detection of personally identifiable information leaks.The checker scans AI-generated content to detect errors and flag issues like offensive language or biased responses. It acts as the first line of defense. Once an issue is identified, the corrector refines, corrects, and improves the output. The rail manages the interaction between the checker and corrector, triggering corrections when needed and logging the processes for analysis. The guard interacts with all components, coordinating and managing the entire process.

For example, in a chatbot application, the checker might detect a misspelled word in the AI's response. The corrector would then correct the spelling, and the rail would ensure that the corrected response is sent back to the user. This iterative process ensures the quality of the chatbot's responses.

In a legal document generation system, the guardrails would ensure that the generated documents are accurate, compliant with legal requirements, and free from biases. This is crucial in ensuring the fairness and integrity of legal processes.

How AI Guardrails Generate Value

AI guardrails not only help meet compliance and ethical requirements but also create a competitive advantage. They help build trust with customers and avoid costly legal issues. By using AI more responsibly, organizations can attract and retain top talent.For instance, a manufacturing company that implements AI guardrails in its production processes can ensure the quality and safety of its products. This builds trust with customers and gives the company a competitive edge in the market.ING, a financial-services company, developed an AI chatbot with guardrails to ensure accurate and safe customer interactions. The guardrails filtered out sensitive information and risky advice, while ensuring compliance with regulatory standards. This not only protected the customers but also enhanced the company's reputation.

Another example is in the logistics industry. AI guardrails can optimize delivery routes and ensure the timely and accurate delivery of goods. This improves customer satisfaction and increases the efficiency of the logistics operations.

How to Deploy AI Guardrails at Scale

Design guardrails with multidisciplinary teams that include legal experts. Define content quality metrics tailored to business goals and regulations. Adopt a modular approach to build reconfigurable components that can be easily embedded and scaled in existing systems. Take a dynamic approach by setting up rule-based guardrails with dynamic baselines that can change based on different variables. Steer with existing regulatory frameworks and develop new capabilities and roles for practitioners accountable for model outcomes.

For example, a large e-commerce company can form a team consisting of engineers, legal experts, and ethicists to design and implement AI guardrails across its platform. By defining specific metrics for content quality, such as product descriptions' accuracy and compliance, the company can ensure the consistency and reliability of its offerings.

In a healthcare system, deploying AI guardrails at scale requires collaboration between IT teams, medical professionals, and compliance officers. This ensures that the AI systems used in healthcare are safe, accurate, and compliant with medical regulations.

The rapid growth of AI has made compliance more complex for companies. Guardrails can help companies manage risks and foster innovation. By incorporating guardrails into various processes like product development, organizations can better handle AI-related crises and create a safer environment for AI-related activities.
Enhancing Field Service with Gen AI: Ascendum's Success Story
2024-11-13
Ascendum, a Portugal-based global provider in multiple sectors, employs around 1,600 staff and generates an annual turnover of €1.3 billion. Its field and service agents play a crucial role in maintaining equipment on-site. However, they face challenges due to the complexity and specialization of machinery, along with unstructured technical information spread across multiple formats and databases.

Transforming Field Service with Generative AI

The Opportunity

In an era where machinery is becoming more complex, Ascendum recognized the need to enhance field service support. By collaborating with McKinsey and Salesforce, they aimed to find value areas and cross-impact with feasibility. Time is of the essence for customers, and even diagnosing an issue can take up to 30 minutes as agents search through vast amounts of data. Building a solution to these challenges has the potential to create significant customer value by reducing equipment downtime.

The company's operations involve distributing and maintaining over 25 different brands of machinery and equipment. With a team of dedicated field and service agents, Ascendum is committed to rapid mobilization and swift issue resolution.

The Solution

Ascendum initiated a transformation to harness the potential of generative AI. Through strategic collaboration with McKinsey and Salesforce, they identified and evaluated 30 potential use cases where generative AI could deliver significant value. For instance, one use case involved using generative AI to help agents quickly pinpoint equipment repair instructions from a large body of technical documents.

Ascendum led the mobilization of its business organization and provided essential customer and industry insights. QuantumBlack brought deep industry knowledge and advanced AI capabilities, along with integration support for Salesforce technologies. Salesforce delivered a seamless user experience through its development tools, giving access to customer data. Over five weeks, McKinsey's QuantumBlack team built the generative AI engine on the Salesforce platform, working closely with field agents to ensure model output was trusted and useful.

The Impact

The partnership resulted in a generative-AI-powered solution seamlessly integrated with Ascendum's Salesforce Service Cloud. The pilot solution implemented in just four weeks led to significant improvements. It enhanced first-time resolution by streamlining access to information and providing more accurate troubleshooting diagnoses. This freed service teams from repetitive tasks and allowed them to focus on adding value to customer relationships and driving business growth.

Faster issue resolution directly translated into reduced equipment downtime, saving customers between $5,000 to $12,000 per hour. Construction workers and other operators no longer lose as much time to technical delays, experiencing less disruption to their daily work. This initiative has set a new benchmark in the industry, leveraging cutting-edge technology to redefine service standards and deliver unparalleled value to customers.

As McKinsey senior partner Peter Dahlstrom said, "Technology enablement offers a new approach to field operations, making the process faster and saving significant time for agents." This work is a prime example of how their partnership with Salesforce drives real impact at scale.

See More
Robert Chatwani Discusses Product-Led Sales and Growth
2024-11-15
In this captivating episode of McKinsey on Building Products, a podcast dedicated to the exploration of software product management and engineering, McKinsey partner Rikki Singh engages in a profound discussion with Robert Chatwani, the president of growth at Docusign. Chatwani's extensive career has centered around the harmonious integration of marketing and growth functions to craft more captivating products. This exploration delves deep into how to stimulate sustainable revenue growth and foster brand love through the power of product-led sales.

Unlock the Secrets of Product-Led Sales with McKinsey

Product-Led Sales as a Catalyst for Growth

Rikki Singh kicks off the conversation by asking Chatwani about his background and how it has shaped his philosophy and definition of product-led sales. Chatwani shares his journey, starting in consulting and then finding his footing in consumer marketing at eBay for over a decade. He later moved to the enterprise SaaS space at Atlassian, where he led the marketing and growth functions. Chatwani emphasizes his passion for applying the growth principles from successful consumer platforms to SaaS companies.When asked about the essence of product-leading growth, Chatwani explains that it entails driving an organization's revenue sustainably and building a brand that customers love. This leads to customer loyalty and an emotional connection with the company. Singh then inquires about the difference between product-led growth (PLG) and product-led sales (PLS). Chatwani clarifies that for traditionally sales-driven companies, PLG or PLS represents a significant shift in the go-to-market model. PLG focuses on enabling customers to convert from free to paid or expand through product experiences, while PLS utilizes data to facilitate product-centric motion and improve sales decisions.

Effective Go-to-Market Strategies for Product-Led Sales

Singh poses the question of when an organization should start considering PLG or PLS strategies. Chatwani believes that companies should pay equal attention to their go-to-market model as they do to their product strategy. Many companies focus on the product roadmap but neglect the design of the go-to-market model. This often leads to diminishing returns over time. Chatwani advocates for a forward-thinking approach, designing go-to-market mechanisms that support both current and future growth.When discussing go-to-market strategies, Chatwani highlights three approaches: direct-sales, channel or partner-centric, and digital experiences. He emphasizes the importance of thinking about the DNA of a good customer experience across all channels and bridging the experience gap between customer expectations and actual experiences. Chatwani uses examples like Apple and Airbnb to illustrate the importance of consistency and low friction in creating a great customer journey.

Key Enablers for a Product-Led Sales Approach

Singh explores the roles of marketing, sales, and product functions in the end-to-end product-led sales approach. Chatwani emphasizes that every team member should think about how to achieve their goals through collaboration. He gives an example from Atlassian, where they used product data to help sellers have better conversations with customers and optimize software usage. Chatwani also mentions other factors for success, such as a company's intrinsic culture, having multiple products for land and expand strategies, designing products for frictionless growth, and leveraging community and ecosystem.

Leveraging AI for Product-Led Sales

Singh inquires about the role of AI in product-led sales. Chatwani emphasizes that go-to-market teams have an obligation to integrate AI capabilities responsibly. AI can be used for research on prospective customers, understanding existing customer usage, and powering the digital experience. Pilot work shows significant productivity improvements when individuals are empowered with AI-driven go-to-market capabilities, freeing up human capital for more complex tasks.In conclusion, Rikki Singh summarizes the key lessons from the discussion. Growth is about driving sustainable revenue while building a beloved brand. Companies should create value for customers before capturing it, and mapping the end-to-end customer experience and closing the gap between expectations and reality is crucial. These principles apply at every level within an organization.
See More