mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-26 08:33:49 +00:00
langchain[patch]: Migrate vectorstores to use optional langchain community imports (#21150)
This commit is contained in:
parent
7230e430db
commit
2f709d94d7
@ -18,30 +18,169 @@ and retrieve the data that are 'most similar' to the embedded query.
|
||||
|
||||
Embeddings, Document
|
||||
""" # noqa: E501
|
||||
import warnings
|
||||
from typing import Any
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain_core._api import LangChainDeprecationWarning
|
||||
from langchain_core.vectorstores import VectorStore
|
||||
|
||||
from langchain.utils.interactive_env import is_interactive_env
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import (
|
||||
FAISS,
|
||||
AlibabaCloudOpenSearch,
|
||||
AlibabaCloudOpenSearchSettings,
|
||||
AnalyticDB,
|
||||
Annoy,
|
||||
AstraDB,
|
||||
AtlasDB,
|
||||
AwaDB,
|
||||
AzureCosmosDBVectorSearch,
|
||||
AzureSearch,
|
||||
Bagel,
|
||||
Cassandra,
|
||||
Chroma,
|
||||
Clarifai,
|
||||
Clickhouse,
|
||||
ClickhouseSettings,
|
||||
DashVector,
|
||||
DatabricksVectorSearch,
|
||||
DeepLake,
|
||||
Dingo,
|
||||
DocArrayHnswSearch,
|
||||
DocArrayInMemorySearch,
|
||||
DuckDB,
|
||||
EcloudESVectorStore,
|
||||
ElasticKnnSearch,
|
||||
ElasticsearchStore,
|
||||
ElasticVectorSearch,
|
||||
Epsilla,
|
||||
Hologres,
|
||||
LanceDB,
|
||||
LLMRails,
|
||||
Marqo,
|
||||
MatchingEngine,
|
||||
Meilisearch,
|
||||
Milvus,
|
||||
MomentoVectorIndex,
|
||||
MongoDBAtlasVectorSearch,
|
||||
MyScale,
|
||||
MyScaleSettings,
|
||||
Neo4jVector,
|
||||
NeuralDBVectorStore,
|
||||
OpenSearchVectorSearch,
|
||||
PGEmbedding,
|
||||
PGVector,
|
||||
Pinecone,
|
||||
Qdrant,
|
||||
Redis,
|
||||
Rockset,
|
||||
ScaNN,
|
||||
SemaDB,
|
||||
SingleStoreDB,
|
||||
SKLearnVectorStore,
|
||||
SQLiteVSS,
|
||||
StarRocks,
|
||||
SupabaseVectorStore,
|
||||
Tair,
|
||||
TencentVectorDB,
|
||||
Tigris,
|
||||
TileDB,
|
||||
TimescaleVector,
|
||||
Typesense,
|
||||
USearch,
|
||||
Vald,
|
||||
Vearch,
|
||||
Vectara,
|
||||
VespaStore,
|
||||
Weaviate,
|
||||
Yellowbrick,
|
||||
ZepVectorStore,
|
||||
Zilliz,
|
||||
)
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {
|
||||
"AlibabaCloudOpenSearch": "langchain_community.vectorstores",
|
||||
"AlibabaCloudOpenSearchSettings": "langchain_community.vectorstores",
|
||||
"AnalyticDB": "langchain_community.vectorstores",
|
||||
"Annoy": "langchain_community.vectorstores",
|
||||
"AstraDB": "langchain_community.vectorstores",
|
||||
"AtlasDB": "langchain_community.vectorstores",
|
||||
"AwaDB": "langchain_community.vectorstores",
|
||||
"AzureCosmosDBVectorSearch": "langchain_community.vectorstores",
|
||||
"AzureSearch": "langchain_community.vectorstores",
|
||||
"Bagel": "langchain_community.vectorstores",
|
||||
"Cassandra": "langchain_community.vectorstores",
|
||||
"Chroma": "langchain_community.vectorstores",
|
||||
"Clarifai": "langchain_community.vectorstores",
|
||||
"Clickhouse": "langchain_community.vectorstores",
|
||||
"ClickhouseSettings": "langchain_community.vectorstores",
|
||||
"DashVector": "langchain_community.vectorstores",
|
||||
"DatabricksVectorSearch": "langchain_community.vectorstores",
|
||||
"DeepLake": "langchain_community.vectorstores",
|
||||
"Dingo": "langchain_community.vectorstores",
|
||||
"DocArrayHnswSearch": "langchain_community.vectorstores",
|
||||
"DocArrayInMemorySearch": "langchain_community.vectorstores",
|
||||
"DuckDB": "langchain_community.vectorstores",
|
||||
"EcloudESVectorStore": "langchain_community.vectorstores",
|
||||
"ElasticKnnSearch": "langchain_community.vectorstores",
|
||||
"ElasticsearchStore": "langchain_community.vectorstores",
|
||||
"ElasticVectorSearch": "langchain_community.vectorstores",
|
||||
"Epsilla": "langchain_community.vectorstores",
|
||||
"FAISS": "langchain_community.vectorstores",
|
||||
"Hologres": "langchain_community.vectorstores",
|
||||
"LanceDB": "langchain_community.vectorstores",
|
||||
"LLMRails": "langchain_community.vectorstores",
|
||||
"Marqo": "langchain_community.vectorstores",
|
||||
"MatchingEngine": "langchain_community.vectorstores",
|
||||
"Meilisearch": "langchain_community.vectorstores",
|
||||
"Milvus": "langchain_community.vectorstores",
|
||||
"MomentoVectorIndex": "langchain_community.vectorstores",
|
||||
"MongoDBAtlasVectorSearch": "langchain_community.vectorstores",
|
||||
"MyScale": "langchain_community.vectorstores",
|
||||
"MyScaleSettings": "langchain_community.vectorstores",
|
||||
"Neo4jVector": "langchain_community.vectorstores",
|
||||
"NeuralDBVectorStore": "langchain_community.vectorstores",
|
||||
"NEuralDBVectorStore": "langchain_community.vectorstores",
|
||||
"OpenSearchVectorSearch": "langchain_community.vectorstores",
|
||||
"PGEmbedding": "langchain_community.vectorstores",
|
||||
"PGVector": "langchain_community.vectorstores",
|
||||
"Pinecone": "langchain_community.vectorstores",
|
||||
"Qdrant": "langchain_community.vectorstores",
|
||||
"Redis": "langchain_community.vectorstores",
|
||||
"Rockset": "langchain_community.vectorstores",
|
||||
"ScaNN": "langchain_community.vectorstores",
|
||||
"SemaDB": "langchain_community.vectorstores",
|
||||
"SingleStoreDB": "langchain_community.vectorstores",
|
||||
"SKLearnVectorStore": "langchain_community.vectorstores",
|
||||
"SQLiteVSS": "langchain_community.vectorstores",
|
||||
"StarRocks": "langchain_community.vectorstores",
|
||||
"SupabaseVectorStore": "langchain_community.vectorstores",
|
||||
"Tair": "langchain_community.vectorstores",
|
||||
"TencentVectorDB": "langchain_community.vectorstores",
|
||||
"Tigris": "langchain_community.vectorstores",
|
||||
"TileDB": "langchain_community.vectorstores",
|
||||
"TimescaleVector": "langchain_community.vectorstores",
|
||||
"Typesense": "langchain_community.vectorstores",
|
||||
"USearch": "langchain_community.vectorstores",
|
||||
"Vald": "langchain_community.vectorstores",
|
||||
"Vearch": "langchain_community.vectorstores",
|
||||
"Vectara": "langchain_community.vectorstores",
|
||||
"VespaStore": "langchain_community.vectorstores",
|
||||
"Weaviate": "langchain_community.vectorstores",
|
||||
"Yellowbrick": "langchain_community.vectorstores",
|
||||
"ZepVectorStore": "langchain_community.vectorstores",
|
||||
"Zilliz": "langchain_community.vectorstores",
|
||||
}
|
||||
|
||||
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||
|
||||
|
||||
def __getattr__(name: str) -> Any:
|
||||
from langchain_community import vectorstores
|
||||
|
||||
# If not in interactive env, raise warning.
|
||||
if not is_interactive_env():
|
||||
warnings.warn(
|
||||
"Importing vector stores from langchain is deprecated. Importing from "
|
||||
"langchain will no longer be supported as of langchain==0.2.0. "
|
||||
"Please import from langchain-community instead:\n\n"
|
||||
f"`from langchain_community.vectorstores import {name}`.\n\n"
|
||||
"To install langchain-community run `pip install -U langchain-community`.",
|
||||
category=LangChainDeprecationWarning,
|
||||
)
|
||||
|
||||
return getattr(vectorstores, name)
|
||||
"""Look up attributes dynamically."""
|
||||
return _import_attribute(name)
|
||||
|
||||
|
||||
__all__ = [
|
||||
@ -49,12 +188,13 @@ __all__ = [
|
||||
"AlibabaCloudOpenSearchSettings",
|
||||
"AnalyticDB",
|
||||
"Annoy",
|
||||
"AstraDB",
|
||||
"AtlasDB",
|
||||
"AwaDB",
|
||||
"AzureCosmosDBVectorSearch",
|
||||
"AzureSearch",
|
||||
"Bagel",
|
||||
"Cassandra",
|
||||
"AstraDB",
|
||||
"Chroma",
|
||||
"Clarifai",
|
||||
"Clickhouse",
|
||||
@ -65,9 +205,11 @@ __all__ = [
|
||||
"Dingo",
|
||||
"DocArrayHnswSearch",
|
||||
"DocArrayInMemorySearch",
|
||||
"DuckDB",
|
||||
"EcloudESVectorStore",
|
||||
"ElasticKnnSearch",
|
||||
"ElasticVectorSearch",
|
||||
"ElasticsearchStore",
|
||||
"ElasticVectorSearch",
|
||||
"Epsilla",
|
||||
"FAISS",
|
||||
"Hologres",
|
||||
@ -82,6 +224,7 @@ __all__ = [
|
||||
"MyScale",
|
||||
"MyScaleSettings",
|
||||
"Neo4jVector",
|
||||
"NeuralDBVectorStore",
|
||||
"OpenSearchVectorSearch",
|
||||
"PGEmbedding",
|
||||
"PGVector",
|
||||
@ -89,28 +232,27 @@ __all__ = [
|
||||
"Qdrant",
|
||||
"Redis",
|
||||
"Rockset",
|
||||
"SKLearnVectorStore",
|
||||
"ScaNN",
|
||||
"SemaDB",
|
||||
"SingleStoreDB",
|
||||
"SKLearnVectorStore",
|
||||
"SQLiteVSS",
|
||||
"StarRocks",
|
||||
"SupabaseVectorStore",
|
||||
"Tair",
|
||||
"TileDB",
|
||||
"TencentVectorDB",
|
||||
"Tigris",
|
||||
"TileDB",
|
||||
"TimescaleVector",
|
||||
"Typesense",
|
||||
"USearch",
|
||||
"Vald",
|
||||
"Vearch",
|
||||
"Vectara",
|
||||
"VectorStore",
|
||||
"VespaStore",
|
||||
"Weaviate",
|
||||
"Yellowbrick",
|
||||
"ZepVectorStore",
|
||||
"Zilliz",
|
||||
"TencentVectorDB",
|
||||
"AzureCosmosDBVectorSearch",
|
||||
"VectorStore",
|
||||
]
|
||||
|
@ -1,7 +1,28 @@
|
||||
from langchain_community.vectorstores.alibabacloud_opensearch import (
|
||||
AlibabaCloudOpenSearch,
|
||||
AlibabaCloudOpenSearchSettings,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import (
|
||||
AlibabaCloudOpenSearch,
|
||||
AlibabaCloudOpenSearchSettings,
|
||||
)
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {
|
||||
"AlibabaCloudOpenSearchSettings": "langchain_community.vectorstores",
|
||||
"AlibabaCloudOpenSearch": "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__ = [
|
||||
"AlibabaCloudOpenSearchSettings",
|
||||
|
@ -1,6 +1,22 @@
|
||||
from langchain_community.vectorstores.analyticdb import (
|
||||
AnalyticDB,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import AnalyticDB
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {"AnalyticDB": "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__ = [
|
||||
"AnalyticDB",
|
||||
|
@ -1,5 +1,23 @@
|
||||
from langchain_community.vectorstores.annoy import (
|
||||
Annoy,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
__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,6 +1,22 @@
|
||||
from langchain_community.vectorstores.astradb import (
|
||||
AstraDB,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import AstraDB
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {"AstraDB": "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__ = [
|
||||
"AstraDB",
|
||||
|
@ -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 (
|
||||
AzureCosmosDBVectorSearch,
|
||||
CosmosDBDocumentType,
|
||||
CosmosDBSimilarityType,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
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__ = [
|
||||
"CosmosDBSimilarityType",
|
||||
"CosmosDBDocumentType",
|
||||
"AzureCosmosDBVectorSearch",
|
||||
]
|
||||
|
@ -1,7 +1,28 @@
|
||||
from langchain_community.vectorstores.azuresearch import (
|
||||
AzureSearch,
|
||||
AzureSearchVectorStoreRetriever,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import AzureSearch
|
||||
from langchain_community.vectorstores.azuresearch import (
|
||||
AzureSearchVectorStoreRetriever,
|
||||
)
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {
|
||||
"AzureSearch": "langchain_community.vectorstores",
|
||||
"AzureSearchVectorStoreRetriever": "langchain_community.vectorstores.azuresearch",
|
||||
}
|
||||
|
||||
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||
|
||||
|
||||
def __getattr__(name: str) -> Any:
|
||||
"""Look up attributes dynamically."""
|
||||
return _import_attribute(name)
|
||||
|
||||
|
||||
__all__ = [
|
||||
"AzureSearch",
|
||||
|
@ -1,5 +1,23 @@
|
||||
from langchain_community.vectorstores.bageldb import (
|
||||
Bagel,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
__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 (
|
||||
Chroma,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
__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 (
|
||||
Clickhouse,
|
||||
ClickhouseSettings,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
__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 (
|
||||
DatabricksVectorSearch,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
__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,28 @@
|
||||
from langchain_community.vectorstores.docarray.hnsw import DocArrayHnswSearch
|
||||
from langchain_community.vectorstores.docarray.in_memory import DocArrayInMemorySearch
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import (
|
||||
DocArrayHnswSearch,
|
||||
DocArrayInMemorySearch,
|
||||
)
|
||||
|
||||
# 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",
|
||||
"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__ = [
|
||||
"DocArrayHnswSearch",
|
||||
|
@ -1,5 +1,23 @@
|
||||
from langchain_community.vectorstores.docarray.base import (
|
||||
DocArrayIndex,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
__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,7 +1,25 @@
|
||||
from langchain_community.vectorstores.elastic_vector_search import (
|
||||
ElasticKnnSearch,
|
||||
ElasticVectorSearch,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import ElasticKnnSearch, ElasticVectorSearch
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {
|
||||
"ElasticVectorSearch": "langchain_community.vectorstores",
|
||||
"ElasticKnnSearch": "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__ = [
|
||||
"ElasticVectorSearch",
|
||||
|
@ -1,10 +1,34 @@
|
||||
from langchain_community.vectorstores.elasticsearch import (
|
||||
ApproxRetrievalStrategy,
|
||||
BaseRetrievalStrategy,
|
||||
ElasticsearchStore,
|
||||
ExactRetrievalStrategy,
|
||||
SparseRetrievalStrategy,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import ElasticsearchStore
|
||||
from langchain_community.vectorstores.elasticsearch import (
|
||||
ApproxRetrievalStrategy,
|
||||
BaseRetrievalStrategy,
|
||||
ExactRetrievalStrategy,
|
||||
SparseRetrievalStrategy,
|
||||
)
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {
|
||||
"BaseRetrievalStrategy": "langchain_community.vectorstores.elasticsearch",
|
||||
"ApproxRetrievalStrategy": "langchain_community.vectorstores.elasticsearch",
|
||||
"ExactRetrievalStrategy": "langchain_community.vectorstores.elasticsearch",
|
||||
"SparseRetrievalStrategy": "langchain_community.vectorstores.elasticsearch",
|
||||
"ElasticsearchStore": "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__ = [
|
||||
"BaseRetrievalStrategy",
|
||||
|
@ -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 (
|
||||
FAISS,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
__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 (
|
||||
Hologres,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
__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 (
|
||||
MomentoVectorIndex,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
__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 (
|
||||
MongoDBAtlasVectorSearch,
|
||||
MongoDBDocumentType,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
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__ = [
|
||||
"MongoDBDocumentType",
|
||||
"MongoDBAtlasVectorSearch",
|
||||
]
|
||||
|
@ -1,7 +1,30 @@
|
||||
from langchain_community.vectorstores.myscale import (
|
||||
MyScale,
|
||||
MyScaleSettings,
|
||||
MyScaleWithoutJSON,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
__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,7 +1,26 @@
|
||||
from langchain_community.vectorstores.neo4j_vector import (
|
||||
Neo4jVector,
|
||||
SearchType,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import Neo4jVector
|
||||
from langchain_community.vectorstores.neo4j_vector import SearchType
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {
|
||||
"SearchType": "langchain_community.vectorstores.neo4j_vector",
|
||||
"Neo4jVector": "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__ = [
|
||||
"SearchType",
|
||||
|
@ -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,6 +1,22 @@
|
||||
from langchain_community.vectorstores.opensearch_vector_search import (
|
||||
OpenSearchVectorSearch,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import OpenSearchVectorSearch
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {"OpenSearchVectorSearch": "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__ = [
|
||||
"OpenSearchVectorSearch",
|
||||
|
@ -1,9 +1,32 @@
|
||||
from langchain_community.vectorstores.pgembedding import (
|
||||
CollectionStore,
|
||||
EmbeddingStore,
|
||||
PGEmbedding,
|
||||
QueryResult,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import PGEmbedding
|
||||
from langchain_community.vectorstores.pgembedding import (
|
||||
CollectionStore,
|
||||
EmbeddingStore,
|
||||
QueryResult,
|
||||
)
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {
|
||||
"CollectionStore": "langchain_community.vectorstores.pgembedding",
|
||||
"EmbeddingStore": "langchain_community.vectorstores.pgembedding",
|
||||
"QueryResult": "langchain_community.vectorstores.pgembedding",
|
||||
"PGEmbedding": "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__ = [
|
||||
"CollectionStore",
|
||||
|
@ -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,7 +1,26 @@
|
||||
from langchain_community.vectorstores.pgvector import (
|
||||
DistanceStrategy,
|
||||
PGVector,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import PGVector
|
||||
from langchain_community.vectorstores.pgvector import DistanceStrategy
|
||||
|
||||
# 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.pgvector",
|
||||
"PGVector": "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__ = [
|
||||
"DistanceStrategy",
|
||||
|
@ -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 (
|
||||
Qdrant,
|
||||
QdrantException,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
__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,10 +1,36 @@
|
||||
from .base import Redis, RedisVectorStoreRetriever
|
||||
from .filters import (
|
||||
RedisFilter,
|
||||
RedisNum,
|
||||
RedisTag,
|
||||
RedisText,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import Redis
|
||||
from langchain_community.vectorstores.redis.base import RedisVectorStoreRetriever
|
||||
from langchain_community.vectorstores.redis.filters import (
|
||||
RedisFilter,
|
||||
RedisNum,
|
||||
RedisTag,
|
||||
RedisText,
|
||||
)
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {
|
||||
"Redis": "langchain_community.vectorstores",
|
||||
"RedisFilter": "langchain_community.vectorstores.redis.filters",
|
||||
"RedisTag": "langchain_community.vectorstores.redis.filters",
|
||||
"RedisText": "langchain_community.vectorstores.redis.filters",
|
||||
"RedisNum": "langchain_community.vectorstores.redis.filters",
|
||||
"RedisVectorStoreRetriever": "langchain_community.vectorstores.redis.base",
|
||||
}
|
||||
|
||||
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||
|
||||
|
||||
def __getattr__(name: str) -> Any:
|
||||
"""Look up attributes dynamically."""
|
||||
return _import_attribute(name)
|
||||
|
||||
|
||||
__all__ = [
|
||||
"Redis",
|
||||
|
@ -1,8 +1,30 @@
|
||||
from langchain_community.vectorstores.redis.base import (
|
||||
Redis,
|
||||
RedisVectorStoreRetriever,
|
||||
check_index_exists,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import Redis
|
||||
from langchain_community.vectorstores.redis.base import (
|
||||
RedisVectorStoreRetriever,
|
||||
check_index_exists,
|
||||
)
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {
|
||||
"check_index_exists": "langchain_community.vectorstores.redis.base",
|
||||
"Redis": "langchain_community.vectorstores",
|
||||
"RedisVectorStoreRetriever": "langchain_community.vectorstores.redis.base",
|
||||
}
|
||||
|
||||
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||
|
||||
|
||||
def __getattr__(name: str) -> Any:
|
||||
"""Look up attributes dynamically."""
|
||||
return _import_attribute(name)
|
||||
|
||||
|
||||
__all__ = [
|
||||
"check_index_exists",
|
||||
|
@ -1,13 +1,40 @@
|
||||
from langchain_community.vectorstores.redis.filters import (
|
||||
RedisFilter,
|
||||
RedisFilterExpression,
|
||||
RedisFilterField,
|
||||
RedisFilterOperator,
|
||||
RedisNum,
|
||||
RedisTag,
|
||||
RedisText,
|
||||
check_operator_misuse,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores.redis.filters import (
|
||||
RedisFilter,
|
||||
RedisFilterExpression,
|
||||
RedisFilterField,
|
||||
RedisFilterOperator,
|
||||
RedisNum,
|
||||
RedisTag,
|
||||
RedisText,
|
||||
check_operator_misuse,
|
||||
)
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {
|
||||
"RedisFilterOperator": "langchain_community.vectorstores.redis.filters",
|
||||
"RedisFilter": "langchain_community.vectorstores.redis.filters",
|
||||
"RedisFilterField": "langchain_community.vectorstores.redis.filters",
|
||||
"check_operator_misuse": "langchain_community.vectorstores.redis.filters",
|
||||
"RedisTag": "langchain_community.vectorstores.redis.filters",
|
||||
"RedisNum": "langchain_community.vectorstores.redis.filters",
|
||||
"RedisText": "langchain_community.vectorstores.redis.filters",
|
||||
"RedisFilterExpression": "langchain_community.vectorstores.redis.filters",
|
||||
}
|
||||
|
||||
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||
|
||||
|
||||
def __getattr__(name: str) -> Any:
|
||||
"""Look up attributes dynamically."""
|
||||
return _import_attribute(name)
|
||||
|
||||
|
||||
__all__ = [
|
||||
"RedisFilterOperator",
|
||||
|
@ -1,15 +1,44 @@
|
||||
from langchain_community.vectorstores.redis.schema import (
|
||||
FlatVectorField,
|
||||
HNSWVectorField,
|
||||
NumericFieldSchema,
|
||||
RedisDistanceMetric,
|
||||
RedisField,
|
||||
RedisModel,
|
||||
RedisVectorField,
|
||||
TagFieldSchema,
|
||||
TextFieldSchema,
|
||||
read_schema,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores.redis.schema import (
|
||||
FlatVectorField,
|
||||
HNSWVectorField,
|
||||
NumericFieldSchema,
|
||||
RedisDistanceMetric,
|
||||
RedisField,
|
||||
RedisModel,
|
||||
RedisVectorField,
|
||||
TagFieldSchema,
|
||||
TextFieldSchema,
|
||||
read_schema,
|
||||
)
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {
|
||||
"RedisDistanceMetric": "langchain_community.vectorstores.redis.schema",
|
||||
"RedisField": "langchain_community.vectorstores.redis.schema",
|
||||
"TextFieldSchema": "langchain_community.vectorstores.redis.schema",
|
||||
"TagFieldSchema": "langchain_community.vectorstores.redis.schema",
|
||||
"NumericFieldSchema": "langchain_community.vectorstores.redis.schema",
|
||||
"RedisVectorField": "langchain_community.vectorstores.redis.schema",
|
||||
"FlatVectorField": "langchain_community.vectorstores.redis.schema",
|
||||
"HNSWVectorField": "langchain_community.vectorstores.redis.schema",
|
||||
"RedisModel": "langchain_community.vectorstores.redis.schema",
|
||||
"read_schema": "langchain_community.vectorstores.redis.schema",
|
||||
}
|
||||
|
||||
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||
|
||||
|
||||
def __getattr__(name: str) -> Any:
|
||||
"""Look up attributes dynamically."""
|
||||
return _import_attribute(name)
|
||||
|
||||
|
||||
__all__ = [
|
||||
"RedisDistanceMetric",
|
||||
|
@ -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 (
|
||||
ScaNN,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
__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 (
|
||||
SingleStoreDB,
|
||||
SingleStoreDBRetriever,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
__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,11 +1,36 @@
|
||||
from langchain_community.vectorstores.sklearn import (
|
||||
BaseSerializer,
|
||||
BsonSerializer,
|
||||
JsonSerializer,
|
||||
ParquetSerializer,
|
||||
SKLearnVectorStore,
|
||||
SKLearnVectorStoreException,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import SKLearnVectorStore
|
||||
from langchain_community.vectorstores.sklearn import (
|
||||
BaseSerializer,
|
||||
BsonSerializer,
|
||||
JsonSerializer,
|
||||
ParquetSerializer,
|
||||
SKLearnVectorStoreException,
|
||||
)
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {
|
||||
"BaseSerializer": "langchain_community.vectorstores.sklearn",
|
||||
"JsonSerializer": "langchain_community.vectorstores.sklearn",
|
||||
"BsonSerializer": "langchain_community.vectorstores.sklearn",
|
||||
"ParquetSerializer": "langchain_community.vectorstores.sklearn",
|
||||
"SKLearnVectorStoreException": "langchain_community.vectorstores.sklearn",
|
||||
"SKLearnVectorStore": "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__ = [
|
||||
"BaseSerializer",
|
||||
|
@ -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,7 +1,26 @@
|
||||
from langchain_community.vectorstores.starrocks import (
|
||||
StarRocks,
|
||||
StarRocksSettings,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import StarRocks
|
||||
from langchain_community.vectorstores.starrocks import StarRocksSettings
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {
|
||||
"StarRocksSettings": "langchain_community.vectorstores.starrocks",
|
||||
"StarRocks": "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__ = [
|
||||
"StarRocksSettings",
|
||||
|
@ -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 (
|
||||
ConnectionParams,
|
||||
IndexParams,
|
||||
TencentVectorDB,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
__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,6 +1,22 @@
|
||||
from langchain_community.vectorstores.tiledb import (
|
||||
TileDB,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import TileDB
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {"TileDB": "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__ = [
|
||||
"TileDB",
|
||||
|
@ -1,6 +1,22 @@
|
||||
from langchain_community.vectorstores.timescalevector import (
|
||||
TimescaleVector,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import TimescaleVector
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {"TimescaleVector": "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__ = [
|
||||
"TimescaleVector",
|
||||
|
@ -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 (
|
||||
DistanceStrategy,
|
||||
filter_complex_metadata,
|
||||
maximal_marginal_relevance,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
__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,6 +1,22 @@
|
||||
from langchain_community.vectorstores.weaviate import (
|
||||
Weaviate,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.vectorstores import Weaviate
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {"Weaviate": "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__ = [
|
||||
"Weaviate",
|
||||
|
@ -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",
|
||||
]
|
||||
|
@ -6,12 +6,13 @@ _EXPECTED = [
|
||||
"AlibabaCloudOpenSearchSettings",
|
||||
"AnalyticDB",
|
||||
"Annoy",
|
||||
"AstraDB",
|
||||
"AtlasDB",
|
||||
"AwaDB",
|
||||
"AzureCosmosDBVectorSearch",
|
||||
"AzureSearch",
|
||||
"Bagel",
|
||||
"Cassandra",
|
||||
"AstraDB",
|
||||
"Chroma",
|
||||
"Clarifai",
|
||||
"Clickhouse",
|
||||
@ -22,9 +23,11 @@ _EXPECTED = [
|
||||
"Dingo",
|
||||
"DocArrayHnswSearch",
|
||||
"DocArrayInMemorySearch",
|
||||
"DuckDB",
|
||||
"EcloudESVectorStore",
|
||||
"ElasticKnnSearch",
|
||||
"ElasticVectorSearch",
|
||||
"ElasticsearchStore",
|
||||
"ElasticVectorSearch",
|
||||
"Epsilla",
|
||||
"FAISS",
|
||||
"Hologres",
|
||||
@ -39,6 +42,7 @@ _EXPECTED = [
|
||||
"MyScale",
|
||||
"MyScaleSettings",
|
||||
"Neo4jVector",
|
||||
"NeuralDBVectorStore",
|
||||
"OpenSearchVectorSearch",
|
||||
"PGEmbedding",
|
||||
"PGVector",
|
||||
@ -46,30 +50,29 @@ _EXPECTED = [
|
||||
"Qdrant",
|
||||
"Redis",
|
||||
"Rockset",
|
||||
"SKLearnVectorStore",
|
||||
"ScaNN",
|
||||
"SemaDB",
|
||||
"SingleStoreDB",
|
||||
"SKLearnVectorStore",
|
||||
"SQLiteVSS",
|
||||
"StarRocks",
|
||||
"SupabaseVectorStore",
|
||||
"Tair",
|
||||
"TileDB",
|
||||
"TencentVectorDB",
|
||||
"Tigris",
|
||||
"TileDB",
|
||||
"TimescaleVector",
|
||||
"Typesense",
|
||||
"USearch",
|
||||
"Vald",
|
||||
"Vearch",
|
||||
"Vectara",
|
||||
"VectorStore",
|
||||
"VespaStore",
|
||||
"Weaviate",
|
||||
"Yellowbrick",
|
||||
"ZepVectorStore",
|
||||
"Zilliz",
|
||||
"TencentVectorDB",
|
||||
"AzureCosmosDBVectorSearch",
|
||||
"VectorStore",
|
||||
"Yellowbrick",
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user