You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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 ?
1 year ago
..
cassettes Fix/issue 2695 (#3608) 1 year ago
docarray Add DocArray vector stores (#4483) 1 year ago
docker-compose
fixtures
__init__.py
conftest.py
fake_embeddings.py
test_analyticdb.py Add a full PostgresSQL syntax database 'AnalyticDB' as vector store. (#3135) 1 year ago
test_annoy.py Add Annoy as VectorStore (#2939) 1 year ago
test_atlas.py
test_chroma.py Chroma fix mmr (#3897) 1 year ago
test_deeplake.py Deep Lake mini upgrades (#3375) 1 year ago
test_elasticsearch.py
test_faiss.py
test_lancedb.py Harrison/lancedb (#3634) 1 year ago
test_milvus.py Refactor Milvus/Zilliz (#3047) 1 year ago
test_myscale.py Harrison/myscale (#3352) 1 year ago
test_opensearch.py OpenSearch: Add Similarity Search with Score (#4089) 1 year ago
test_pgvector.py
test_pinecone.py
test_qdrant.py Add support for Qdrant nested filter (#4354) 1 year ago
test_redis.py parameterized distance metrics; lint; format; tests (#4375) 1 year ago
test_tair.py Harrison/tair (#3770) 1 year ago
test_weaviate.py Fix/issue 2695 (#3608) 1 year ago
test_zilliz.py Refactor Milvus/Zilliz (#3047) 1 year ago