langchain/libs/community/tests/unit_tests
Max Jakob de209af533
community[patch]: ElasticsearchStore: add relevance function selector (#16378)
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>
2024-01-22 11:52:20 -07:00
..
agent_toolkits community: Add PolygonLastQuote Tool and Toolkit (#15990) 2024-01-21 15:08:55 -08:00
callbacks community[patch]: Release 0.0.14 (#16384) 2024-01-22 08:50:19 -08:00
chat_loaders Restore self message sent before OSX 12 Monterey (#14818) 2024-01-01 16:04:14 -08:00
chat_message_histories community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
chat_models feat: Implement stream interface (#15875) 2024-01-11 21:32:48 -08:00
docstore community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
document_loaders community[minor]: Added document loader for SurrealDB (#15995) 2024-01-15 10:32:42 -08:00
document_transformers community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
embeddings Community[patch]use secret str in Tavily and HuggingFaceInferenceEmbeddings (#16109) 2024-01-17 00:30:07 -08:00
examples community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
graphs community[patch]: Add neo4j timeout and value sanitization option (#16138) 2024-01-17 13:22:19 -08:00
indexes community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
llms community: Ollama - Parameter structure to follow official documentation (#16035) 2024-01-15 10:17:58 -08:00
retrievers Community[Patch] Remove docs form bm25 repr (#16110) 2024-01-17 00:00:55 -08:00
storage Add a BaseStore backed by AstraDB (#15812) 2024-01-11 21:41:24 -08:00
tools community: Add PolygonLastQuote Tool and Toolkit (#15990) 2024-01-21 15:08:55 -08:00
utilities Community[patch]use secret str in Tavily and HuggingFaceInferenceEmbeddings (#16109) 2024-01-17 00:30:07 -08:00
utils community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
vectorstores community[patch]: ElasticsearchStore: add relevance function selector (#16378) 2024-01-22 11:52:20 -07:00
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
conftest.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_dependencies.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_imports.py infra: Fix test filesystem paths incompatible with windows (#14388) 2023-12-21 13:45:42 -08:00
test_sqlalchemy.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00