Skip to content

Commit 1414742

Browse files
committed
Replace create_vector_search_index
Remove create_vector_search_index from langchain-mongodb and import from pymongo-search-utils.
1 parent 85384b2 commit 1414742

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

libs/langchain-mongodb/langchain_mongodb/index.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
from pymongo.collection import Collection
88
from pymongo.operations import SearchIndexModel
9-
from pymongo_search_utils import (
10-
create_vector_search_index, # noqa: F401 # type: ignore
11-
)
9+
from pymongo_search_utils import create_vector_search_index # noqa: F401
1210

1311
logger = logging.getLogger(__file__)
1412

libs/langchain-mongodb/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ disallow_untyped_defs = true
6868

6969
[[tool.mypy.overrides]]
7070
module = ["tests.*"]
71-
disable_error_code = ["no-untyped-def", "no-untyped-call", "var-annotated"]
71+
disable_error_code = ["no-untyped-def", "no-untyped-call", "var-annotated", "import-untyped"]
7272

7373
[tool.ruff]
7474
lint.select = [

0 commit comments

Comments
 (0)