Skip to content

Commit

Permalink
try manual vertexai init
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerhutcherson committed Sep 5, 2023
1 parent f1d940b commit 723beac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions redisvl/vectorize/text/vertexai.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ def __init__(
"GCP project id and valid location are required in the api_config"
)

print(api_config, flush=True)

vertexai.init(project=api_config["project_id"], location=api_config["location"])

self._model_client = TextEmbeddingModel.from_pretrained(model)
self._dims = self._set_model_dims()

Expand Down

0 comments on commit 723beac

Please sign in to comment.