Skip to content

Commit 5bd0c38

Browse files
lee1premium-2024iennae
authored andcommitted
fix: Getting embeddings using text-embedding-005.
1 parent d56b312 commit 5bd0c38

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ai-platform/snippets/embedding-model-tuning.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async function main(
2323
project,
2424
outputDir,
2525
pipelineJobDisplayName = 'embedding-customization-pipeline-sample',
26-
baseModelVersionId = 'text-embedding-004',
26+
baseModelVersionId = 'text-embedding-005',
2727
taskType = 'DEFAULT',
2828
corpusPath = 'gs://cloud-samples-data/ai-platform/embedding/goog-10k-2024/r11/corpus.jsonl',
2929
queriesPath = 'gs://cloud-samples-data/ai-platform/embedding/goog-10k-2024/r11/queries.jsonl',
@@ -62,7 +62,7 @@ async function main(
6262
};
6363
const pipelineJob = {
6464
templateUri:
65-
'https://us-kfp.pkg.dev/ml-pipeline/llm-text-embedding/tune-text-embedding-model/v1.1.3',
65+
'https://us-kfp.pkg.dev/ml-pipeline/llm-text-embedding/tune-text-embedding-model/v1.1.4',
6666
displayName: pipelineJobDisplayName,
6767
runtimeConfig,
6868
};

ai-platform/snippets/predict-text-embeddings-preview.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async function main() {
2121

2222
// TODO(developer): Update the following for your own use case.
2323
const project = 'long-door-651';
24-
const model = 'text-embedding-preview-0815';
24+
const model = 'text-embedding-005';
2525
const location = 'us-central1';
2626
// Calculate the embedding for code blocks. Using 'RETRIEVAL_DOCUMENT' for corpus.
2727
// Specify the task type as 'CODE_RETRIEVAL_QUERY' for query, e.g. 'Retrieve a function that adds two numbers'.

ai-platform/snippets/predict-text-embeddings.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// [START generativeaionvertexai_sdk_embedding]
2121
async function main(
2222
project,
23-
model = 'text-embedding-004',
23+
model = 'text-embedding-005',
2424
texts = 'banana bread?;banana muffins?',
2525
task = 'QUESTION_ANSWERING',
2626
dimensionality = 0,

0 commit comments

Comments
 (0)