Skip to main content
Mastra v1 was released! Start new projects with v1 or upgrade your existing project today.

Mastra.getVectors()

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

Usage exampleDirect link to Usage example

mastra.getVectors();

ParametersDirect link to Parameters

This method does not accept any parameters.

ReturnsDirect 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