langchain/tests/integration_tests/vectorstores
Evan Jones f668251948
parameterized distance metrics; lint; format; tests (#4375)
# Parameterize Redis vectorstore index

Redis vectorstore allows for three different distance metrics: `L2`
(flat L2), `COSINE`, and `IP` (inner product). Currently, the
`Redis._create_index` method hard codes the distance metric to COSINE.

I've parameterized this as an argument in the `Redis.from_texts` method
-- pretty simple.

Fixes #4368 

## Before submitting

I've added an integration test showing indexes can be instantiated with
all three values in the `REDIS_DISTANCE_METRICS` literal. An example
notebook seemed overkill here. Normal API documentation would be more
appropriate, but no standards are in place for that yet.

## Who can review?

Not sure who's responsible for the vectorstore module... Maybe @eyurtsev
/ @hwchase17 / @agola11 ?
2023-05-11 00:20:01 -07:00
..
cassettes Fix/issue 2695 (#3608) 2023-04-26 21:45:03 -07:00
docarray Add DocArray vector stores (#4483) 2023-05-10 15:22:16 -07:00
docker-compose Fix/issue 1213 (#2932) 2023-04-16 13:11:30 -07:00
fixtures fix: elasticsearch (#2402) 2023-04-05 06:51:32 -07:00
__init__.py add few shot example (#148) 2022-11-19 20:32:45 -08:00
conftest.py [minor] Deep Lake auth improvements in docs, kwargs pass, faster tests (#2927) 2023-04-15 10:49:16 -07:00
fake_embeddings.py Propagate "filter" arg in Chroma similarity_search (#1869) 2023-03-22 19:40:10 -07:00
test_analyticdb.py Add a full PostgresSQL syntax database 'AnalyticDB' as vector store. (#3135) 2023-04-22 08:25:41 -07:00
test_annoy.py Add Annoy as VectorStore (#2939) 2023-04-16 13:44:04 -07:00
test_atlas.py Harrison/atlas db (#1315) 2023-02-26 22:11:38 -08:00
test_chroma.py Chroma fix mmr (#3897) 2023-05-01 10:47:15 -07:00
test_deeplake.py Deep Lake mini upgrades (#3375) 2023-04-23 21:23:54 -07:00
test_elasticsearch.py feat: improve pinecone tests (#2806) 2023-04-13 21:49:31 -07:00
test_faiss.py Add similarity_search_with_normalized_similarities (#2916) 2023-04-15 21:06:08 -07:00
test_lancedb.py Harrison/lancedb (#3634) 2023-04-27 08:14:36 -07:00
test_milvus.py Refactor Milvus/Zilliz (#3047) 2023-04-22 08:26:19 -07:00
test_myscale.py Harrison/myscale (#3352) 2023-04-22 09:17:38 -07:00
test_opensearch.py OpenSearch: Add Similarity Search with Score (#4089) 2023-05-08 16:35:21 -07:00
test_pgvector.py Removed duplicate BaseModel dependencies (#2471) 2023-04-06 12:45:16 -07:00
test_pinecone.py feat: improve pinecone tests (#2806) 2023-04-13 21:49:31 -07:00
test_qdrant.py Add support for Qdrant nested filter (#4354) 2023-05-09 10:34:11 -07:00
test_redis.py parameterized distance metrics; lint; format; tests (#4375) 2023-05-11 00:20:01 -07:00
test_tair.py Harrison/tair (#3770) 2023-04-28 21:25:33 -07:00
test_weaviate.py Fix/issue 2695 (#3608) 2023-04-26 21:45:03 -07:00
test_zilliz.py Refactor Milvus/Zilliz (#3047) 2023-04-22 08:26:19 -07:00