mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
61a2eba081
Make `ElasticsearchRetriever` available as top-level import. The `langchain` package depends on `langchain-community` so we do not need to depend on it explicitly.
16 lines
367 B
Python
16 lines
367 B
Python
from langchain_elasticsearch import __all__
|
|
|
|
EXPECTED_ALL = [
|
|
"ApproxRetrievalStrategy",
|
|
"ElasticsearchChatMessageHistory",
|
|
"ElasticsearchEmbeddings",
|
|
"ElasticsearchRetriever",
|
|
"ElasticsearchStore",
|
|
"ExactRetrievalStrategy",
|
|
"SparseRetrievalStrategy",
|
|
]
|
|
|
|
|
|
def test_all_imports() -> None:
|
|
assert sorted(EXPECTED_ALL) == sorted(__all__)
|