ANNOUNCEMENTVoyage AI joins MongoDB to power more accurate and trustworthy AI applications on Atlas. Learn more >
NEWSLearn why MongoDB was named a leader in the 2024 Gartner® Magic Quadrant™ Read the report >
NEWMongoDB 8.0: Experience unmatched speed and performance. Check it out >

Automating product descriptions using generative AI

MongoDB and Together AI deliver generative AI-powered solutions for writing multilingual product descriptions, enabling faster product onboarding.

Start FreeView the demo
Generative AI illustration.
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.

AI-Driven Retail Demo: Auto-Generate Descriptions for Faster Product Onboarding

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 Architecture

At the core of this architecture we have three key components:

Product description generative AI architecture
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 either 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.

Product description generative AI architecture extended with real-time applications
Product description generative AI architecture extended with real-time applications
Building the Solution

Building this solution can be broken down in five major steps:

Step 1: Replicate the demo database. Provision a cluster within your Atlas account and populate your database with the data required for the demo. A data dump can be found inside the repository to quickly replicate the database with all the necessary data and metadata with one quick mongorestore command.

Step 2: Retrieve MongoDB Atlas connection string. Navigate to your cluster and click on Connect. Copy the connection string provided and save it for your .env file.

Step 3: 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.

Step 4: Create your object storage. Create a new bucket in your AWS account and generate an IAM user with programmatic access. Save the access key and secret key for your .env file.

Step 5: 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
  • The importance of high-quality product descriptions. A well-crafted product description enhances user engagement, improves SEO rankings leading to increased views, and helps customers make more informed purchase decisions.

  • Leveraging MongoDB and Together AI. 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.

  • The value of modernizing architecture. Streamlining the product onboarding process with AI and automation reduces manual effort and speeds up approvals. Providing a generative AI product description as a base that respects the UX writing and tone of the business ensures consistency across platforms while also enabling faster scalability to accommodate growing product catalogs with minimal additional effort.

Each of these capabilities contributes to building a robust generative AI system that can scale with your business needs while maintaining efficiency and reliability.

Technologies and Products Used
MongoDB modern database
  • MongoDB Atlas
Partner technologies
  • Together AI
  • NextJS
Authors
  • Angie Guemes, MongoDB
  • Prashant Juttukonda, MongoDB
Related Resources
general_content_white_paper

AI-Powered Retail With Together AI and MongoDB

Discover how MongoDB and Together AI power AI-driven retail with smarter search, chatbots, and automation.

general_content_developer

Github repository: Product description generator

Run this demo by following the instructions in this solution’s repository.

general_content_ebook

Innovate With AI: The Future Enterprise

Discover how leading industries are transforming with AI and MongoDB Atlas.

industry_shopping_cart

MongoDB for Retail

Learn how MongoDB shapes the retail industry through innovative solutions.

Get started with Atlas

Get started in seconds. Our free clusters come with 512 MB of storage so you can experiment with sample data and get familiar with our services.
Try FreeContact sales
Illustration of hands typing on a laptop in the foreground and a superimposed desktop window and coffee cup in the background.