{
  "id": "0ba634329d88",
  "url": "https://martinfowler.com/articles/2023-chatgpt-xu-hao.html",
  "title": "An example of LLM prompting for programming",
  "note": "This is an incredible example of creating a solution using ChatGPT. I've done many examples of having ChatGPT write code, but this approach creates a solution that can be debated and improved before you just spit out code.\n\n> A common way of interacting with an LLM is to give it a problem and ask it to generate some final product, whether than be prose or (in this case) code. With **Generated Knowledge** we split our interaction into separate steps: first ask the LLM to generate some useful information about the problem, and then we feed that information back into the LLM to generate the final product.\n\nThis is a super interesting way of working **with** another system in a pair-programming manner.\n\n> My take away from this discussion was that using chain of thought and generated knowledge prompting approaches can be a significantly useful tool for programming. In particular it shows that to use LLMs well, we need to learn how to construct prompts to get the best results. This experience suggests that it’s useful to interact with the LLM like a junior partner, starting them with architectural guidelines, asking them to show their reasoning, and tweaking their outputs as we go.\n\nThis is whole thing is incredible. 🤯",
  "voice": "mixed",
  "saved": "2023-04-14T02:02:55Z",
  "host": "martinfowler.com",
  "kind": "page",
  "tags": [
    "_feature"
  ],
  "record": "https://links.thingelstad.xyz/links/0ba634329d88/",
  "markdown": "https://links.thingelstad.xyz/links/0ba634329d88.md",
  "issues": [
    {
      "number": 250,
      "slug": "weekly-thing-250",
      "title": "Weekly Thing #250 / LLM, Shanghai, Wing",
      "date": "2023-04-16T12:00:00Z",
      "section": "Featured",
      "position": 0,
      "url": "https://weekly.thingelstad.com/archive/250/",
      "page": "https://links.thingelstad.xyz/issues/250/"
    }
  ],
  "connections": {
    "same_host": {
      "count": 27,
      "page": "https://links.thingelstad.xyz/hosts/martinfowler.com/",
      "nearest": [
        {
          "id": "76c93d155279",
          "title": "Ship / Show / Ask",
          "url": "https://martinfowler.com/articles/ship-show-ask.html",
          "record": "https://links.thingelstad.xyz/links/76c93d155279/"
        },
        {
          "id": "08d7f9105811",
          "title": "Scaling the Practice of Architecture, Conversationally",
          "url": "https://martinfowler.com/articles/scaling-architecture-conversationally.html",
          "record": "https://links.thingelstad.xyz/links/08d7f9105811/"
        },
        {
          "id": "2fe7b65e8ce0",
          "title": "Your organization should run its own Mastodon server",
          "url": "https://martinfowler.com/articles/your-org-run-mastodon.html",
          "record": "https://links.thingelstad.xyz/links/2fe7b65e8ce0/"
        },
        {
          "id": "d33cb6201174",
          "title": "Creating an integrated business and technology strategy",
          "url": "https://martinfowler.com/articles/creating-integrated-tech-strategy.html",
          "record": "https://links.thingelstad.xyz/links/d33cb6201174/"
        },
        {
          "id": "789fa17abf00",
          "title": "Say Your Writing",
          "url": "https://martinfowler.com/bliki/SayYourWriting.html",
          "record": "https://links.thingelstad.xyz/links/789fa17abf00/"
        }
      ]
    },
    "same_week": {
      "count": 26,
      "nearest": [
        {
          "id": "7979fe76525f",
          "title": "Free Dolly: Introducing the World's First Open and Commercially Viable Instruction-Tuned LLM - The Databricks Blog",
          "url": "https://www.databricks.com/blog/2023/04/12/dolly-first-open-commercially-viable-instruction-tuned-llm",
          "record": "https://links.thingelstad.xyz/links/7979fe76525f/"
        },
        {
          "id": "2f8e01b5cabe",
          "title": "Principles for Creating with AI",
          "url": "https://www.cjchilvers.com/blog/principles-for-creating-with-ai/",
          "record": "https://links.thingelstad.xyz/links/2f8e01b5cabe/"
        },
        {
          "id": "46bd50be26a5",
          "title": "Ethereum’s Shanghai Upgrade Is Complete, Starting New Era of Staking Withdrawals",
          "url": "https://www.coindesk.com/tech/2023/04/12/ethereums-shanghai-upgrade-activates-starting-new-era-of-staking-withdrawals/",
          "record": "https://links.thingelstad.xyz/links/46bd50be26a5/"
        },
        {
          "id": "36561b924cf5",
          "title": "Amazon 2022 Shareholder Letter (PDF)",
          "url": "https://s2.q4cdn.com/299287126/files/doc_financials/2023/ar/2022-Shareholder-Letter.pdf",
          "record": "https://links.thingelstad.xyz/links/36561b924cf5/"
        },
        {
          "id": "e4e4dc8f1009",
          "title": "Eight Things to Know about LLMS - Marginal REVOLUTION",
          "url": "https://marginalrevolution.com/marginalrevolution/2023/04/eight-things-to-know-about-llms.html",
          "record": "https://links.thingelstad.xyz/links/e4e4dc8f1009/"
        }
      ]
    },
    "mentions": [],
    "mentioned_by": [],
    "saved_twice": []
  },
  "elsewhere": {
    "wayback": "https://web.archive.org/web/*/https://martinfowler.com/articles/2023-chatgpt-xu-hao.html"
  }
}
