You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though I've replaced my project id in main.py it's throwing below error:
raceback (most recent call last):
File "/home/student_01_288500eb966c/gen-ai-assessment/main.py", line 35, in
embedding_model = VertexAIEmbeddings(model_name="text-embedding-004")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/student_01_288500eb966c/.local/lib/python3.12/site-packages/langchain_google_vertexai/embeddings.py", line 150, in init
super().init(
File "/usr/local/lib/python3.12/dist-packages/pydantic/main.py", line 209, in init
validated_self = self.pydantic_validator.validate_python(data, self_instance=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for VertexAIEmbeddings
Value error, Unable to find your project. Please provide a project ID by:
Passing a constructor argument
Using vertexai.init()
Setting project using 'gcloud config set project my-project'
Setting a GCP environment variable
To create a Google Cloud project, please follow guidance at https://developers.google.com/workspace/guides/create-project [type=value_error, input_value={'project': None, 'locati... 'default_metadata': ()}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.9/v/value_error
Waiting up to 5 seconds.
Sent all pending logs.
Then I tried providing project id as a param to VertexAIEmbeddings() then it's giving err 403:permission denied.
The text was updated successfully, but these errors were encountered:
Either you are not using credentials provided by GCP and using your personal account.
You didn't set the correct project as the current working project see the below code to set the project
`Authenticate with GCP (if not already authenticated):
gcloud auth login
Set the project ID:
gcloud config set project [PROJECT_ID]
Replace [PROJECT_ID] with the desired project ID.
Verify the project is set:
gcloud config get-value project`
Even though I've replaced my project id in main.py it's throwing below error:
raceback (most recent call last):
File "/home/student_01_288500eb966c/gen-ai-assessment/main.py", line 35, in
embedding_model = VertexAIEmbeddings(model_name="text-embedding-004")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/student_01_288500eb966c/.local/lib/python3.12/site-packages/langchain_google_vertexai/embeddings.py", line 150, in init
super().init(
File "/usr/local/lib/python3.12/dist-packages/pydantic/main.py", line 209, in init
validated_self = self.pydantic_validator.validate_python(data, self_instance=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for VertexAIEmbeddings
Value error, Unable to find your project. Please provide a project ID by:
Passing a constructor argument
Using vertexai.init()
Setting project using 'gcloud config set project my-project'
Setting a GCP environment variable
To create a Google Cloud project, please follow guidance at https://developers.google.com/workspace/guides/create-project [type=value_error, input_value={'project': None, 'locati... 'default_metadata': ()}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.9/v/value_error
Waiting up to 5 seconds.
Sent all pending logs.
Then I tried providing project id as a param to VertexAIEmbeddings() then it's giving err 403:permission denied.
The text was updated successfully, but these errors were encountered: