Skip to content

Conversation

@mackenzip
Copy link

Title: Product Desription Generator

Overview

The endpoint provided a breif response as a product developer describing the materials, dimensions, features, and the target market.

Endpoint Details

  • Route: /descriptionGen
  • Hardcoded Prompt: "You are a product developer. Generate a brief description of the products materials, dimensions, features, and target market."
  • Expected Input: Describe the input your endpoint expects.
    {
      "context": "A new lightweight, durable, and affordable smartphone designed for teenagers."
    }

Prompt Engineering Strategy

I briefly described who the bot should be when generating the endpoint. I used words like generate, and brief in order to get a shorter description vs the long description that was orginally generated. This apporach makes the description to be short, sweet, and to the point.

Implementation Details

Code Changes: List the files and key changes made in your implementation.

  • src/routes/descriptionGen.js: Created a new route for the endpoint.

  • src/app.js: Registered the new endpoint route.

Testing

When testing the endpoint, ensuring that everything was named correctly made sure the code can run correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants