-
Make sure you have a GoogleCloud project and billing is enabled.
-
Install required dependencies:
cd retrieval_service pip install -r requirements.txt
-
In the Firebase console, click
Add project
, then follow the on-screen instructions to create a Firebase project or to add Firebase services to an existing GCP project. -
Navigate to the Cloud Firestore section of the Firebase console. You'll be prompted to select an existing Firebase project. Follow the database creation workflow.
-
Create or edit your existing
retrieval_service/config.yml
:host: 0.0.0.0 datastore: kind: "firestore" projectId: <YOUR_GCP_PROJECT_ID> # (Optional) default to env variable `GCLOUD_PROJECT`
-
Change to the
retrieval_service
directory:cd retrieval_service
-
Populate your Firestore database with the command below. It will take several minutes to run:
python run_database_init.py
Clean up after completing the demo.
-
Delete the default firestore database:
gcloud alpha firestore databases delete --database='(default)'