Session 11 / 15๐Ÿ”Žืขื‘

Blueprint files + how to compare with the solution

  • โฌ‡๏ธ S11 - KB Ingest โ€” Drive Watch โ†’ download text โ†’ Repeater (Chunks) โ†’ OpenAI Embeddings โ†’ Pinecone Upsert
  • โฌ‡๏ธ S11 - KB Chat โ€” Webhook โ†’ Embedding โ†’ Pinecone Query โ†’ Iterator + score Filter โ†’ Text aggregator โ†’ OpenAI โ†’ Response

All the files and import instructions: the Blueprint files page.

For every task you will find four layers here: an animated click simulation, an illustrated step-by-step guide (a marked screenshot for every step + "what to click and what to type" instructions), the final result and a table of common problems.

โ„น๏ธ How do you import a Blueprint into Make?
  1. Open a new scenario: Scenarios โ†’ Create a new scenario.
  2. Click โ‹ฏ (More) in the bottom bar โ†’ Import Blueprint.
  3. Choose a JSON file you saved (Export Blueprint) and click Save.
  4. Modules that need a connection will be marked โ€” open each one and choose your connection.
  5. A Blueprint does not include passwords or keys โ€” you always create the connections again.

Solution to Part A โ€” multiple-choice questions

  1. An embedding is:
    โœ… A vector of numbers that represents meaning
    Meaning as numbers.
  2. When are the agent's knowledge files enough?
    โœ… A few fixed documents
    Simple and fast.
  3. Why a fixed ID for every chunk?
    โœ… So an update overwrites and doesn't duplicate
    fileId + chunk number.
  4. What happens if you change the embeddings model?
    โœ… You need to rebuild the store
    Vectors aren't comparable.
  5. Top K is:
    โœ… The number of similar passages retrieved
    Usually 3โ€“6.
  6. Metadata is used for:
    โœ… Citing and filtering (department, file)
    Sources and permissions.
  7. How do you limit a kitchen employee to the kitchen procedures?
    โœ… A filter by department in the query
    Metadata filtering.
  8. The Iterator in ingestion affects:
    โœ… Credits โ€” a module per chunk
    16 chunks = 16 calls.

Solution to task 1: Knowledge files for the agent

The solution in four layers: a click simulation (the cursor shows what to click, what to type and in which order), an illustrated guide for every step, the written steps and a simulation of the result.

๐Ÿ“ธ The illustrated guide โ€” step by step, click by click

For every step: a screenshot of the (simulated) Make editor with the click spot marked, and below it exactly what to click and what to type. You can work from here next to an open Make window.

  1. 1
    Upload
    In the agent โ†’ Knowledge โ†’ Upload.
    Marked screenshot โ€” step 1: Upload
    ๐Ÿ“ธ Step 1.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 1: Upload
    ๐Ÿ“ธ Step 1.2 โ€” the red ring marks where to click
    1. In the left menu click Scenarios โ†’ + Create a new scenario.
    2. Click the scenario name at the top left (New scenario) and type: S11 - Noa + knowledge.
    3. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    4. In the search box type Make AI Agent and click the Make AI Agent app.
    5. In the list of actions choose Run an agent.
    6. In the Knowledge field type: Upload โ†’ returns-policy.pdf, faq.txt
    7. Click OK (or Save) to close the module window.
  2. 2
    Instructions
    Add the sources rule.
    Marked screenshot โ€” step 2: Instructions
    ๐Ÿ“ธ Step 2 โ€” the red ring marks where to click
    1. Click module number 1 to open its settings.
    2. In the Instructions field type: โ€ฆ answer only from the documents and cite the document name as the source โ€ฆ
    3. Click OK.
  3. 3
    Test
    5 questions, document them.
    Marked screenshot โ€” step 3: Test
    ๐Ÿ“ธ Step 3 โ€” the red ring marks where to click
    1. Click โ–ถ Run once at the bottom left.
    2. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    3. The output should look roughly like this:
      {
       "response": "You can return within 14 days with a receipt (source: returns-policy.pdf)."
      }

๐Ÿ› ๏ธ Common problems and how to fix them

