---
title: "Refresh Datasource"
description: "Re-queue a knowledge-base datasource for ingestion."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/kb/refresh-datasource"
---
# Refresh Datasource

> Re-queue a knowledge-base datasource for ingestion.

<block-meta block="Yes" channels="Any" folder="kb" group="Knowledge Base" groupTo="/build/workflows/blocks/kb" icon="i-lucide-refresh-cw" pipe="Value" scope="Any" tool="Yes" type="kb.refresh-datasource">



</block-meta>

**Refresh Datasource** (canvas label **KB Refresh Datasource**) re-processes an existing datasource and updates its vectors in the [knowledge base](https://docs.vettero.com/data/knowledge-bases). Other datasources are unchanged.

<warning>

Refresh runs in the background. This block continues as soon as the job is queued — updated vectors are not ready yet. Check **status** with [Get Datasource](https://docs.vettero.com/build/workflows/blocks/kb/get-datasource) (or [List Datasources](https://docs.vettero.com/build/workflows/blocks/kb/list-datasources)) before you [Query](https://docs.vettero.com/build/workflows/blocks/kb/query).

</warning>

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Knowledge base
      </strong>
    </td>
    
    <td>
      Store that owns the datasource (required)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Datasource ID
      </strong>
    </td>
    
    <td>
      Datasource to refresh (required)
    </td>
  </tr>
</tbody>
</table>

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after the refresh is queued
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`). The value is a datasource object (same fields as [Get Datasource](https://docs.vettero.com/build/workflows/blocks/kb/get-datasource)).

## Use case

- Re-index a policy PDF after the source file was replaced.
- Nightly refresh of a structured feed so [Query](https://docs.vettero.com/build/workflows/blocks/kb/query) stays current.

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
