Skip to main content
Endpoints, the database and the Google Cloud project are never written in the code. The scripts read them from environment variables. The repository’s .env.example lists them with placeholder values. Copy it, fill in your own values, and keep your copy out of version control.

Services

With psycopg 3 installed, use the URL form postgresql+psycopg://. A plain postgresql:// URL makes SQLAlchemy load psycopg2.

Models and files

The backend must match how the model file was built. A -gpu file on cpu fails with tf_lite_prefill_decode not found in the model.

Gateway and term-list builder

Tests