Skip to content

Instantly share code, notes, and snippets.

@heitorlessa
Last active July 5, 2023 14:30
Show Gist options
  • Save heitorlessa/8a652bad6a432a3d17fc7797107e3ac3 to your computer and use it in GitHub Desktop.
Save heitorlessa/8a652bad6a432a3d17fc7797107e3ac3 to your computer and use it in GitHub Desktop.
Sample LLM prompt for Mermaid sequence

There are three participants: Client, Server, Database.

First scenario

  • Client makes a GET /products request to the Server
  • Server verifies whether Client is authorized to make this request
  • Server confirms Client is authorized and makes a request to the Database to fetch all products
  • Database returns 100 products to the Server, along with a pagination token to retrieve 100 more tiems
  • Create a loop between Server and Database, where Server fetches 100 more products with the pagination token provided by Database until there are no more products to be fetched
  • Server returns response to the Client

timeline
    title History of Social Media Platform
    2002 : LinkedIn
    2004 : Facebook
         : Google
    2005 : Youtube
    2006 : Twitter
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment