liveBook · Manning

Multiple methods

As explained in Coding with AI

A problem-solving technique that requests or applies several independent approaches and compares their results.

Multiple methods is a problem-solving technique that tries several approaches, compares their results, and uses agreement to increase confidence. It helps refine uncertain answers but cannot eliminate stochastic model errors. section 9.4.5

A practical workflow combines multiple methods with other prompt-refinement techniques:

  • Give explicit, increasingly specific instructions. section 9.4.5
  • Try several ways to approach the problem. section 9.4.5
  • Ask the model to show its work and add context cues that guide the intended technique. section 9.4.5

Checking a multiplication result

For 234 x 432, three approaches consistently produce 101,088, increasing confidence in that answer. Repeating the exact prompt can still produce incorrect results because language models are stochastic and are not designed for computation. section 9.4.5

How Coding with AI covers it

How deep it goes
Demonstrates a practical workflow and cautions that agreement does not prevent stochastic errors or replace computation tools.
Examples
Uses three approaches to check 234 x 432 and obtain the consistent result 101,088.
What you can do after
Evaluate uncertain model answers by requesting several approaches and comparing their results, while recognizing when computation tools are preferable.
How it connects
Connects multiple methods with explicit instructions, showing work, context cues, and iterative prompting.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Coding with AI. The section links point to the parts of the book it draws on.