Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product description/mackenzi/description generator #9

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

1 participant