Skip to main content
This will help you getting started with VectorStoreToolkit toolkits. For detailed documentation of all VectorStoreToolkit features and configurations head to the API reference. The VectorStoreToolkit is a toolkit which takes in a vector store, and converts it to a tool which can then be invoked, passed to LLMs, agents and more.

Setup

If you want to get automated tracing from runs of individual tools, you can also set your LangSmith API key by uncommenting below:

Installation

This toolkit lives in the langchain package:

Instantiation

Now we can instantiate our toolkit. First, we need to define the LLM we’ll use in the toolkit.

Tools

Here, we can see it converts our vector store into a tool:

Use within an agent

First, ensure you have LangGraph installed:
Then, instantiate the agent:

API reference

For detailed documentation of all VectorStoreToolkit features and configurations head to the API reference.