Automating Product Descriptions Using Generative AI
MongoDB and Together AI deliver generative AI-powered solutions for writing multilingual product descriptions, enabling faster product onboarding.
Industries: Retail
Products: MongoDB Atlas, Document Model, MongoDB Node.js Driver
Partners: Together AI
Solution Overview
In this solution, you will learn how to build a generative AI-powered architecture that processes images using advanced vision models, generating accurate and compelling descriptions of an image. MongoDB Atlas serves as the operational data layer, leveraging its flexible data model to scale seamlessly as new descriptions are added and ensuring efficient data management and effortless scalability.
This solution proves particularly valuable in the retail industry. The process of onboarding a new product to a retailer’s catalog can be time-consuming, especially when it comes to crafting product descriptions—in multiple languages and in different geographies. This solution helps streamline that workflow by automating the initial content creation through generative AI, providing retailers with a solid foundation for each product description, ultimately speeding up the time to market and improving consistency across their catalog UX writing.
The Importance of a Good Description
Did you know that around 70% of people leave a product page when the product description is poor or incomplete?
Product descriptions play a crucial role in the customer's journey. Shoppers rely on them to make buying decisions. When descriptions are weak or missing, businesses risk losing potential revenue and leaving customers frustrated.
Having a great description can enhance user engagement and satisfaction as 87% of online shoppers consider product descriptions to be crucial when making a buying decision. On the other hand, having inaccurate descriptions can result in revenue loss and trust decline with your customer base as 40% of consumers have returned online purchases due to poor product content.
Challenges with the Traditional Product Description Writing Process
The journey of writing high-quality descriptions involves numerous details and careful considerations. Some of the challenges that present include:
Crafting compelling descriptions: A product description that is well-written will address their target’s needs and desires while maintaining a consistent tone that aligns with the business’s UX writing strategy and brand identity.
SEO optimization: Creating SEO-optimized product descriptions to drive organic traffic and improve search engine rankings.
Multilingual complexity: For retailers with multilingual portals and with multiple operating geographies this process increases in complexity.
Content approval delays: Even after a description is written, too often there is still a writing approval process that needs to happen, delaying the time to market.
Reference Architectures
With MongoDB:
At the core of this architecture we have three key components:
MongoDB Atlas: A powerful, general-purpose data platform that seamlessly manages our data in the cloud. MongoDB's flexible document model allows products to scale easily by adding more descriptions (i.e. for translations in multiple languages) without introducing complexity.
The object storage: An effective system for efficient product image file storage and retrieval. This can be built with Google Cloud storage, Azure Blob Storage or AWS S3.
Together AI: Offers a variety of generative AI services, making it easy to run or fine-tune leading open source models with only a few lines of code. This solution uses their available vision LLMs to generate the product descriptions.
Figure 1. Product description generative AI architecture
The journey starts on the left side of the diagram with the User/Event label. A laptop icon represents the “Product Description Generator” system. First, a new product is received, this can be added manually by a user or in bulk through an automated event.
Then, retailers generate the descriptions by sending a query to Together AI’s endpoint, utilizing their vision models, combining computer vision and natural language processing (NLP) to process and understand images alongside text. The request includes the image URL, the desired description length, the vision model utilized, and the languages for the description.
Then, Together AI takes this data and uses one of its Llama3 vision models to scan the image and generate a description that matches the specified requirements, and returns the product description to the application.
Finally, the product along with its description will be upserted inside the catalog on MongoDB, ensuring real-time availability across all connected systems.
To illustrate the scalability of this architecture, consider the diagram below. By integrating MongoDB Change Streams, it allows real-time updates on any application listening to the catalog. For example, the e-commerce portal, a social media platform, and any other touchpoints.
Figure 2. Product description generative AI architecture with real-time applications
Building the Solution
Building this solution can be broken down in five major steps:
Replicate the Demo Database
Provision a cluster within your Atlas account and populate your database with the data required for the demo. You can quickly replicate the database using a data dump found in the github repository with a single mongorestore command.
Create Your Together AI Account
Sign in to Together AI. Navigate to your account and retrieve your user key, which can be found inside your Profile, then go to Settings and select API Keys. Save this key, as you will need it in your .env file.
Configure Your Application’s Frontend
Obtain the demo code by cloning the GitHub repository to your local machine, configure the environment variables and install the dependencies. Finally, run the app locally at http://localhost:3003.
For complete implementation details, including code samples, configuration files, and tutorial videos, visit the GitHub repository.
Key Learnings
High-quality product descriptions drive business success: A well-crafted product description enhances user engagement, improves SEO rankings with increased views, and helps customers make more informed purchase decisions.
Leverage MongoDB and Together AI to automate product descriptions: By combining MongoDB’s flexible and scalable database with Together AI’s available vision models, retailers are able to automate real-time product description generation that aligns with their business needs.
Modern architectures speed up time to market: Streamlining the product onboarding process with AI and automation reduces manual effort and speeds up approvals. Using a generative AI for product descriptions maintains consistent UX and tone, enabling quick scalability for expanding product catalogs with little extra effort.
Together, these capabilities form a robust generative AI system that scales with your business needs while ensuring efficiency and reliability.
Technologies and Products Used
MongoDB Developer Data Platform
Partner Technologies
Authors
Angie Guemes, MongoDB
Prashant Juttukonda, MongoDB