> Discover all available pages from the documentation index: https://mastra.zisheng.pro/ja/llms.txt # Mastra.getVector() `.getVector()` メソッドは、名前で Vector Store を取得します。Vector Store 名を表す単一の `string` パラメーターを受け取ります。 ## 使用例 ```typescript mastra.getVector('testVectorStore') ``` ## パラメーター **name** (`TVectorName extends keyof TVectors`): 取得する Vector Store の名前。Mastra の設定に存在する有効な Vector Store 名である必要があります。 ## 戻り値 **vector** (`TVectors[TVectorName]`): 指定した名前の Vector Store インスタンス。Vector Store が見つからない場合はエラーをスローします。 ## 関連項目 - [Vector Store の概要](https://mastra.zisheng.pro/ja/guides/rag/vector-databases) - [RAG の概要](https://mastra.zisheng.pro/ja/guides/rag/overview)