daytimedrinkingclub / shipstation

Generate and manage your personal website and portfolio with ease
https://shipstation.ai/
73 stars 58 forks source link

Utilize Tavily Image Results for Component Creation (Fix for #23) #40

Closed ms4n closed 2 months ago

ms4n commented 2 months ago

Summary

This PR addresses issue #23 by implementing the use of images returned by Tavily's search API in our component creation process, replacing the previous method of using generic placeholder images. It also introduces image descriptions in the PRD tool to enhance the relevance of queried images and adds configuration for S3 upload.

Changes

  1. Search Service Enhancement

    • Updated the performSearch function to handle and store image results from Tavily.
    • Implemented logic for separate image queries when provided.
  2. PRD Tool Update

    • Added a new field for image descriptions in the PRD tool input schema.
    • Modified the PRD generation process to include these image descriptions.
  3. Onboarding Tool Controller Update

    • Updated the product manager tool to incorporate image descriptions and Tavily image results into the PRD.
    • Implemented new search functionality using image descriptions to query Tavily for relevant images.
  4. CTO Tool Controller Improvements

    • Enhanced the search tool handling to process and include Tavily image results in the response.
  5. Code Service Refinement

    • Updated the extractPlaceholderImages function to parse and return image information from the PRD, including new image descriptions.
  6. Environment Configuration

    • Added a new environment variable UPLOAD_TO_S3 to control whether websites are uploaded to S3 or stored locally.

Impact

Implementation Details

Attaching screenshots as reference in the comments below

ms4n commented 2 months ago

172 20 10 3_8080_ (1) 127 0 0 1_8080_ (1)