In this video, you asked the rules desk a question that no rulebook answers, saw what came back, and added a covered field so that “the rulebooks don’t say” is an answer your code can read and reply to.
Key Points
- A question the rulebooks don’t cover. Table 1 has a new question: whether a seventh player can join Lantern Harbor by sharing a boat. The rulebook never counts the players or mentions sharing a boat. Its components list gives a boat in each player color, without saying how many colors.
- What the last lesson’s version did. With only
{ answer, citations }and “answer only from those chunks”, the model gave a firm “No” and citedlantern-harbor-3, the setup rules on page 2: “Each player chooses a color, takes that color’s boat”. It did in five of five runs, though your wording will differ. - A ruling from silence. The model turned the rulebook’s silence into a ruling. Its last sentence noticed the gap, but it still led with no, and the citation made the ruling look backed. So table 1 turns a player away on a rule the publisher never wrote.
- Same shape, no way to tell. Table 6’s covered question and table 1’s uncovered one came back with the same shape: an answer and at least one citation. The instructions never asked the model to say when the chunks don’t answer, and the record had no field for it.
- A
coveredfield.ANSWER_SCHEMAgetscovered: z.boolean(), and the instructions get one sentence telling the model: if the chunks don’t state the rule the question asks about, setcoveredto false, leave citations empty, and say that the rulebooks don’t say. The model’s wording is only for the record. Your code chooses what the player sees. - Your code chooses the reply.
reply()returns an apology when there’s no record. Whencoveredis false or the answer cites no chunk to back it, it returns a fixed reply,DONT_SAY. Otherwise, it returns the model’s answer. The model’s wording changes every run, butDONT_SAYtells each player the same thing: the pages the desk found don’t say, so ask a staff member. Table 1 came back withcoveredfalse and no citations in five of five runs, and the desk gave its fixed reply. coveredis the model’s judgment. It’s model output, like the answer. On another question, it could come back true, and cite a chunk, for a rule the pages never state, so the instruction makes a decline possible, not certain. And the search can miss a page, so the fixed reply only speaks for the pages the desk found.- The cost. In this run, the new sentence and field added 41 input tokens per call. Table 1’s went from 552 to 593.
The rule:
covered: z.boolean()in the schema.- Instructions: when the chunks don’t state the rule, set
coveredto false (a request, not a guarantee). - Your code picks the reply:
DONT_SAYwhen not covered or nothing cited.