mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
de209af533
Implement similarity function selector for ElasticsearchStore. The scores coming back from Elasticsearch are already similarities (not distances) and they are already normalized (see [docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/dense-vector.html#dense-vector-params)). Hence we leave the scores untouched and just forward them. This fixes #11539. However, in hybrid mode (when keyword search and vector search are involved) Elasticsearch currently returns no scores. This PR adds an error message around this fact. We need to think a bit more to come up with a solution for this case. This PR also corrects a small error in the Elasticsearch integration test. --------- Co-authored-by: Erick Friis <erick@langchain.dev> |
||
---|---|---|
.. | ||
redis | ||
__init__.py | ||
test_databricks_vector_search.py | ||
test_elasticsearch.py | ||
test_faiss.py | ||
test_imports.py | ||
test_neo4j.py | ||
test_pgvector.py | ||
test_public_api.py | ||
test_sklearn.py | ||
test_utils.py |