mirror of
https://github.com/hwchase17/langchain
synced 2024-10-31 15:20:26 +00:00
49c864fa18
updated vectorstores/ notebooks; added new integrations into ecosystem/integrations/ @dev2049 @rlancemartin, @eyurtsev
23 lines
961 B
Plaintext
23 lines
961 B
Plaintext
# scikit-learn
|
|
|
|
>[scikit-learn](https://scikit-learn.org/stable/) is an open source collection of machine learning algorithms,
|
|
> including some implementations of the [k nearest neighbors](https://scikit-learn.org/stable/modules/generated/sklearn.neighbors.NearestNeighbors.html). `SKLearnVectorStore` wraps this implementation and adds the possibility to persist the vector store in json, bson (binary json) or Apache Parquet format.
|
|
|
|
## Installation and Setup
|
|
|
|
- Install the Python package with `pip install scikit-learn`
|
|
|
|
|
|
## Vector Store
|
|
|
|
`SKLearnVectorStore` provides a simple wrapper around the nearest neighbor implementation in the
|
|
scikit-learn package, allowing you to use it as a vectorstore.
|
|
|
|
To import this vectorstore:
|
|
|
|
```python
|
|
from langchain.vectorstores import SKLearnVectorStore
|
|
```
|
|
|
|
For a more detailed walkthrough of the SKLearnVectorStore wrapper, see [this notebook](/docs/modules/data_connection/vectorstores/integrations/sklearn.html).
|