Description
I am running locally on my laptop the assignments from the DeepLearning.ai course: Building Multimodal Search and RAG
I am facing issue in the assignment L5 Building Multimodal Search and RAG - DeepLearning.AI.
In this assignment we load the backup collection (containing images and videos) provided in the course:
client.backup.restore(
backup_id=“resources-img-and-vid”,
include_collections=collection_name,
backend=“filesystem”
)
I am able to get the count of images and videos.
The error comes while retrieving similar content based on a text query. (This is a multimodal assignment where we do retrieve images and videos based on text query).
resources = client.collections.get(collection_name)
response = resources.query.near_text(
query=query,
filters=Filter.by_property(“mediaType”).equal(“image”), # return only image objects
return_properties=[“path”],
limit=1
)
Error stack:
python3.11/site-packages/weaviate/collections/grpc/query.py:618) raise WeaviateQueryError(e.details(), "GRPC search") WeaviateQueryError: Query call with protocol GRPC search failed with message explorer: get class: vectorize params: vectorize params: vectorize params: vectorize keywords: remote client vectorize: connection to Google PaLM failed with status: 403 error: Permission 'aiplatform.endpoints.predict' denied on resource '//aiplatform.googleapis.com/projects/semi-random-dev/locations/us-central1/publishers/google/models/multimodalembedding@001' (or it may not exist)..
My understanding for the reason of this failure:
The collection was likely created using the below command as mentioned in L2 assignment: Building Multimodal Search and RAG - DeepLearning.AI
client.collections.create(
name=collection_name,
vectorizer_config=Configure.Vectorizer.multi2vec_palm(
image_fields=["image"],
video_fields=["video"],
project_id="semi-random-dev",
location="us-central1",
model_id="multimodalembedding@001",
dimensions=1408
)
)
The project_id mentioned is semi-random-dev. Whereas the project_id of my project in Google Cloud is different.
Question: Is it possible to change the project_id in the vectorizer_config of the restored collection?
Server Setup Information
- Weaviate Server Version: weaviate-client==4.5.4
- Deployment Method: embedded
- Multi Node? Number of Running Nodes:
- Client Language and Version: Python 3.11
- Multitenancy?: