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 thelangchain 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:API reference
For detailed documentation of all VectorStoreToolkit features and configurations head to the API reference.Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.