Skip to Content
DataHow answers are made

How the DFO answers a question

How the DFO turns a question into numbers, which steps use a language model and which run as code, and when it asks, plans, or refuses.

Every number the DFO returns comes from a published source, and the answer gives that source. Language models read your question and choose which data to fetch. Code fetches the data and runs every calculation. Because models can misread a question or pick the wrong indicator, check any number against its source before you publish it.

From a question to the numbers

Take the question "How did France's net ODA change between 2015 and 2023?"

  1. A model reads the question and breaks it into parts: what is measured (net ODA), the place (France), the years (2015 to 2023), and any unit or source you named.
  2. The DFO searches the knowledge graph for matching indicators. The graph combines data from the OECD, the World Bank, the IMF, and other publishers under shared codes for places, years, and units.
  3. A model picks the best match, and the DFO checks that the match has data for the places and years you asked about.
  4. The result is a spec, which describes the data to fetch. The DFO computes its ID, the spec_id, from the spec, so the same spec always gets the same ID.
  5. Code fetches the data for that spec, with the source of every row. The content_version identifies the rows returned and changes when the rows change, for example when the publisher revises the data. An answer that cites both spec_id and content_version identifies the exact data behind it.
  6. The change between two years is a calculation, so code runs it as a named analysis step over the fetched data. In Studio, a card's More Info lists these steps.

You then get the numbers and their sources through /data, DFO Studio, a connected assistant (such as Claude or ChatGPT), or the API.

What the models do

Google's Gemini models read your question and, in Studio, plan the analysis and write the reply. Jev, a model from TypeSafe, matches your question to the DFO's indicators. Fetching data, converting units, arithmetic, and building charts all run as code.

The DFO answers only from the data in the graph. It does not search the open web or use a model's memory of numbers.

In Studio, a model writes the reply around the cards, and a connected assistant writes the answer from the data the DFO sent. A model can misstate or round a number as it writes, so check the reply against the table, the chart, or the source.

When the DFO asks, plans, or refuses

  • It offers a choice when your question has more than one interpretation. "Congo" matches two countries, and "aid" matches several indicators. The DFO shows the interpretations it found and lets you choose.
  • It plans before a large piece of work in Studio. For a broad question, Studio drafts a step-by-step research plan and waits for you to approve it under Start building?.
  • It refuses when it has no data for the question or when the question falls outside development finance. The refusal gives the reason and may include the nearest indicator the DFO has. When the DFO cannot answer covers what to do next.

A connected assistant gets the same interpretations and refusals as data, and decides itself what to do with them. It may choose an interpretation for you, or answer from its general knowledge after a refusal, so check that its answer gives a DFO source.

One search for every interface

/data, Studio, connected assistants, and the API all run the same search over the same data. They differ in what they do with the result:

  • /data answers one question with a table you can download and share.
  • Studio adds analysis steps, charts, tables, and a written reply on a canvas.
  • A connected assistant receives the data and its source, then writes the answer.
  • The API returns the spec and the data to your code.

Who runs the DFO

The DFO is an initiative by ONE Data, part of the ONE Campaign. It has support from Google.org and from The Rockefeller Foundation, through its public charity RF Catalytic Capital. It is built on Data Commons, Google's open knowledge graph. About the DFO has more, and the AI policy explains what happens to the text you type. Report a wrong or unsourced answer to [email protected].