“Use a picture. It’s worth a thousand words.” is a classic adage yet it’s constantly ignored by engineers when prompting their LLMs. Yes LLMs used to be text only but now they are multi-modal and incredible at image and spatial understanding. You need to stop treating them as simple chatbot’s to unlock their true potential and become a top tier engineer in this AI era.
The problem with using text, over an image, is that it requires way more text in order to get the same degree of accuracy and information as an image. English (any language really) is incredibly ambiguous and requires the reader to infer, based on context, what the writer is implying.
Engineers resort to taking a 1-2 sentence prompt and expanding it with an LLM to a massive paragraph of text that they glance through and hope is correct. This is a huge waste of time resulting in a TON of incorrect output and wasted effort due to languages ambiguity.
The images you feed to your favorite LLM don’t need to be super artistic, just open up your favorite white board app or a piece of paper and sketch out your idea.
Let’s look at some scenarios where you should apply these learnings.
Visual Design
Website and app design is an obvious choice, providing your agent a mockup will result in less AI slop and a more accurate rendition of your vision.
YourChess is a Chess Puzzle website I built almost exclusively via diagrams and images, giving it an authentic genuine experience and look.
Using mockups gave me the freedom I needed to obsess over any individual pixel I wanted while still moving incredibly fast.
System Implementation
Images are even better for backend systems. They enable the AI to follow or create a clean architecture with self contained modules with clear abstractions and boundaries. Resulting in less, “how did updating X break Y” moments and instead allow multiple subagents to work on parts in parallel to get your finalized product faster.
Iterating on the system is as simple as updating the image and the agents can match the implementation to the diagram. Likewise the agents can update the diagram to quickly convey updates to you.
Continuing the YourChess example, the backend was heavily created via diagrams and handwritten user flows explaining the interaction between the frontend and the backend
Here’s a few of them:
While these diagrams were very crude they were vastly superior to any text prompt that I could have provided.
Everyday work
You should be providing your LLM more screenshots than copy/pasted messages. For example just copy and pasting a slack message from someone will actually hurt the output quality compared to providing a raw screenshot of the message.
Why? LLMs are able to identify the context of screenshot: is it from outlook, from slack or a github code snippet? All of these provide contextual clues to the LLM. The screenshot will show:
- who sent the message, letting the LLM tailor it’s output to provide the right level of precision and scope
- when the message was sent, how urgent is this? Do we need to respond immediately with a high level response and then follow up with next steps?
- the context of the message. Was it sent in a group chat or a public channel or in a DM. Are you the directly responsible individual for the project in question or a passerby
All of these have ramifications on the output phrasing that would not be possible (or require more time for you to provide) if you just copy and paste the image.
As another example I provided an LLM the following screenshot:
not only was it able to identify the bug, but it also found the github repo and the actual commit that had fixed this bug. It did that without needing any additional prompting, just because it was able to identify that this was from github via contextual clues.
Conclusion
If you see yourself writing or generating massive prompts, think to yourself. Can all of this be encoded in an image?