Skip to content

Commit

Permalink
Fix: Don't re-run bigquery example creation (#46)
Browse files Browse the repository at this point in the history
* Don't re-run bigquery example creation

* Adding flash as default for BQ deployment

---------

Co-authored-by: Luka Fontanilla <51471651+LukaFontanilla@users.noreply.github.com>
  • Loading branch information
waziers and LukaFontanilla authored Jun 11, 2024
1 parent 92103b7 commit ecc6075
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion explore-assistant-backend/terraform/bigquery/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ resource "google_bigquery_job" "create_bq_model_llm" {
query = <<EOF
CREATE OR REPLACE MODEL `${var.dataset_id}.explore_assistant_llm`
REMOTE WITH CONNECTION `${google_bigquery_connection.connection.name}`
OPTIONS (endpoint = 'gemini-pro')
OPTIONS (endpoint = 'gemini-1.5-flash')
EOF
create_disposition = ""
write_disposition = ""
Expand Down
7 changes: 7 additions & 0 deletions explore-assistant-backend/terraform/bigquery_examples.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ resource "google_bigquery_job" "create_explore_assistant_examples_table" {

location = var.deployment_region
depends_on = [ time_sleep.wait_after_apis_activate]

lifecycle {
ignore_changes = [query, job_id]
}
}


Expand All @@ -87,4 +91,7 @@ resource "google_bigquery_job" "create_explore_assistant_refinement_examples_tab

location = var.deployment_region
depends_on = [ time_sleep.wait_after_apis_activate]
lifecycle {
ignore_changes = [query, job_id]
}
}

0 comments on commit ecc6075

Please sign in to comment.