scikit-learn is an open-source collection of machine learning algorithms, including some implementations of the k nearest neighbors. SKLearnVectorStore wraps this implementation and adds the possibility to persist the vector store in json, bson (binary json) or Apache Parquet format.
This notebook shows how to use the SKLearnVectorStore vector database.
You’ll need to install langchain-community with pip install -qU langchain-community to use this integration
Basic usage
Load a sample document corpus
Create the SKLearnVectorStore, index the document corpus and run a sample query
Saving and loading a vector store
Clean-up
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.