vector-assist-define-spec

The “vector-assist-define-spec” tool defines a new vector specification by capturing the user’s intent and requirements for a vector search workload, generating SQL recommendations for setting up database, embeddings, and vector indexes.

About

The vector-assist-define-spec tool defines a new vector specification by capturing the user’s intent and requirements for a vector search workload. It generates a complete, ordered set of SQL recommendations required to set up the database, embeddings, and vector indexes.

Use this tool at the very beginning of the vector setup process when an agent or user first wants to configure a table for vector search, generate embeddings, or create a new vector index. Under the hood, this tool connects to the target database and executes the vector_assist.define_spec function to generate the necessary specifications.

Compatible Sources

This tool can be used with the following database sources:

Source Name
Cloud SQL for PostgreSQL Source

Requirements

Tip

Ensure that your target PostgreSQL database has the required vector_assist extension installed, in order for this tool to execute successfully.

Parameters

The tool takes the following input parameters:

ParameterTypeDescriptionRequired
table_namestringTarget table name for setting up the vector workload.Yes
schema_namestringName of the schema containing the target table.No
spec_idstringUnique ID for the vector specification; auto-generated if omitted.No
vector_column_namestringName of the column containing the vector embeddings.No
text_column_namestringName of the text column for setting up vector search.No
vector_index_typestringType of vector index (‘hnsw’, ‘ivfflat’, or ‘scann’).No
embeddings_availablebooleanIndicates if vector embeddings already exist in the table.No
num_vectorsintegerExpected total number of vectors in the dataset.No
dimensionalityintegerDimension of existing vectors or the chosen embedding model.No
embedding_modelstringModel to be used for generating vector embeddings.No
prefilter_column_namesarrayList of columns to use for prefiltering vector queries.No
distance_funcstringDistance function for comparing vectors (‘cosine’, ‘ip’, ’l2’, ’l1’).No
quantizationstringQuantization method for vector indexes (’none’, ‘halfvec’, ‘bit’).No
memory_budget_kbintegerMaximum memory (in KB) the index can use during build.No
target_recallfloatTarget recall rate for standard vector queries using this index.No
target_top_kintegerNumber of top results (top-K) to retrieve per query.No
tune_vector_indexbooleanIndicates whether automatic tuning is required for the index.No

Note Parameters are marked as required or optional based on the vector assist function definitions. The function may perform further validation on optional parameters to ensure all necessary data is available before returning a response.

Example

kind: tool
name: define_spec
type: vector-assist-define-spec
source: my-database-source
description: "This tool defines a new vector specification by capturing the user's intent and requirements for a vector search workload. This generates a complete, ordered set of SQL recommendations required to set up the database, embeddings, and vector indexes. Use this tool at the very beginning of the vector setup process when a user first wants to configure a table for vector search, generate embeddings, or create a new vector index."

Reference

fieldtyperequireddescription
typestringtrueMust be “vector-assist-define-spec”.
sourcestringtrueName of the source the SQL should execute on.
descriptionstringfalseDescription of the tool that is passed to the agent.



Last modified April 13, 2026: chore(main): release 1.1.0 (#3024) (da6f5f8)