Skip to content
Agents · 6 of 6 · about 25 minutes · With a year

Answer from two documents

Some questions have no answer in one document. In which city is the customer of order 17? One document gives the customer of the order. A second document gives the city of that customer. This is a multi-hop question: the fact from the first lookup is the key for the next one. The agent follows the links one at a time. Two guards keep the path safe: a limit of hops, and a check that the path does not make a circle.

About this lesson

Words to know

multi-hop question
A question that needs two or more lookups, where the result of one lookup is the input of the next.

Why it matters

The path is the evidence of the answer: each fact in it is the result of one lookup. A user or a test can check each hop, which is not possible with one long guess.

With a year

How it works, a worked example, the exercise with its tests, three hints and the explained solution are in the app, with a year of Algo150 for $29 or ₾49. The first chapter, Model foundations, is free for everyone: start with Vector dot product.

What a year includes