Skip to content

Commit 7246497

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
feat: Add support for task type (CODE_RETRIEVAL_QUERY) through get_embeddings.
PiperOrigin-RevId: 686521364
1 parent ae63a43 commit 7246497

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vertexai/language_models/_language_models.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def tune_model(
267267
model_display_name: Custom display name for the tuned model.
268268
tuning_evaluation_spec: Specification for the model evaluation during tuning.
269269
default_context: The context to use for all training samples by default.
270-
task_type: Type of task. Can be "RETRIEVAL_QUERY", "RETRIEVAL_DOCUMENT", "SEMANTIC_SIMILARITY", "CLASSIFICATION", "CLUSTERING", "QUESTION_ANSWERING", or "FACT_VERIFICATION".
270+
task_type: Type of task. Can be "RETRIEVAL_QUERY", "RETRIEVAL_DOCUMENT", "SEMANTIC_SIMILARITY", "CLASSIFICATION", "CLUSTERING", "QUESTION_ANSWERING", "FACT_VERIFICATION", or "CODE_RETRIEVAL_QUERY".
271271
machine_type: Machine type. E.g., "a2-highgpu-1g". See also: https://cloud.google.com/vertex-ai/docs/training/configure-compute.
272272
accelerator: Kind of accelerator. E.g., "NVIDIA_TESLA_A100". See also: https://cloud.google.com/vertex-ai/docs/training/configure-compute.
273273
accelerator_count: Count of accelerators.
@@ -2286,7 +2286,7 @@ def tune_model(
22862286
task_type: The task type expected to be used during inference.
22872287
Valid values are `DEFAULT`, `RETRIEVAL_QUERY`, `RETRIEVAL_DOCUMENT`,
22882288
`SEMANTIC_SIMILARITY`, `CLASSIFICATION`, `CLUSTERING`,
2289-
`FACT_VERIFICATION`, and `QUESTION_ANSWERING`.
2289+
`QUESTION_ANSWERING`, `FACT_VERIFICATION`, and `CODE_RETRIEVAL_QUERY`.
22902290
machine_type: The machine type to use for training. For information
22912291
about selecting the machine type that matches the accelerator
22922292
type and count you have selected, see

0 commit comments

Comments
 (0)