From cefb94a8e3faa0837ab6608a8b1b1de0c081ca23 Mon Sep 17 00:00:00 2001 From: "J.K. Kashe" <127425778+jk-kashe@users.noreply.github.com> Date: Fri, 6 Dec 2024 17:23:44 +0100 Subject: [PATCH] fix: updated finance-advisor-spanner to an up-to-date embedding model (#1487) --- gemini/sample-apps/finance-advisor-spanner/README.md | 2 +- .../sample-apps/finance-advisor-spanner/Schema-Operations.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gemini/sample-apps/finance-advisor-spanner/README.md b/gemini/sample-apps/finance-advisor-spanner/README.md index a5fdd15f2b7..fec9aaf3e94 100644 --- a/gemini/sample-apps/finance-advisor-spanner/README.md +++ b/gemini/sample-apps/finance-advisor-spanner/README.md @@ -73,7 +73,7 @@ The Finvest Spanner demo application was built using: ```sql ALTER MODEL EmbeddingsModel SET OPTIONS ( - endpoint = '//aiplatform.googleapis.com/projects/'YOUR PROJECT ID HERE'/locations/'YOUR SPANNER INSTANCE LOCATION HERE'/publishers/google/models/text-embedding-003' + endpoint = '//aiplatform.googleapis.com/projects/'YOUR PROJECT ID HERE'/locations/'YOUR SPANNER INSTANCE LOCATION HERE'/publishers/google/models/textembedding-gecko@003' ) ; ``` diff --git a/gemini/sample-apps/finance-advisor-spanner/Schema-Operations.sql b/gemini/sample-apps/finance-advisor-spanner/Schema-Operations.sql index 4c51aec2497..3d648eb9a18 100644 --- a/gemini/sample-apps/finance-advisor-spanner/Schema-Operations.sql +++ b/gemini/sample-apps/finance-advisor-spanner/Schema-Operations.sql @@ -1,6 +1,6 @@ ALTER MODEL EmbeddingsModel SET OPTIONS ( -endpoint = '//aiplatform.googleapis.com/projects//locations//publishers/google/models/text-embedding-003' +endpoint = '//aiplatform.googleapis.com/projects//locations//publishers/google/models/textembedding-gecko@003' ) ; ALTER TABLE EU_MutualFunds ADD COLUMN fund_name_Tokens TOKENLIST AS (TOKENIZE_FULLTEXT(fund_name)) HIDDEN;