mirror of https://github.com/hwchase17/langchain
langchain[patch]: Migrate vectorstores to use optional langchain community imports (#21150)
parent
7230e430db
commit
2f709d94d7
@ -1,5 +1,23 @@
|
|||||||
from langchain_community.vectorstores.annoy import (
|
from typing import TYPE_CHECKING, Any
|
||||||
Annoy,
|
|
||||||
)
|
|
||||||
|
|
||||||
__all__ = ["Annoy"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Annoy
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Annoy": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Annoy",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.atlas import AtlasDB
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["AtlasDB"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import AtlasDB
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"AtlasDB": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"AtlasDB",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.awadb import AwaDB
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["AwaDB"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import AwaDB
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"AwaDB": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"AwaDB",
|
||||||
|
]
|
||||||
|
@ -1,11 +1,28 @@
|
|||||||
from langchain_community.vectorstores.azure_cosmos_db import (
|
from typing import TYPE_CHECKING, Any
|
||||||
AzureCosmosDBVectorSearch,
|
|
||||||
CosmosDBDocumentType,
|
from langchain._api import create_importer
|
||||||
CosmosDBSimilarityType,
|
|
||||||
)
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import AzureCosmosDBVectorSearch
|
||||||
|
from langchain_community.vectorstores.azure_cosmos_db import CosmosDBSimilarityType
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {
|
||||||
|
"CosmosDBSimilarityType": "langchain_community.vectorstores.azure_cosmos_db",
|
||||||
|
"AzureCosmosDBVectorSearch": "langchain_community.vectorstores",
|
||||||
|
}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"CosmosDBSimilarityType",
|
"CosmosDBSimilarityType",
|
||||||
"CosmosDBDocumentType",
|
|
||||||
"AzureCosmosDBVectorSearch",
|
"AzureCosmosDBVectorSearch",
|
||||||
]
|
]
|
||||||
|
@ -1,5 +1,23 @@
|
|||||||
from langchain_community.vectorstores.bageldb import (
|
from typing import TYPE_CHECKING, Any
|
||||||
Bagel,
|
|
||||||
)
|
|
||||||
|
|
||||||
__all__ = ["Bagel"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Bagel
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Bagel": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Bagel",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.baiducloud_vector_search import BESVectorStore
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["BESVectorStore"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import BESVectorStore
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"BESVectorStore": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"BESVectorStore",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.cassandra import CVST, Cassandra
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["CVST", "Cassandra"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Cassandra
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Cassandra": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Cassandra",
|
||||||
|
]
|
||||||
|
@ -1,5 +1,23 @@
|
|||||||
from langchain_community.vectorstores.chroma import (
|
from typing import TYPE_CHECKING, Any
|
||||||
Chroma,
|
|
||||||
)
|
|
||||||
|
|
||||||
__all__ = ["Chroma"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Chroma
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Chroma": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Chroma",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.clarifai import Clarifai
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["Clarifai"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Clarifai
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Clarifai": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Clarifai",
|
||||||
|
]
|
||||||
|
@ -1,6 +1,27 @@
|
|||||||
from langchain_community.vectorstores.clickhouse import (
|
from typing import TYPE_CHECKING, Any
|
||||||
Clickhouse,
|
|
||||||
ClickhouseSettings,
|
|
||||||
)
|
|
||||||
|
|
||||||
__all__ = ["ClickhouseSettings", "Clickhouse"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Clickhouse, ClickhouseSettings
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {
|
||||||
|
"ClickhouseSettings": "langchain_community.vectorstores",
|
||||||
|
"Clickhouse": "langchain_community.vectorstores",
|
||||||
|
}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"ClickhouseSettings",
|
||||||
|
"Clickhouse",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.dashvector import DashVector
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["DashVector"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import DashVector
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"DashVector": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"DashVector",
|
||||||
|
]
|
||||||
|
@ -1,5 +1,23 @@
|
|||||||
from langchain_community.vectorstores.databricks_vector_search import (
|
from typing import TYPE_CHECKING, Any
|
||||||
DatabricksVectorSearch,
|
|
||||||
)
|
|
||||||
|
|
||||||
__all__ = ["DatabricksVectorSearch"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import DatabricksVectorSearch
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"DatabricksVectorSearch": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"DatabricksVectorSearch",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.deeplake import DeepLake
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["DeepLake"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import DeepLake
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"DeepLake": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"DeepLake",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.dingo import Dingo
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["Dingo"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Dingo
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Dingo": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Dingo",
|
||||||
|
]
|
||||||
|
@ -1,5 +1,23 @@
|
|||||||
from langchain_community.vectorstores.docarray.base import (
|
from typing import TYPE_CHECKING, Any
|
||||||
DocArrayIndex,
|
|
||||||
)
|
|
||||||
|
|
||||||
__all__ = ["DocArrayIndex"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores.docarray.base import DocArrayIndex
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"DocArrayIndex": "langchain_community.vectorstores.docarray.base"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"DocArrayIndex",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.docarray.hnsw import DocArrayHnswSearch
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["DocArrayHnswSearch"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import DocArrayHnswSearch
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"DocArrayHnswSearch": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"DocArrayHnswSearch",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.docarray.in_memory import DocArrayInMemorySearch
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["DocArrayInMemorySearch"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import DocArrayInMemorySearch
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"DocArrayInMemorySearch": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"DocArrayInMemorySearch",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.epsilla import Epsilla
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["Epsilla"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Epsilla
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Epsilla": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Epsilla",
|
||||||
|
]
|
||||||
|
@ -1,5 +1,23 @@
|
|||||||
from langchain_community.vectorstores.faiss import (
|
from typing import TYPE_CHECKING, Any
|
||||||
FAISS,
|
|
||||||
)
|
|
||||||
|
|
||||||
__all__ = ["FAISS"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import FAISS
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"FAISS": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"FAISS",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.hippo import Hippo
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["Hippo"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores.hippo import Hippo
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Hippo": "langchain_community.vectorstores.hippo"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Hippo",
|
||||||
|
]
|
||||||
|
@ -1,5 +1,23 @@
|
|||||||
from langchain_community.vectorstores.hologres import (
|
from typing import TYPE_CHECKING, Any
|
||||||
Hologres,
|
|
||||||
)
|
|
||||||
|
|
||||||
__all__ = ["Hologres"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Hologres
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Hologres": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Hologres",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.lancedb import LanceDB
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["LanceDB"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import LanceDB
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"LanceDB": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"LanceDB",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,28 @@
|
|||||||
from langchain_community.vectorstores.llm_rails import LLMRails, LLMRailsRetriever
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["LLMRails", "LLMRailsRetriever"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import LLMRails
|
||||||
|
from langchain_community.vectorstores.llm_rails import LLMRailsRetriever
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {
|
||||||
|
"LLMRails": "langchain_community.vectorstores",
|
||||||
|
"LLMRailsRetriever": "langchain_community.vectorstores.llm_rails",
|
||||||
|
}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"LLMRails",
|
||||||
|
"LLMRailsRetriever",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.marqo import Marqo
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["Marqo"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Marqo
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Marqo": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Marqo",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.matching_engine import MatchingEngine
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["MatchingEngine"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import MatchingEngine
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"MatchingEngine": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"MatchingEngine",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.meilisearch import Meilisearch
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["Meilisearch"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Meilisearch
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Meilisearch": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Meilisearch",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.milvus import Milvus
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["Milvus"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Milvus
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Milvus": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Milvus",
|
||||||
|
]
|
||||||
|
@ -1,5 +1,23 @@
|
|||||||
from langchain_community.vectorstores.momento_vector_index import (
|
from typing import TYPE_CHECKING, Any
|
||||||
MomentoVectorIndex,
|
|
||||||
)
|
|
||||||
|
|
||||||
__all__ = ["MomentoVectorIndex"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import MomentoVectorIndex
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"MomentoVectorIndex": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"MomentoVectorIndex",
|
||||||
|
]
|
||||||
|
@ -1,9 +1,23 @@
|
|||||||
from langchain_community.vectorstores.mongodb_atlas import (
|
from typing import TYPE_CHECKING, Any
|
||||||
MongoDBAtlasVectorSearch,
|
|
||||||
MongoDBDocumentType,
|
from langchain._api import create_importer
|
||||||
)
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import MongoDBAtlasVectorSearch
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"MongoDBAtlasVectorSearch": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"MongoDBDocumentType",
|
|
||||||
"MongoDBAtlasVectorSearch",
|
"MongoDBAtlasVectorSearch",
|
||||||
]
|
]
|
||||||
|
@ -1,7 +1,30 @@
|
|||||||
from langchain_community.vectorstores.myscale import (
|
from typing import TYPE_CHECKING, Any
|
||||||
MyScale,
|
|
||||||
MyScaleSettings,
|
|
||||||
MyScaleWithoutJSON,
|
|
||||||
)
|
|
||||||
|
|
||||||
__all__ = ["MyScaleSettings", "MyScale", "MyScaleWithoutJSON"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import MyScale, MyScaleSettings
|
||||||
|
from langchain_community.vectorstores.myscale import MyScaleWithoutJSON
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {
|
||||||
|
"MyScaleSettings": "langchain_community.vectorstores",
|
||||||
|
"MyScale": "langchain_community.vectorstores",
|
||||||
|
"MyScaleWithoutJSON": "langchain_community.vectorstores.myscale",
|
||||||
|
}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"MyScaleSettings",
|
||||||
|
"MyScale",
|
||||||
|
"MyScaleWithoutJSON",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.nucliadb import NucliaDB
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["NucliaDB"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores.nucliadb import NucliaDB
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"NucliaDB": "langchain_community.vectorstores.nucliadb"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"NucliaDB",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.pgvecto_rs import PGVecto_rs
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["PGVecto_rs"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores.pgvecto_rs import PGVecto_rs
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"PGVecto_rs": "langchain_community.vectorstores.pgvecto_rs"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"PGVecto_rs",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.pinecone import Pinecone
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["Pinecone"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Pinecone
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Pinecone": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Pinecone",
|
||||||
|
]
|
||||||
|
@ -1,6 +1,28 @@
|
|||||||
from langchain_community.vectorstores.qdrant import (
|
from typing import TYPE_CHECKING, Any
|
||||||
Qdrant,
|
|
||||||
QdrantException,
|
|
||||||
)
|
|
||||||
|
|
||||||
__all__ = ["QdrantException", "Qdrant"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Qdrant
|
||||||
|
from langchain_community.vectorstores.qdrant import QdrantException
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {
|
||||||
|
"QdrantException": "langchain_community.vectorstores.qdrant",
|
||||||
|
"Qdrant": "langchain_community.vectorstores",
|
||||||
|
}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"QdrantException",
|
||||||
|
"Qdrant",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.rocksetdb import Rockset
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["Rockset"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Rockset
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Rockset": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Rockset",
|
||||||
|
]
|
||||||
|
@ -1,5 +1,23 @@
|
|||||||
from langchain_community.vectorstores.scann import (
|
from typing import TYPE_CHECKING, Any
|
||||||
ScaNN,
|
|
||||||
)
|
|
||||||
|
|
||||||
__all__ = ["ScaNN"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import ScaNN
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"ScaNN": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"ScaNN",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.semadb import SemaDB
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["SemaDB"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import SemaDB
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"SemaDB": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"SemaDB",
|
||||||
|
]
|
||||||
|
@ -1,6 +1,23 @@
|
|||||||
from langchain_community.vectorstores.singlestoredb import (
|
from typing import TYPE_CHECKING, Any
|
||||||
SingleStoreDB,
|
|
||||||
SingleStoreDBRetriever,
|
|
||||||
)
|
|
||||||
|
|
||||||
__all__ = ["SingleStoreDB", "SingleStoreDBRetriever"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import SingleStoreDB
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"SingleStoreDB": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"SingleStoreDB",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.sqlitevss import SQLiteVSS
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["SQLiteVSS"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import SQLiteVSS
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"SQLiteVSS": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"SQLiteVSS",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.supabase import SupabaseVectorStore
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["SupabaseVectorStore"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import SupabaseVectorStore
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"SupabaseVectorStore": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"SupabaseVectorStore",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.tair import Tair
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["Tair"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Tair
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Tair": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Tair",
|
||||||
|
]
|
||||||
|
@ -1,7 +1,33 @@
|
|||||||
from langchain_community.vectorstores.tencentvectordb import (
|
from typing import TYPE_CHECKING, Any
|
||||||
ConnectionParams,
|
|
||||||
IndexParams,
|
|
||||||
TencentVectorDB,
|
|
||||||
)
|
|
||||||
|
|
||||||
__all__ = ["ConnectionParams", "IndexParams", "TencentVectorDB"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import TencentVectorDB
|
||||||
|
from langchain_community.vectorstores.tencentvectordb import (
|
||||||
|
ConnectionParams,
|
||||||
|
IndexParams,
|
||||||
|
)
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {
|
||||||
|
"ConnectionParams": "langchain_community.vectorstores.tencentvectordb",
|
||||||
|
"IndexParams": "langchain_community.vectorstores.tencentvectordb",
|
||||||
|
"TencentVectorDB": "langchain_community.vectorstores",
|
||||||
|
}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"ConnectionParams",
|
||||||
|
"IndexParams",
|
||||||
|
"TencentVectorDB",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.tigris import Tigris
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["Tigris"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Tigris
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Tigris": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Tigris",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.typesense import Typesense
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["Typesense"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Typesense
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Typesense": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Typesense",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.usearch import USearch
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["USearch"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import USearch
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"USearch": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"USearch",
|
||||||
|
]
|
||||||
|
@ -1,7 +1,33 @@
|
|||||||
from langchain_community.vectorstores.utils import (
|
from typing import TYPE_CHECKING, Any
|
||||||
DistanceStrategy,
|
|
||||||
filter_complex_metadata,
|
|
||||||
maximal_marginal_relevance,
|
|
||||||
)
|
|
||||||
|
|
||||||
__all__ = ["DistanceStrategy", "maximal_marginal_relevance", "filter_complex_metadata"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores.utils import (
|
||||||
|
DistanceStrategy,
|
||||||
|
filter_complex_metadata,
|
||||||
|
maximal_marginal_relevance,
|
||||||
|
)
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {
|
||||||
|
"DistanceStrategy": "langchain_community.vectorstores.utils",
|
||||||
|
"maximal_marginal_relevance": "langchain_community.vectorstores.utils",
|
||||||
|
"filter_complex_metadata": "langchain_community.vectorstores.utils",
|
||||||
|
}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"DistanceStrategy",
|
||||||
|
"maximal_marginal_relevance",
|
||||||
|
"filter_complex_metadata",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.vald import Vald
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["Vald"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Vald
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Vald": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Vald",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.vearch import Vearch
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["Vearch"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Vearch
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Vearch": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Vearch",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,28 @@
|
|||||||
from langchain_community.vectorstores.vectara import Vectara, VectaraRetriever
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["Vectara", "VectaraRetriever"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Vectara
|
||||||
|
from langchain_community.vectorstores.vectara import VectaraRetriever
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {
|
||||||
|
"Vectara": "langchain_community.vectorstores",
|
||||||
|
"VectaraRetriever": "langchain_community.vectorstores.vectara",
|
||||||
|
}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Vectara",
|
||||||
|
"VectaraRetriever",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.vespa import VespaStore
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["VespaStore"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import VespaStore
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"VespaStore": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"VespaStore",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.xata import XataVectorStore
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["XataVectorStore"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores.xata import XataVectorStore
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"XataVectorStore": "langchain_community.vectorstores.xata"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"XataVectorStore",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.yellowbrick import Yellowbrick
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["Yellowbrick"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Yellowbrick
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Yellowbrick": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Yellowbrick",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,28 @@
|
|||||||
from langchain_community.vectorstores.zep import CollectionConfig, ZepVectorStore
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["CollectionConfig", "ZepVectorStore"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import ZepVectorStore
|
||||||
|
from langchain_community.vectorstores.zep import CollectionConfig
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {
|
||||||
|
"CollectionConfig": "langchain_community.vectorstores.zep",
|
||||||
|
"ZepVectorStore": "langchain_community.vectorstores",
|
||||||
|
}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"CollectionConfig",
|
||||||
|
"ZepVectorStore",
|
||||||
|
]
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
from langchain_community.vectorstores.zilliz import Zilliz
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
__all__ = ["Zilliz"]
|
from langchain._api import create_importer
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from langchain_community.vectorstores import Zilliz
|
||||||
|
|
||||||
|
# Create a way to dynamically look up deprecated imports.
|
||||||
|
# Used to consolidate logic for raising deprecation warnings and
|
||||||
|
# handling optional imports.
|
||||||
|
DEPRECATED_LOOKUP = {"Zilliz": "langchain_community.vectorstores"}
|
||||||
|
|
||||||
|
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||||
|
|
||||||
|
|
||||||
|
def __getattr__(name: str) -> Any:
|
||||||
|
"""Look up attributes dynamically."""
|
||||||
|
return _import_attribute(name)
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Zilliz",
|
||||||
|
]
|
||||||
|
Loading…
Reference in New Issue