langchain/docs/modules/indexes/vectorstores/examples
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
..
analyticdb.ipynb docs: improved vectorstore notebooks (#3724) 2023-04-28 19:26:50 -07:00
annoy.ipynb docs: vectorstores, different updates and fixes (#4939) 2023-05-18 15:35:47 -07:00
atlas.ipynb docs: vectorstores, different updates and fixes (#4939) 2023-05-18 15:35:47 -07:00
chroma.ipynb docs: improved vectorstore notebooks (#3724) 2023-04-28 19:26:50 -07:00
deeplake.ipynb docs: vectorstores, different updates and fixes (#4939) 2023-05-18 15:35:47 -07:00
docarray_hnsw.ipynb docs: vectorstores, different updates and fixes (#4939) 2023-05-18 15:35:47 -07:00
docarray_in_memory.ipynb docs: vectorstores, different updates and fixes (#4939) 2023-05-18 15:35:47 -07:00
elasticsearch.ipynb docs retriever improvements (#4430) 2023-05-17 15:29:22 -07:00
faiss.ipynb Faiss no avx2 (#4895) 2023-05-17 19:18:57 -07:00
lanecdb.ipynb docs: improved vectorstore notebooks (#3724) 2023-04-28 19:26:50 -07:00
milvus.ipynb Update the milvus example (#4706) 2023-05-15 16:16:57 -07:00
myscale.ipynb docs: improved vectorstore notebooks (#3724) 2023-04-28 19:26:50 -07:00
opensearch.ipynb OpenSearch top k parameter fix (#5216) 2023-05-25 09:51:23 -07:00
pgvector.ipynb added documentation on retrieving a PG vectorstore (#4578) 2023-05-12 13:04:06 -04:00
pinecone.ipynb docs retriever improvements (#4430) 2023-05-17 15:29:22 -07:00
qdrant.ipynb update qdrant docs to reflect the proper way to initialize Qdrant() constructor (#4596) 2023-05-16 17:30:38 -07:00
redis.ipynb docs: vectorstores, different updates and fixes (#4939) 2023-05-18 15:35:47 -07:00
sklearn.ipynb Add SKLearnVectorStore (#5305) 2023-05-28 08:17:42 -07:00
supabase.ipynb docs supabase update (#4935) 2023-05-18 10:42:08 -07:00
tair.ipynb docs: vectorstores, different updates and fixes (#4939) 2023-05-18 15:35:47 -07:00
typesense.ipynb Add Typesense vector store (#1674) 2023-05-23 23:20:45 -07:00
vectara.ipynb Vectara (#5069) 2023-05-24 01:24:58 -07:00
weaviate.ipynb Weaviate: Add QnA with sources example (#5247) 2023-05-25 09:58:33 -04:00
zilliz.ipynb Update the milvus example (#4706) 2023-05-15 16:16:57 -07:00