Skip to main content

Mastra.listVectors()

The .listVectors() method is used to retrieve all vector stores that have been configured in the Mastra instance.

Usage example
Direct link to Usage example

mastra.listVectors()

Parameters
Direct link to Parameters

This method doesn't accept any parameters.

Returns
Direct link to Returns

vectors:

TVectors
A record of all configured vector stores, where keys are vector store names and values are vector store instances.
On this page