SymptomFix
It makes up an answerStrengthen: "If it's not in the documents โ€” say you didn't find it".
A file wasn't taken inAn unsupported type/size โ€” convert to PDF/TXT.

Solution to task 2: Ingestion from Drive

The solution in four layers: a click simulation (the cursor shows what to click, what to type and in which order), an illustrated guide for every step, the written steps and a simulation of the result.

๐Ÿ“ธ The illustrated guide โ€” step by step, click by click

For every step: a screenshot of the (simulated) Make editor with the click spot marked, and below it exactly what to click and what to type. You can work from here next to an open Make window.

  1. 1
    Pinecone
    Create index โ†’ dimensions by the model โ†’ cosine.
    Marked screenshot โ€” step 1: Pinecone
    ๐Ÿ“ธ Step 1 โ€” the red ring marks where to click
    1. Open app.pinecone.io in your browser (the โ€œCreate indexโ€ screen).
    2. On the screen you will see: Name: kb ยท Dimensions: 1536 (text-embedding-3-small) ยท Metric: cosine
    3. Click the Create index button.
  2. 2
    Drive
    Google Drive โ†’ Search files in the folder โ†’ Download (convert to text).
    Marked screenshot โ€” step 2: Drive
    ๐Ÿ“ธ Step 2.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 2: Drive
    ๐Ÿ“ธ Step 2.2 โ€” the red ring marks where to click
    1. In the left menu click Scenarios โ†’ + Create a new scenario.
    2. Click the scenario name at the top left (New scenario) and type: S11 - Ingestion.
    3. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    4. In the search box type Google Drive and click the Google Drive app.
    5. In the list of actions choose Search for Files/Folders.
    6. In the Folder field type: Knowledge
    7. Click OK (or Save) to close the module window.
    8. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    9. In the search box type Google Drive and click the Google Drive app.
    10. In the list of actions choose Download a File.
    11. In the Convert field type: Google Docs โ†’ Plain text
    12. Click OK (or Save) to close the module window.
  3. 3
    Chunks
    A Repeater + substring (or Make Code).
    Marked screenshot โ€” step 3: Chunks
    ๐Ÿ“ธ Step 3.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 3: Chunks
    ๐Ÿ“ธ Step 3.2 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type Flow Control and click the Flow Control app.
    3. In the list of actions choose Repeater.
    4. In the Repeats field map (drag from the panel or type): {{ceil(length(2.data) / 1000)}}
    5. Click OK (or Save) to close the module window.
    6. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    7. In the search box type Tools and click the Tools app.
    8. In the list of actions choose Set variable.
    9. In the chunk field map (drag from the panel or type): {{substring(2.data; (3.i - 1) * 900; 3.i * 900 + 100)}}
    10. Click OK (or Save) to close the module window.
  4. 4
    Embeddings
    OpenAI โ†’ Create embeddings โ†’ Input = chunk.
    Marked screenshot โ€” step 4: Embeddings
    ๐Ÿ“ธ Step 4 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type OpenAI and click the OpenAI app.
    3. In the list of actions choose Create embeddings.
    4. In the Model field type: text-embedding-3-small
    5. In the Input field map (drag from the panel or type): {{4.chunk}}
    6. Click OK (or Save) to close the module window.
  5. 5
    Upsert
    Pinecone โ†’ Upsert vectors: ID {{fileId}}-{{i}}, Values = embedding, Metadata = source, url, text.
    Marked screenshot โ€” step 5: Upsert
    ๐Ÿ“ธ Step 5.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 5: Upsert
    ๐Ÿ“ธ Step 5.2 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type Vector store and click the Vector store app.
    3. In the list of actions choose Upsert vectors.
    4. In the ID field map (drag from the panel or type): {{1.id}}-{{3.i}}
    5. In the Values field map (drag from the panel or type): {{5.embedding}}
    6. In the Metadata field type: source, url, text
    7. Click OK (or Save) to close the module window.
    8. Click โ–ถ Run once at the bottom left.
    9. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    10. The output should look roughly like this:
      {
       "upserted": 9
      }

