GenkitG
Genkitโ€ข16mo agoโ€ข
6 replies
managerial-maroon

Hi everyone! I'm trying to implement RAG

Hi everyone! I'm trying to implement RAG by storing vector embeddings in Cloud Firestore documents.
I have created the Firestore index with the following command: gcloud alpha firestore indexes composite create --project=<MY_FIREBASE_PROJECT_ID> --collection-group=recipies --query-scope=COLLECTION --field-config=vector-config='{"dimension":"768","flat": "{}"}',field-path=embedding

When I call the flow via the local Developer UI I get the following error asking me to create the Firestore index but for another of my Firebase projects (and without the alpha keyword in the command)!

9 FAILED_PRECONDITION: Missing vector index configuration. Please create the required index with the following gcloud command: gcloud firestore indexes composite create --project=<ANOTHER_OF_MY_PROJECTS> --collection-group=recipies --query-scope=COLLECTION --field-config=vector-config='{"dimension":"768","flat": "{}"}',field-path=embedding

I've looked everywhere in my Firebase projects file for a reference to this other firebase project (e.g. in .firebaserc) but nothing... It's like the id of the other Firebase project is stored somewhere. Any idea?Thanks in advance!
Was this page helpful?