Lesson 5: Text Generation with Vertex AI

Hello @Yiyi,

Please try to execute the first 8 code cells of the Lesson 1 using the same account where you had this error, including this cell:

vector = embedding[0].values
print(f"Length = {len(vector)}")
print(vector[:10])

If you see the result like ‘message’ instead of array of numbers, probably you have the issue similar to this one.

As I remember when I had this issue that I mentioned then all queries like embedding, BigQuery and inference didn’t work, and it was the issue more than 1 week.

Today I checked my original account again and noticed that somehow currently I don’t have this issue, so either the problem was resolved or block has expired (I don’t know precise reason because there was no feedback from technical support).
So probably if you rerun it now you will not have this error again.

But if it is still your issue then try to execute the lessons with the problems using another Google account.

Thank you.