langchain/docs/modules/indexes
Janos Tolgyesi 5f4552391f
Add SKLearnVectorStore (#5305)
# Add SKLearnVectorStore

This PR adds SKLearnVectorStore, a simply vector store based on
NearestNeighbors implementations in the scikit-learn package. This
provides a simple drop-in vector store implementation with minimal
dependencies (scikit-learn is typically installed in a data scientist /
ml engineer environment). The vector store can be persisted and loaded
from json, bson and parquet format.

SKLearnVectorStore has soft (dynamic) dependency on the scikit-learn,
numpy and pandas packages. Persisting to bson requires the bson package,
persisting to parquet requires the pyarrow package.

## Before submitting

Integration tests are provided under
`tests/integration_tests/vectorstores/test_sklearn.py`

Sample usage notebook is provided under
`docs/modules/indexes/vectorstores/examples/sklear.ipynb`

Co-authored-by: Dev 2049 <dev.dev2049@gmail.com>
2023-05-28 08:17:42 -07:00
..
document_loaders/examples Fix typos (#5323) 2023-05-26 18:55:21 -07:00
retrievers/examples Better docs for weaviate hybrid search (#5290) 2023-05-26 09:30:41 -07:00
text_splitters docs: text splitters improvements (#4490) 2023-05-17 21:33:34 -07:00
vectorstores Add SKLearnVectorStore (#5305) 2023-05-28 08:17:42 -07:00
document_loaders.rst nit (#5208) 2023-05-24 12:52:20 -07:00
getting_started.ipynb Update getting_started.ipynb (#4850) 2023-05-17 13:19:14 -07:00
retrievers.rst big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
text_splitters.rst docs: text splitters improvements (#4490) 2023-05-17 21:33:34 -07:00
vectorstores.rst big docs refactor (#1978) 2023-03-26 19:49:46 -07:00