Skip to content

Commit

Permalink
tests on imports fix
Browse files Browse the repository at this point in the history
  • Loading branch information
giacbrd committed Apr 23, 2024
1 parent 940dc42 commit 24aae95
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/elasticsearch/langchain_elasticsearch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

__all__ = [
"ApproxRetrievalStrategy",
"ElasticsearchCache",
"ElasticsearchChatMessageHistory",
"ElasticsearchEmbeddings",
"ElasticsearchRetriever",
"ElasticsearchStore",
"ExactRetrievalStrategy",
"SparseRetrievalStrategy",
"ElasticsearchCache"
]
2 changes: 1 addition & 1 deletion libs/elasticsearch/langchain_elasticsearch/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def lookup(self, prompt: str, llm_string: str) -> Optional[RETURN_VAL_TYPE]:
index=self._index_name,
body={
"query": {"term": {"_id": cache_key}},
"sort": {"timestamp" : {"order" : "asc"}}
"sort": {"timestamp": {"order": "asc"}}
},
source_includes=["llm_output"],
)
Expand Down
1 change: 1 addition & 0 deletions libs/elasticsearch/tests/unit_tests/test_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

EXPECTED_ALL = [
"ApproxRetrievalStrategy",
"ElasticsearchCache",
"ElasticsearchChatMessageHistory",
"ElasticsearchEmbeddings",
"ElasticsearchRetriever",
Expand Down

0 comments on commit 24aae95

Please sign in to comment.