aws-samples / retail-demo-store

AWS Retail Demo Store is a sample retail web application and workshop platform demonstrating how AWS infrastructure and services can be used to build compelling customer experiences for eCommerce, retail, and digital marketing use-cases
MIT No Attribution
727 stars 516 forks source link

Better product descriptions using generative AI #502

Closed BastLeblanc closed 1 year ago

BastLeblanc commented 1 year ago

Issue #, if available: no

Description of changes: Updated product descriptions and name. Generated using Amazon Bedrock . with Anthropic claude v2 model.

Prompts used:

Human: Given the following product details:
{product_for_prompt}

Please generate an enhanced product description that incorporates all the above elements while ensuring 
high-quality language and factual coherence. Make the description rich in relevant details 
and present it in a format that starts with a detailed description of the product as an opening sentence

Assistant:

and

Human: Consider this product information 
    {products[index]}

    create a more descriptive title for the product in less 10 words listed above. Make the title simple and original. It shouldn't be a sentence.

Assistant:

Description of testing performed to validate your changes (required if pull request includes CloudFormation or source code changes): Load of the product catalog and simple visual tests.

example: before:

name: Rose Pink Blush Brush description: For those looking for a blush brush and something that is rose pink.

After:

name: Rose Pink Blush Brush description: The Rose Pink Blush Brush is a soft, rose pink-colored makeup brush designed specifically for applying blush and contour powder to the cheeks and face. This high-quality blush brush features a rounded, tapered head shape with densely packed, ultra-soft synthetic bristles to pick up, hold, and distribute powder product evenly and seamlessly onto the skin for a flawless, airbrushed effect. The delicate pink color and elegant handle make this brush a beautiful addition to any makeup collection while the specialized bristle design ensures smooth, blendable application and professional results. Use this brush to expertly sculpt, define, and add a healthy, natural flush of color to the cheeks with your favorite blush, bronzer, or contour powder.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.