Source Attribution

Every source in an answer carries a percentage. This page explains what that number measures, how Miso calculates it, and what it does not mean.

Field What it is
_attribution_length The length, in characters, of the passage Miso sent to the model for this source.
_attribution_length_percentage That length as a share of every cited passage. Two decimal places.

Together they answer one question: of all the material behind this answer, how much came from this source?

For the rest of the answer payload, see Answer Response Fields.

Every entry in sources carries two extra fields:

Field What it is
_attribution_length The length, in characters, of the passage Miso sent to the model for this source.
_attribution_length_percentage That length as a share of every cited passage. Two decimal places.

Together they answer one question: of all the material behind this answer, how much came from this source?

How an answer is built

Miso does not answer from memory. It reads your content first, in three steps:

  1. Search. Miso finds the passages that relate to the question.
  2. Send. Miso sends the best passages to the model. Each one is a candidate.
  3. Cite. The model writes the answer, and cites the candidates it used.

A candidate the model cites becomes a source. The others are dropped.

Sent is not the same as cited

This distinction controls the whole calculation.

Stage Counted?
Passages the search found No
Passages Miso sent to the model No, not on their own
Passages the model cited Yes

Send 10 candidates, and the model cites 3. Those 3 become sources, their percentages add up to 100, and the other 7 add nothing.

The calculation

  1. Take the cited sources. Ignore every other candidate.
  2. For each one, measure the passage Miso sent to the model.
  3. Add the lengths together.
  4. Divide each length by the total, then multiply by 100.

See the worked example below for a real one.

A worked example

The example below uses the Wikinews example catalogue. The question:

What did Wikinews report about the Linux operating system?

Miso answered from three articles:

Wikinews reported extensively on the major shift in the CentOS ecosystem following Red Hat's December 2020 announcement to move focus away from CentOS Linux in favor of CentOS Stream…

The sources array beside it, trimmed to the fields that matter here:

[
  {
    "product_id": "wikinews-2911293",
    "title": "Gregory Kurtzer discusses plans for Rocky Linux with Wikinews",
    "date": "2020-12-18T00:00:00+00:00",
    "_attribution_length": 9588,
    "_attribution_length_percentage": 59.28
  },
  {
    "product_id": "wikinews-2911067",
    "title": "Red Hat to move focus away from CentOS in favour of Stream",
    "date": "2020-12-14T00:00:00+00:00",
    "_attribution_length": 4845,
    "_attribution_length_percentage": 29.96
  },
  {
    "product_id": "wikinews-2911401",
    "title": "Wikinews 2020: An 'Original reporting' year in review",
    "date": "2021-01-01T00:00:00+00:00",
    "_attribution_length": 1741,
    "_attribution_length_percentage": 10.76
  }
]

Check it yourself. The three passages add up to 9588 + 4845 + 1741 = 16,174 characters, and each percentage is that source's share:

Source Sent Share Percentage
Rocky Linux interview 9,588 9588 ÷ 16174 59.28%
Red Hat moves away from CentOS 4,845 4845 ÷ 16174 29.96%
Year in review 1,741 1741 ÷ 16174 10.76%
Total 16,174 100%

Rounding to two decimal places means the total can read 100.01 or 99.99 on another answer. Do not test for exactly 100.

Note what the numbers do not say. The interview scored 59.28% because it is a long interview, not because it settled the question. The year-in-review article scored 10.76% because Miso sent a short passage from it. The percentage follows the length of the passage, not how much of it the model used.

Which text is measured

Three lengths exist for one source. Miso measures the middle one:

Text Measured?
The full article on your site No
The passage sent to the model Yes
The short extract shown on screen No

Miso removes the layout markup before it measures.

How to read it

The percentage measures supplied material, not importance. The model can read a long passage and take one fact from it. Three consequences follow:

  • Length shapes the number. A longer passage scores higher than a short one.
  • A short source can carry the key fact. Its percentage stays small, because the percentage follows the length of the passage.
  • The number of citations does not change it. One citation or five, the passage length is the same.

Take a reader who asks for the date of a court decision:

Source What it supplied Sent Percentage
A background feature Context the answer mentions in passing 8,000 characters 88.89%
A court notice The date itself, which is the answer 1,000 characters 11.11%

Both figures are correct. They describe volume. The feature supplied most of the material, and the notice supplied the decisive fact. Read the percentage with the answer text and the citation markers to see how each source was used.

In short

Question Answer
What does it measure? The passage sent to the model, as a share of all cited passages.
Which sources count? Only the ones the model cited.
Are uncited candidates counted? No. They are ignored, even though the model received them.
What is the unit? Percent of characters, to two decimal places.
Does it measure importance? No. It measures supplied material.
Is it a quality score? No.