Aller au contenu
Menu

Trouver un programme à partir d’exemples

Show the answers. Get the method.

If you can show correct examples, Duplex can find an executable method that turns your inputs into the outputs you want, check it, and keep it to run on fresh data. You never have to write the formula.

.md

Ask in a way that can be tested.

Give the goal, each input’s name and type, the expected output and a few input–output pairs.

À inclureWhy
Goal and output typeA number, yes/no, text, list or record. A value and a decision made from it are different outputs.
Inputs, in order, with meaningSwapping similar fields can still match some examples. Add a pair whose result changes if they’re swapped.
EdgesEmpty input, equality, negatives, duplicates: say how to handle the ones that occur in your work.
Where the answers come fromA figure your AI proposed and then calls “expected” isn’t independent confirmation.
A held-back checkKeep one input and its known answer out of the search. Run the kept method on it later.

When two methods fit your examples, one input that tells them apart is worth more than a longer description of the goal.

Example: a shipping rule.

Kinds of work it can learn.

Selecting or aggregating records, extracting text, transforming lists, rearranging grids, numerical operations and true/false conditions. Ask your AI which families and input shapes your installation recognizes. For multi-stage work, describe the intermediate outputs; a kept method can become a component where its types fit.

When one formula can’t explain your examples, Duplex can look for a conditional method. Give correct results for every branch: a branch with no examples is unspecified.

Numbers, thresholds and statistics.

KindHow to give examples
Whole numbersDivisors, divisibility, digits, counting. Add a pair where two plausible rules disagree. Say which way to round, and don’t label an undefined case as zero.
Real values and anglesGive each column a meaning and a unit (degrees or radians). State the precision for checking, and whether rounding is intermediate or final.
Thresholds and piecewise rulesSay what happens at equality, and use close values on both sides. For two conditions, show each one alone.
StatistiquesA series in, the statistic out. Keep repeats that are real observations. Use your group’s convention for variance and percentiles.
Dates, durations and unitsA date, an interval and a unit are different things. Give time zones and keep the output unit with the value.
CoefficientsIf two fields move together in every example, add a row that changes them separately. Record the edition of any external constant.

Lists, text, tables and more.

InputWhat to settle in the examples
ListsEach item, a subset, or one result. Edges of windows, duplicates and whether original order matters.
TextExact input and output strings, with whitespace, punctuation and multiple matches as they matter.
TablesColumn meanings, which rows and fields come back, and what to do with unmatched or multiple matches in a join.
MatricesOrientation. Use a second example with a different shape to test which way the operation runs.
Trees, graphs and setsNodes, edges, direction and starting point. Sets are about membership; sequences can depend on order.
Expressions and polynomialsTransform or evaluate? Coefficient order? Hold back a point whose answer you know.
Geometry and vectorsCoordinate order, dimensions and scale. Use inputs off the axes.
Interpolation and fittingThe variable, the measured value and the new position. A value between points says nothing beyond the range.

Retrieve, run or search.

The search can run locally, without an outside model. Your AI can also propose a candidate, complete or as a sketch with steps left open, and Duplex checks it against the same examples, can search for the missing steps, and can ask for an input that separates competing explanations.

TâcheWhat to read
Retrieve a matching resultWhich input, question and conditions matched. Reuse saves time; a fresh computation needs a run on the new values.
Run a kept methodThe method ID and today’s inputs. The output comes from this run, on the values you gave.
Search for a new oneThe goal, examples and any eligible components. Ask which examples a candidate passed; if the budget ran out, what would help next time.

Prompts pour cette page

Tous les prompts →

Copiez-en un, complétez les parties entre chevrons et donnez-le à votre IA.

Demandez à votre IAFind a method from my examples
Use Duplex to find a method from examples. Goal: <goal>. Inputs: <name: type, name: type>. Output: <type and unit>. Examples: <input → output>, <input → output>, <input → output>. At equality, <rule>. Read the objective and unit back to me first. Hold back "<input → output>" and run the kept method on it afterwards.

Where to find more in the MatterSpace Duplex docs:
- Trouver un programme à partir d’exemples, this topic in full: https://www.matterspace.ai/duplex/docs/program-synthesis.md
- Every prompt, and where to paste the standing ones: https://www.matterspace.ai/duplex/docs/prompts.md
- Exact tools, operations, settings and answers: https://www.matterspace.ai/duplex/docs/reference.md
- Errors and what to do about them: https://www.matterspace.ai/duplex/docs/troubleshooting.md
- Every docs page, with what it covers: https://www.matterspace.ai/duplex/docs/llms.txt
Demandez à votre IACheck a formula my AI proposed
Submit your proposed method to Duplex as a candidate and check it against these expected outputs: <input → output>, …. Show me which passed, and for any that failed, the input, the expected output and what the candidate returned.

Where to find more in the MatterSpace Duplex docs:
- Trouver un programme à partir d’exemples, this topic in full: https://www.matterspace.ai/duplex/docs/program-synthesis.md
- Every prompt, and where to paste the standing ones: https://www.matterspace.ai/duplex/docs/prompts.md
- Exact tools, operations, settings and answers: https://www.matterspace.ai/duplex/docs/reference.md
- Errors and what to do about them: https://www.matterspace.ai/duplex/docs/troubleshooting.md
- Every docs page, with what it covers: https://www.matterspace.ai/duplex/docs/llms.txt
Demandez à votre IARun a kept method on new data
Run Duplex skill <skill ID> on these new inputs: <inputs>. Show me the card's input range first, then the computed output from this run. If my inputs fall outside the checked range, say so before running.

Where to find more in the MatterSpace Duplex docs:
- Trouver un programme à partir d’exemples, this topic in full: https://www.matterspace.ai/duplex/docs/program-synthesis.md
- Every prompt, and where to paste the standing ones: https://www.matterspace.ai/duplex/docs/prompts.md
- Exact tools, operations, settings and answers: https://www.matterspace.ai/duplex/docs/reference.md
- Errors and what to do about them: https://www.matterspace.ai/duplex/docs/troubleshooting.md
- Every docs page, with what it covers: https://www.matterspace.ai/duplex/docs/llms.txt