vector-assist-modify-spec

The “vector-assist-modify-spec” tool modifies an existing vector specification with new parameters or overrides, recalculating the generated SQL recommendations to match the updated requirements.

About

The vector-assist-modify-spec tool modifies an existing vector specification (identified by a required spec_id) with new parameters or overrides. Upon modification, it automatically recalculates and refreshes the list of generated recommendations by vector_assist.define-spec to match the updated spec requirements.

Use this tool when a user or agent wants to adjust or fine-tune the configuration of an already defined vector spec (such as changing the target recall, embedding model, or quantization) before actually executing the setup commands. Under the hood, this tool connects to the target database and executes the vector_assist.modify_spec function to generate the updated 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, and that the vector_assist.modify_spec function is available in order for this tool to execute successfully.

Parameters

The tool takes the following input parameters:

ParameterTypeDescriptionRequired
spec_idstringUnique ID of the vector specification to modify.Yes
table_namestringNew table name for the vector workload setup.No
schema_namestringNew schema name containing the target table.No
vector_column_namestringNew name for the column containing vector embeddings.No
text_column_namestringNew name for the text column for vector search.No
vector_index_typestringNew vector index type (‘hnsw’, ‘ivfflat’, or ‘scann’).No
embeddings_availablebooleanUpdate if vector embeddings already exist in the table.No
num_vectorsintegerUpdate the expected total number of vectors.No
dimensionalityintegerUpdate the dimension of vectors or the embedding model.No
embedding_modelstringUpdate the model used for generating vector embeddings.No
prefilter_column_namesarrayUpdate the columns used for prefiltering vector queries.No
distance_funcstringUpdate the distance function (‘cosine’, ‘ip’, ’l2’, ’l1’).No
quantizationstringUpdate the quantization method (’none’, ‘halfvec’, ‘bit’).No
memory_budget_kbintegerUpdate maximum memory (in KB) for index building.No
target_recallfloatUpdate the target recall rate for the index.No
target_top_kintegerUpdate the number of top results (top-K) to retrieve.No
tune_vector_indexbooleanUpdate 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: modify_spec
type: vector-assist-modify-spec
source: my-database-source
description: "This tool modifies an existing vector specification (identified by a required spec_id) with new parameters or overrides. Upon modification, it automatically recalculates and refreshes the list of generated SQL recommendations to match the updated requirements. Use this tool when a user wants to adjust or fine-tune the configuration of an already defined vector spec (such as changing the target recall, embedding model, or quantization) before actually executing the setup commands."

Reference

fieldtyperequireddescription
typestringtrueMust be “vector-assist-modify-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)