Skip to content

Commit

Permalink
mongodb[patch]: include LLM caches in toplevel library import (langch…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jibola authored and gkorland committed Mar 30, 2024
1 parent b1d8fef commit 643fb19
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions libs/partners/mongodb/langchain_mongodb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from langchain_mongodb.cache import MongoDBAtlasSemanticCache, MongoDBCache
from langchain_mongodb.chat_message_histories import MongoDBChatMessageHistory
from langchain_mongodb.vectorstores import (
MongoDBAtlasVectorSearch,
Expand All @@ -6,4 +7,6 @@
__all__ = [
"MongoDBAtlasVectorSearch",
"MongoDBChatMessageHistory",
"MongoDBCache",
"MongoDBAtlasSemanticCache",
]
7 changes: 6 additions & 1 deletion libs/partners/mongodb/tests/unit_tests/test_imports.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
from langchain_mongodb import __all__

EXPECTED_ALL = ["MongoDBAtlasVectorSearch", "MongoDBChatMessageHistory"]
EXPECTED_ALL = [
"MongoDBAtlasVectorSearch",
"MongoDBChatMessageHistory",
"MongoDBCache",
"MongoDBAtlasSemanticCache",
]


def test_all_imports() -> None:
Expand Down

0 comments on commit 643fb19

Please sign in to comment.