The issue is if you run the following code in the Video
embedding_model = TextEmbeddingModel.from_pretrained(
“textembedding-gecko@001”)
It would run but while generating the embeddings for the sentence it might throw you an error because Google has retired that embedding model
So, try the changing the embedding model to the following:
embedding_model = TextEmbeddingModel.from_pretrained(“text-embedding-005”)
This will remove the error for you code.