The human–LLM loop
The cycle of interaction between human and LLM is simple at base. The human presents "prompts" (requests in prose) and the LLM then chains through all of human knowledge to generate answers.
Virtuous cycle between human and LLM
Looked at in more detail, both human and LLM draw on knowledge, to make this a virtuous cycle.
- Human reflects on domain knowledge (deeply understood).
- Human writes prose as prompt for the LLM.
- LLM takes the prompt.
- LLM chains through all human knowledge.
- LLM generates a response for the human (product).
- Human reads response from LLM, and reflects (1).
This cycle repeats until the desired objective is reached.
Project guidance as prompt library
As you learn to use an LLM, you run across many unwanted behaviors. Over time you learn how to constrain behavior by providing guidance through a library of prompts. You use that library of prompts across projects.
With a project library you can:
- Ensure the use of consistent naming conventions.
- Constrain the LLM to measured iterations.
- Require documentation for each step.
- Require tests built and passed for each step.
- Avoid common patterns of LLM-failure.
Proper use of a project library greatly improves the products generated by the LLM. Building a project library for use with an LLM is something like training an auxiliary brain.
Once trained, an LLM can do work much like you might have done, but in less time.
Slightly non-deterministic
Note that "reasoning" in an LLM is slightly non-deterministic. Different models might come to different result. Different versions of the same model might come to different result. Different runs with the same model might come to different result.
While not often encountered, the slight non-determinism of LLMs is an occasional problem. This is an as-yet unsolved problem with use of LLMs.
We can reduce the scope of occasional misbehavior by requiring the LLM to work in measured iterations.
Printable sheet — one landscape US-Letter page: SVG, 254 × 190.5 mm