Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
Signed-off-by: Prithvi Kannan <[email protected]>
  • Loading branch information
prithvikannan committed Dec 17, 2024
1 parent 6f14e8b commit 9275b10
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions libs/databricks/langchain_databricks/chat_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
Union,
)

from langchain_core._api import deprecated
from langchain_core.callbacks import CallbackManagerForLLMRun
from langchain_core.language_models import BaseChatModel
from langchain_core.language_models.base import LanguageModelInput
Expand Down Expand Up @@ -50,7 +51,6 @@
from langchain_core.tools import BaseTool
from langchain_core.utils.function_calling import convert_to_openai_tool
from langchain_core.utils.pydantic import is_basemodel_subclass
from langchain_core._api import deprecated
from mlflow.deployments import BaseDeploymentClient # type: ignore
from pydantic import BaseModel, Field

Expand All @@ -60,7 +60,7 @@


@deprecated(
since="0.1.2", message="Use databricks_langchain.ChatDatabricks"
since="0.1.2", message="Use databricks_langchain.ChatDatabricks", removal="1.0.0"
)
class ChatDatabricks(BaseChatModel):
"""Databricks chat model integration.
Expand Down
6 changes: 4 additions & 2 deletions libs/databricks/langchain_databricks/embeddings.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
from typing import Any, Dict, Iterator, List

from langchain_core.embeddings import Embeddings
from langchain_core._api import deprecated
from langchain_core.embeddings import Embeddings
from pydantic import BaseModel, PrivateAttr

from langchain_databricks.utils import get_deployment_client


@deprecated(
since="0.1.2", message="Use databricks_langchain.DatabricksEmbeddings"
since="0.1.2",
message="Use databricks_langchain.DatabricksEmbeddings",
removal="1.0.0",
)
class DatabricksEmbeddings(Embeddings, BaseModel):
"""Databricks embedding model integration.
Expand Down
6 changes: 4 additions & 2 deletions libs/databricks/langchain_databricks/vectorstores.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
)

import numpy as np
from langchain_core._api import deprecated
from langchain_core.documents import Document
from langchain_core.embeddings import Embeddings
from langchain_core.vectorstores import VST, VectorStore
from langchain_core._api import deprecated

from langchain_databricks.utils import maximal_marginal_relevance

Expand All @@ -40,7 +40,9 @@ class IndexType(str, Enum):


@deprecated(
since="0.1.2", message="Use databricks_langchain.DatabricksVectorSearch"
since="0.1.2",
message="Use databricks_langchain.DatabricksVectorSearch",
removal="1.0.0",
)
class DatabricksVectorSearch(VectorStore):
"""Databricks vector store integration.
Expand Down

0 comments on commit 9275b10

Please sign in to comment.