|
Download compiled/which-document-wins.md from swedishembedded/knowledge: direct link, hf CLI and curl.
- Browser
- Download file 4.55 kB
-
https://huggingface.co/swedishembedded/knowledge/resolve/main/compiled/which-document-wins.md
- Command line
-
hf download hf://swedishembedded/knowledge/compiled/which-document-wins.md
-
curl -L -o which-document-wins.md https://huggingface.co/swedishembedded/knowledge/resolve/main/compiled/which-document-wins.md
4.55 kB
| # SPDX-License-Identifier: CC-BY-4.0 | |
| # Copyright (c) 2026 Martin Schröder <info@swedishembedded.com> | |
| title: Answering from documents that disagree | |
| tiers: rule 1, procedure 2, example 3, mistakes 2 | |
| # Answering from documents that disagree | |
| For tasks that ask a question whose answer stands in the materials, where several documents | |
| state different values, or one document amends another. | |
| <!-- tier: 1 --> | |
| ## Rule | |
| **The task's own files and stated rules always win over this page; use this page only for what | |
| the task leaves open.** | |
| 1. **Every document has a rank, given in its header.** The request states the order of | |
| precedence. The common order is: higher authority first; among equal authority the later | |
| date; among equal dates the higher version. | |
| 2. **Compare in that order and stop at the first difference.** A newer date never beats a higher | |
| authority. "The newest document wins" is wrong whenever authorities differ. | |
| 3. **An amendment replaces what it amends**, for the statement it restates. Statements of the | |
| amended document that the amendment does not restate stay in force. | |
| 4. **Only documents that answer the question compete.** A high-ranking document about something | |
| else does not matter; an informal post about the right thing competes, and usually loses. | |
| 5. **Same subject, same attribute.** Two values conflict only if they are about the same | |
| attribute of the same thing. A manual may give several attributes of one device; a post may | |
| give one attribute of another model. | |
| 6. **Give the value exactly as the winning document writes it**, complete with its unit or | |
| wording. Do not shorten, convert or paraphrase. | |
| <!-- tier: 2 --> | |
| ## Procedure | |
| 1. Read the question. Underline the thing and the attribute asked for. | |
| 2. Read **every** document in the materials, each whole, header included. Keep each header | |
| attached to its text: read one file per call, or print all files with their names in one | |
| listing. Do not trust the order in which several results return. | |
| 3. Search all documents for the thing and the attribute (a text search for the key words finds | |
| statements you overlooked). | |
| 4. Make a table of the candidate statements: document, authority, date, version, the value. | |
| 5. Discard candidates about another thing or another attribute. | |
| 6. If one candidate amends another, remove the amended one. | |
| 7. Rank the rest by the request's order of precedence. Take the top one. | |
| 8. Copy its value exactly, with unit. Write the answer in the request's shape, with no added | |
| fields. | |
| <!-- tier: 3 --> | |
| ## Worked example | |
| Illustration only, with invented data. Your task's data differs: take no fact, count or | |
| expected result from this example. | |
| | Document | Authority | Date | Version | Says | | |
| |---|---|---|---|---| | |
| | Boiler handbook | 3 | 2030-02-01 | 1 | "The test pressure of the Larch boiler 2 is 6 bar." "The flush interval of the Larch boiler 2 is 18 months." | | |
| | Boiler handbook, older edition | 3 | 2027-05-02 | 1 | "The flush interval of the Larch boiler 2 is 12 months." | | |
| | Installer forum post | 1 | 2031-03-15 | 1 | "The test pressure of the Larch boiler 2 is 8 bar." | | |
| | Fee schedule | 3 | 2031-01-02 | 2 | (nothing about boilers) | | |
| **Question 1: What is the test pressure of the Larch boiler 2?** | |
| Candidates: handbook (authority 3) says 6 bar; forum post (authority 1) says 8 bar. Authority is | |
| compared first: 3 beats 1. The post's later date plays no part. Answer: `6 bar`. | |
| **Question 2: What is the flush interval of the Larch boiler 2?** | |
| Candidates: handbook, 18 months; older edition, 12 months. Equal authority; the later date wins. | |
| Answer: `18 months`. | |
| The fee schedule has the highest version and a late date, but says nothing on either question: | |
| it is not a candidate. | |
| Answers that would be wrong: `8 bar` (newest wins), `6` (unit dropped), `12 months` (older | |
| edition), `{"value": "6 bar", "source": "handbook"}` (an added field). | |
| <!-- tier: 2 --> | |
| ## Common mistakes | |
| - Preferring the newest document although its authority is lower. | |
| - Mixing up which text belongs to which file after reading several at once, and concluding that | |
| the authoritative document "does not mention" the attribute. | |
| - Not reading every document, so the winning statement was never seen. | |
| - Answering with the value of a neighbouring attribute or of a different model. | |
| - Using the number an amendment replaced. | |
| - Dropping the unit, changing the wording, or converting the unit. | |
| - Adding explanation fields to the answer. | |
| - Answering from general knowledge when the material states another value. | |