Skip to content

Commit

Permalink
Add vectorstores to golbal namespace (#139)
Browse files Browse the repository at this point in the history
* Add vectorstores to golbal namespace

---------

Co-authored-by: Jorge <[email protected]>
  • Loading branch information
jzaldi and Jorge authored Apr 11, 2024
1 parent 22c2056 commit a609de0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
14 changes: 12 additions & 2 deletions libs/vertexai/langchain_google_vertexai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
)
from langchain_google_vertexai.llms import VertexAI
from langchain_google_vertexai.model_garden import VertexAIModelGarden
from langchain_google_vertexai.vectorstores.vectorstores import VectorSearchVectorStore
from langchain_google_vertexai.vectorstores import (
DataStoreDocumentStorage,
GCSDocumentStorage,
VectorSearchVectorStore,
VectorSearchVectorStoreDatastore,
VectorSearchVectorStoreGCS,
)
from langchain_google_vertexai.vision_models import (
VertexAIImageCaptioning,
VertexAIImageCaptioningChat,
Expand All @@ -37,10 +43,14 @@
"HarmCategory",
"PydanticFunctionsOutputParser",
"create_structured_runnable",
"VectorSearchVectorStore",
"VertexAIImageCaptioning",
"VertexAIImageCaptioningChat",
"VertexAIImageEditorChat",
"VertexAIImageGeneratorChat",
"VertexAIVisualQnAChat",
"DataStoreDocumentStorage",
"GCSDocumentStorage",
"VectorSearchVectorStore",
"VectorSearchVectorStoreDatastore",
"VectorSearchVectorStoreGCS",
]
6 changes: 5 additions & 1 deletion libs/vertexai/tests/unit_tests/test_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@
"HarmCategory",
"PydanticFunctionsOutputParser",
"create_structured_runnable",
"VectorSearchVectorStore",
"VertexAIImageCaptioning",
"VertexAIImageCaptioningChat",
"VertexAIImageEditorChat",
"VertexAIImageGeneratorChat",
"VertexAIVisualQnAChat",
"DataStoreDocumentStorage",
"GCSDocumentStorage",
"VectorSearchVectorStore",
"VectorSearchVectorStoreDatastore",
"VectorSearchVectorStoreGCS",
]


Expand Down

0 comments on commit a609de0

Please sign in to comment.