๐ŸŽฌ The final result โ€” run the simulation

๐Ÿ› ๏ธ Common problems and how to fix them

SymptomFix
Dimension mismatchThe index was created with a different number of dimensions than the model.
DuplicatesThe ID isn't fixed (it includes a timestamp).
High CreditsIngestion runs on every file every time โ€” watch only new/updated ones.

Solution to task 3: A query that cites sources

The solution in four layers: a click simulation (the cursor shows what to click, what to type and in which order), an illustrated guide for every step, the written steps and a simulation of the result.

๐Ÿ“ธ The illustrated guide โ€” step by step, click by click

For every step: a screenshot of the (simulated) Make editor with the click spot marked, and below it exactly what to click and what to type. You can work from here next to an open Make window.

  1. 1
    Question
    Webhook / Telegram.
    Marked screenshot โ€” step 1: Question
    ๐Ÿ“ธ Step 1.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 1: Question
    ๐Ÿ“ธ Step 1.2 โ€” the red ring marks where to click
    1. In the left menu click Scenarios โ†’ + Create a new scenario.
    2. Click the scenario name at the top left (New scenario) and type: S11 - Question.
    3. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    4. In the search box type Telegram Bot and click the Telegram Bot app.
    5. In the list of actions choose Watch Updates.
    6. Keep the defaults.
    7. Click OK (or Save) to close the module window.
  2. 2
    Embedding
    The same model!
    Marked screenshot โ€” step 2: Embedding
    ๐Ÿ“ธ Step 2 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type OpenAI and click the OpenAI app.
    3. In the list of actions choose Create embeddings.
    4. In the Model field type: text-embedding-3-small (same model!)
    5. In the Input field map (drag from the panel or type): {{1.message.text}}
    6. Click OK (or Save) to close the module window.
  3. 3
    Query
    Pinecone โ†’ Query, topK 4.
    Marked screenshot โ€” step 3: Query
    ๐Ÿ“ธ Step 3 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type Vector store and click the Vector store app.
    3. In the list of actions choose Query.
    4. In the Vector field map (drag from the panel or type): {{2.embedding}}
    5. In the topK field choose: 4
    6. In the Include metadata field choose: Yes
    7. Click OK (or Save) to close the module window.
  4. 4
    Filtering
    Iterator โ†’ Filter score โ†’ Text aggregator.
    Marked screenshot โ€” step 4: Filtering
    ๐Ÿ“ธ Step 4.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 4: Filtering
    ๐Ÿ“ธ Step 4.2 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type Flow Control and click the Flow Control app.
    3. In the list of actions choose Iterator.
    4. In the Array field map (drag from the panel or type): {{3.matches}}
    5. Click OK (or Save) to close the module window.
    6. Click the ๐Ÿ”ง icon on the line between the last two modules โ†’ Set up a filter.
    7. In the Label field type: Relevant.
    8. In Condition set: score ยท Greater than ยท 0.75 (pick the field from the panel, the operator from the list, and type a value).
    9. Click OK โ€” a funnel icon appears on the line.
    10. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    11. In the search box type Tools and click the Tools app.
    12. In the list of actions choose Text aggregator.
    13. In the Text field map (drag from the panel or type): [{{4.metadata.source}}] {{4.metadata.text}}
    14. Click OK (or Save) to close the module window.
  5. 5
    Answer
    An LLM with the prompt from the lecture.
    Marked screenshot โ€” step 5: Answer
    ๐Ÿ“ธ Step 5.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 5: Answer
    ๐Ÿ“ธ Step 5.2 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type Make AI Toolkit and click the Make AI Toolkit app.
    3. In the list of actions choose Ask anything.
    4. In the Prompt field map (drag from the panel or type): Answer only from the context, cite the source. If not there โ€” "I couldn't find it". {{5.text}}
    5. Click OK (or Save) to close the module window.
    6. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    7. In the search box type Telegram Bot and click the Telegram Bot app.
    8. In the list of actions choose Send a Text Message or a Reply.
    9. Keep the defaults.
    10. Click OK (or Save) to close the module window.
    11. Click โ–ถ Run once at the bottom left.
    12. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    13. The output should look roughly like this:
      {
       "answer": "Return within 14 days with a receipt (returns-policy.pdf)"
      }

