Skip to main content

Manage embeddings in Retool Vectors

Learn how to manage text embeddings stored in Retool Vectors.

You can use Retool Vectors to store plain text or extracted text from PDF documents, or text from publicly accessible web pages.

Create a vector

Within the scope of Retool Vectors, a Vector is a collection of unstructured text (known as embeddings). You create a vector to define the overall relationship and then add text or URLs to it. For example, if you wanted to build an AI-powered chat tool and want it to use context from your support site, you would create a vector (such as Documentation) and add URLs from your documentation site.

To create a Vector:

  1. Navigate to the Resources settings and click Retool Vectors.
  2. Click Add Vector.
  3. Specify a name for the vector and the type of content it will contain.
Vector contents

Each vector you create can contain either document text or URLs, not both.

Edit a vector

You can edit the name and description of a vector. Select the vector to edit, click •••, then select Edit vector details.

If necessary, click Delete Vector to remove it. All vector data will be removed and cannot be recovered—you would need to recreate the vector.

Remove documents and URLs

Toggle the checkbox next to the document or URL in a vector to select it, then click Delete.

You can add documents or plain text to a vector manually or query the Retool Vectors resource in apps or workflows.

List Vectors

You can query the Retool Vectors resource in apps or workflows to list all available Vectors. This enables you to build apps that allows users to select a Vector and perform further actions, such as adding documents or URLs to it.

  1. Set Resource to Retool Vectors.
  2. Set Vector action to List all Vectors.