> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phinite.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Referencing Collections in Agents

> Attach collections to agent nodes via the RAG tab.

## Steps

<Steps>
  <Step title="Open the agent node">
    <Frame>
      <img src="https://mintcdn.com/phinite/spbPnSZPWmAXAKhH/images/open-the-agent-block-1.png?fit=max&auto=format&n=spbPnSZPWmAXAKhH&q=85&s=67acdac6d02a9375a8d85d4a0d9aa0e5" alt="Step 1 Pn" lightAlt="open the agent block" darkAlt="Step 1 Pn" className="dark:hidden" width="1919" height="876" data-path="images/open-the-agent-block-1.png" />

      <img src="https://mintcdn.com/phinite/xp-hGhAsfc5Tmxkf/images/step-1.png?fit=max&auto=format&n=xp-hGhAsfc5Tmxkf&q=85&s=0ca39526734e448366f338b6c903304b" alt="Step 1 Pn" lightAlt="open the agent block" darkAlt="Step 1 Pn" className="hidden dark:block" width="2936" height="1826" data-path="images/step-1.png" />
    </Frame>

    Select the agent and open the RAG tab.
  </Step>

  <Step title="Select data source and items">
    <Frame>
      <img src="https://mintcdn.com/phinite/spbPnSZPWmAXAKhH/images/select-a-collection.png?fit=max&auto=format&n=spbPnSZPWmAXAKhH&q=85&s=31f6e03f6f8b3b1446fc2665df9e50b1" alt="Step 2 Pn" lightAlt="select a collection" darkAlt="Step 2 Pn" className="dark:hidden" width="1918" height="870" data-path="images/select-a-collection.png" />

      <img src="https://mintcdn.com/phinite/Rudy5VmEbE2VnoYL/images/step-2.png?fit=max&auto=format&n=Rudy5VmEbE2VnoYL&q=85&s=78cffe95cb2dba0c4037592f5d40557d" alt="Step 2 Pn" lightAlt="select a collection" darkAlt="Step 2 Pn" className="hidden dark:block" width="2928" height="1816" data-path="images/step-2.png" />
    </Frame>

    Choose a source and add the most relevant items (or collection) for this task.
  </Step>

  <Step title="Save and test">
    <Frame>
      <img src="https://mintcdn.com/phinite/spbPnSZPWmAXAKhH/images/choose-a-data-source-2.png?fit=max&auto=format&n=spbPnSZPWmAXAKhH&q=85&s=19a7c66fd50fe0f513f1846342d17c49" alt="Step 3 Pn" lightAlt="data source items" darkAlt="Step 3 Pn" className="dark:hidden" width="1916" height="873" data-path="images/choose-a-data-source-2.png" />

      <img src="https://mintcdn.com/phinite/FEczPNNBSO2cy0g9/images/step-3.png?fit=max&auto=format&n=FEczPNNBSO2cy0g9&q=85&s=77b2206c5360392bbc266e502c623886" alt="Step 3 Pn" lightAlt="data source items" darkAlt="Step 3 Pn" className="hidden dark:block" width="2928" height="1824" data-path="images/step-3.png" />
    </Frame>

    Save the configuration and test the agent on sample inputs.
  </Step>
</Steps>

<Check>
  The agent should now cite or leverage attached knowledge where appropriate.
</Check>