๐ŸŽฌ The final result โ€” run the simulation

๐Ÿ› ๏ธ Common problems and how to fix them

SymptomFix
Always "I didn't find it"The threshold is too high or the embeddings model differs from ingestion.
Wrong sourcesThe LLM didn't get the file name in the context.

Solution to task 4: RAG as a tool for Noa

The solution in four layers: a click simulation (the cursor shows what to click, what to type and in which order), an illustrated guide for every step, the written steps and a simulation of the result.

๐Ÿ“ธ The illustrated guide โ€” step by step, click by click

For every step: a screenshot of the (simulated) Make editor with the click spot marked, and below it exactly what to click and what to type. You can work from here next to an open Make window.

  1. 1
    Inputs/Outputs
    Scenario inputs: question; Return output.
    Marked screenshot โ€” step 1: Inputs/Outputs
    ๐Ÿ“ธ Step 1.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 1: Inputs/Outputs
    ๐Ÿ“ธ Step 1.2 โ€” the red ring marks where to click
    1. In the left menu click Scenarios โ†’ + Create a new scenario.
    2. Click the scenario name at the top left (New scenario) and type: kb_search.
    3. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    4. In the search box type Scenarios and click the Scenarios app.
    5. In the list of actions choose Start scenario.
    6. Keep the defaults.
    7. Click OK (or Save) to close the module window.
    8. Click โš™๏ธ Scenario settings in the bottom bar.
    9. In the Scenario inputs field type: question (Text, required)
    10. In the Scenario outputs field type: answer, sources
    11. Click OK.
    12. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    13. In the search box type Scenarios and click the Scenarios app.
    14. In the list of actions choose Return output.
    15. In the answer field map (drag from the panel or type): {{โ€ฆ}}
    16. In the sources field map (drag from the panel or type): {{โ€ฆ}}
    17. Click OK (or Save) to close the module window.
  2. 2
    On demand
    Scheduling: On demand.
    Marked screenshot โ€” step 2: On demand
    ๐Ÿ“ธ Step 2 โ€” the red ring marks where to click
    1. Click the clock ๐Ÿ•’ in the bottom bar (next to the ON/OFF switch).
    2. In the schedule settings choose: On demand and click OK.
    3. Switch the toggle OFF โ†’ ON in the bottom bar so the scenario runs on its schedule.
  3. 3
    Tool
    In Noa: Add tool โ†’ Scenario.
    Marked screenshot โ€” step 3: Tool
    ๐Ÿ“ธ Step 3.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 3: Tool
    ๐Ÿ“ธ Step 3.2 โ€” the red ring marks where to click
    1. In the left menu click Scenarios โ†’ + Create a new scenario.
    2. Click the scenario name at the top left (New scenario) and type: S10 - Noa.
    3. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    4. In the search box type Make AI Agent and click the Make AI Agent app.
    5. In the list of actions choose Run an agent.
    6. In the Tools field type: Add tool โ†’ Scenario โ†’ kb_search
    7. Click OK (or Save) to close the module window.
  4. 4
    Test
    "Order 48213 arrived damaged, what do I do?"
    Marked screenshot โ€” step 4: Test
    ๐Ÿ“ธ Step 4 โ€” the red ring marks where to click
    1. Click โ–ถ Run once at the bottom left.
    2. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    3. The output should look roughly like this:
      {
       "response": "We're sorry! Per our policy you can get a replacement within 14 days โ€” send a photo of the defect.",
       "toolCalls": [
        "get_order",
        "kb_search"
       ]
      }

๐Ÿ› ๏ธ Common problems and how to fix them

SymptomFix
The agent doesn't searchThe tool's description and the instructions aren't clear.

Solution to the bonus challenge

An eval sheet: question, expected, expected_source. A scenario: Search Rows โ†’ Query (as in practice) โ†’ an LLM judge ("does the answer match? yes/no") โ†’ Update a Row. Run it after every change. It's RAG's "unit test".