Having issue about Palm API key with course: Building Multimodal Search and RAG

In the course it keeps using ‘EMBEDDING_API_KEY’ in. the header as below, but the question is how can I get this so called EMBEDDING_API_KEY? Seems the Palm will be deprecated soon and no matter what I tried with Gemini API key or other Google AI keys, it never worked. Any advise? Thanks.

client = weaviate.connect_to_embedded(
version=“1.24.4”,
environment_variables={
“ENABLE_MODULES”: “backup-filesystem,multi2vec-palm”,
“BACKUP_FILESYSTEM_PATH”: “/home/jovyan/work/backups”,
},
headers={
“X-PALM-Api-Key”: EMBEDDING_API_KEY,
}
)

I have also the same problem!

The thing is in Weaviate documentation, they say this is deprecated a suggest another page which is the following:

It this page, it is mentioned that the new headers are the following:

additional_headers = {
“X-Google-Vertex-Api-Key”: “YOUR-VERTEX-API-KEY”, # Replace with your API key
“X-Google-Studio-Api-Key”: “YOUR-AI-STUDIO-API-KEY”, # Replace with your API key
}

but when I use these keys in the header I get an error regarding not including “X-PALM-Api-Key”.

Does anyone have the same issue?

I recommend you post your question in the “Short Course Q&A” area for that course.

This “AI Discussions” forum is monitored by the course staff or mentors for specific courses.