Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions libs/community/langchain_community/chat_models/kinetica.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import logging
import os
import re
import warnings
from importlib.metadata import version
from pathlib import Path
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Pattern, cast
Expand All @@ -28,6 +29,14 @@
from langchain_core.outputs import ChatGeneration, ChatResult, Generation
from pydantic import BaseModel, ConfigDict, Field

warnings.warn(
"The 'langchain_community.chat_models.kinetica' module "
"is deprecated and has been moved to a provider package. "
"Use the 'langchain-kinetica' package instead.",
DeprecationWarning,
stacklevel=2,
)

LOG = logging.getLogger(__name__)

# Kinetica pydantic API datatypes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
from __future__ import annotations

import warnings
from typing import Any, Dict, Iterator, List, Optional, Tuple

from langchain_core.documents import Document

from langchain_community.document_loaders.base import BaseLoader

warnings.warn(
"The 'langchain_community.document_loaders.kinetica_loader' module"
" is deprecated and has been moved to a provider package. "
"Use the 'langchain-kinetica' package instead.",
DeprecationWarning,
stacklevel=2,
)


class KineticaLoader(BaseLoader):
"""Load from `Kinetica` API.
Expand Down
9 changes: 9 additions & 0 deletions libs/community/langchain_community/vectorstores/kinetica.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import logging
import struct
import uuid
import warnings
from collections import OrderedDict
from enum import Enum
from functools import partial
Expand All @@ -19,6 +20,14 @@

from langchain_community.vectorstores.utils import maximal_marginal_relevance

warnings.warn(
"The 'langchain_community.vectorstores.kinetica' module "
"is deprecated and has been moved to a provider package. "
"Use the 'langchain-kinetica' package instead.",
DeprecationWarning,
stacklevel=2,
)


class DistanceStrategy(str, enum.Enum):
"""Enumerator of the Distance strategies."""
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Loading