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/langchain/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
..
docarray Add DocArray vector stores (#4483) 1 year ago
__init__.py Add DocArray vector stores (#4483) 1 year ago
analyticdb.py Harrison/one drive loader (#4081) 1 year ago
annoy.py fixes #1214 (#3003) 1 year ago
atlas.py consistently use getLogger(__name__), no root logger (#2989) 1 year ago
base.py Harrison/new search (#4359) 1 year ago
chroma.py fixed the filtering error in chromadb (#1621) 1 year ago
deeplake.py DeepLake: Pass in rest of args to self._search_helper (#4080) 1 year ago
elastic_vector_search.py ES similarity_search_with_score() and metadata filter (#3046) 1 year ago
faiss.py fixes #1214 (#3003) 1 year ago
lancedb.py Harrison/lancedb (#3634) 1 year ago
milvus.py fixes #1214 (#3003) 1 year ago
myscale.py Harrison/myscale (#3352) 1 year ago
opensearch_vector_search.py OpenSearch: Add Similarity Search with Score (#4089) 1 year ago
pgvector.py fix: vectorstore pgvector ensure compatibility #3884 (#4248) 1 year ago
pinecone.py Dev2049/pinecone try except (#4424) 1 year ago
qdrant.py Add support for Qdrant nested filter (#4354) 1 year ago
redis.py parameterized distance metrics; lint; format; tests (#4375) 1 year ago
supabase.py fixes #1214 (#3003) 1 year ago
tair.py Harrison/tair (#3770) 1 year ago
utils.py fix #3884 (#3475) 1 year ago
weaviate.py Harrison/relevancy score (#3907) 1 year ago
zilliz.py Refactor Milvus/Zilliz (#3047) 1 year ago