Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

langchain-mongodb: include LLM caches in toplevel library import #18601

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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