Bitpath

Lesson 2 · Unit 04

Retrieval and tools

Bring knowledge in, let actions out

13 exercisesabout 3 min

What you practise

  • Embed, search, paste into the prompt (RAG) and where it fails
  • Tool calling as structured output the program executes
  • An agent is a loop

Try a question from this lesson

Pick one

A model finished training last year. A user asks about a report written this morning. The weights cannot change. How can the app still get a grounded answer?

The idea

Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.

Concept

Tools: text that asks for action

A model can only produce tokens. To "use a tool" it writes a structured request, naming a function and its arguments, in a format the app has described to it.

The program around the model parses that text, runs the real function, and appends the result to the context. Then the model continues, with the result in view.

model   {"tool": "get_weather",
         "args": {"city": "Oslo"}}
program runs get_weather("Oslo")
program appends "4 C, rain"
model   "It is 4 C and raining."

11 more exercises in the app

  • 2× order the lines
  • 3× type the answer
  • 1× fill the blanks
  • 3× multiple choice
  • 1× true or false
  • 1× match the pairs

Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.

One email when Bitpath is ready to try. Nothing else. Privacy