mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
f668251948
# 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 ? |
||
---|---|---|
.. | ||
cassettes | ||
docarray | ||
docker-compose | ||
fixtures | ||
__init__.py | ||
conftest.py | ||
fake_embeddings.py | ||
test_analyticdb.py | ||
test_annoy.py | ||
test_atlas.py | ||
test_chroma.py | ||
test_deeplake.py | ||
test_elasticsearch.py | ||
test_faiss.py | ||
test_lancedb.py | ||
test_milvus.py | ||
test_myscale.py | ||
test_opensearch.py | ||
test_pgvector.py | ||
test_pinecone.py | ||
test_qdrant.py | ||
test_redis.py | ||
test_tair.py | ||
test_weaviate.py | ||
test_zilliz.py |