generated from langchain-ai/integration-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d85e77
commit d471261
Showing
6 changed files
with
1,615 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
"""**Vector store** stores embedded data and performs vector search. | ||
One of the most common ways to store and search over unstructured data is to | ||
embed it and store the resulting embedding vectors, and then query the store | ||
and retrieve the data that are 'most similar' to the embedded query. | ||
**Class hierarchy:** | ||
.. code-block:: | ||
VectorStore --> <name> # Examples: Annoy, FAISS, Milvus | ||
BaseRetriever --> VectorStoreRetriever --> <name>Retriever # Example: VespaRetriever | ||
**Main helpers:** | ||
.. code-block:: | ||
Embeddings, Document | ||
""" # noqa: E501 | ||
|
||
import importlib | ||
from typing import TYPE_CHECKING, Any | ||
|
||
if TYPE_CHECKING: | ||
from langchain_core.vectorstores import ( | ||
VectorStore, # noqa: F401 | ||
) | ||
|
||
from langchain_aws.vectorstores.documentdb import ( | ||
DocumentDBVectorSearch, # noqa: F401 | ||
) | ||
__all__ = [ | ||
"DocumentDBVectorSearch", | ||
] | ||
|
||
_module_lookup = { | ||
"DocumentDBVectorSearch": "langchain_community.vectorstores.documentdb", | ||
} | ||
|
||
|
||
def __getattr__(name: str) -> Any: | ||
if name in _module_lookup: | ||
module = importlib.import_module(_module_lookup[name]) | ||
return getattr(module, name) | ||
raise AttributeError(f"module {__name__} has no attribute {name}") | ||
|
||
|
||
__all__ = list(_module_lookup.keys()) |
Oops, something went wrong.