Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: googleapis/python-aiplatform
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.48.0
Choose a base ref
...
head repository: googleapis/python-aiplatform
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.49.0
Choose a head ref

Commits on Apr 17, 2024

  1. chore: Fixed incorrect cloud profiler import error message

    Fixes: #3623
    PiperOrigin-RevId: 625736198
    Ark-kun authored and copybara-github committed Apr 17, 2024
    Copy the full SHA
    2d51a49 View commit details
  2. chore: Add unit tests for reasoning engine edge cases

    PiperOrigin-RevId: 625793587
    yeesian authored and copybara-github committed Apr 17, 2024
    Copy the full SHA
    fc0e1df View commit details
  3. Copybara import of the project:

    --
    8b8838d by release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>:
    
    chore(main): release 1.48.0
    
    COPYBARA_INTEGRATE_REVIEW=#3592 from googleapis:release-please--branches--main b057e74
    PiperOrigin-RevId: 625796355
    sasha-gitg authored and copybara-github committed Apr 17, 2024
    Copy the full SHA
    db10338 View commit details
  4. feat: Add mappings to pipeline templates for text-embedding models.

    PiperOrigin-RevId: 625816165
    vertex-sdk-bot authored and copybara-github committed Apr 17, 2024
    Copy the full SHA
    6279924 View commit details
  5. chore: Cover the case if create Ray cluster with same machine spec, b…

    …ut different disk specs
    
    PiperOrigin-RevId: 625816374
    yinghsienwu authored and copybara-github committed Apr 17, 2024
    Copy the full SHA
    e35b53f View commit details

Commits on Apr 18, 2024

  1. chore: Decrease Tensorboard REQUEST_SIZE to reduce OutOfSpace errors.

    PiperOrigin-RevId: 626098969
    vertex-sdk-bot authored and copybara-github committed Apr 18, 2024
    Copy the full SHA
    4f519ad View commit details
  2. chore: update setup.py for vertexai package

    PiperOrigin-RevId: 626145825
    yinghsienwu authored and copybara-github committed Apr 18, 2024
    Copy the full SHA
    a652e93 View commit details

Commits on Apr 19, 2024

  1. chore: Improve integration test for matching engine.

    PiperOrigin-RevId: 626197276
    lingyinw authored and copybara-github committed Apr 19, 2024
    Copy the full SHA
    c21b7eb View commit details
  2. feat: Add FeatureNormType to MatchingEngineIndexConfig.

    PiperOrigin-RevId: 626348332
    vertex-sdk-bot authored and copybara-github committed Apr 19, 2024
    Copy the full SHA
    c0e7acc View commit details

Commits on Apr 22, 2024

  1. feat: Add additional parameters for GenerationConfig

    - `presence_penalty`
    - `frequency_penalty`
    - `response_mime_type`
    
    PiperOrigin-RevId: 627067043
    holtskinner authored and copybara-github committed Apr 22, 2024
    Copy the full SHA
    0599ca1 View commit details
  2. feat: Add support for TPU v5 lite pod(v5e) for custom training jobs. …

    …Custom training jobs now accept the v5e machine types as listed in https://cloud.google.com/tpu/docs/tpus-in-gke#v5e.
    
    PiperOrigin-RevId: 627165889
    vertex-sdk-bot authored and copybara-github committed Apr 22, 2024
    Copy the full SHA
    415912e View commit details

Commits on Apr 23, 2024

  1. feat: tune_model method for class TextEmbeddingModel.

    PiperOrigin-RevId: 627266791
    vertex-sdk-bot authored and copybara-github committed Apr 23, 2024
    Copy the full SHA
    3eda55d View commit details
  2. chore: Add system tests for reasoning engine

    PiperOrigin-RevId: 627400566
    yeesian authored and copybara-github committed Apr 23, 2024
    Copy the full SHA
    118826f View commit details
  3. fix: Handle missing import for RunnableConfig when generating schema …

    …for LangChain templates
    
    PiperOrigin-RevId: 627419996
    yeesian authored and copybara-github committed Apr 23, 2024
    Copy the full SHA
    76c5d6d View commit details
  4. fix: Parse intermediate steps from LangChain into JSON.

    PiperOrigin-RevId: 627444864
    yeesian authored and copybara-github committed Apr 23, 2024
    Copy the full SHA
    754c89d View commit details
  5. feat: Vertex RAG for enhanced generative AI

    PiperOrigin-RevId: 627454806
    yinghsienwu authored and copybara-github committed Apr 23, 2024
    Copy the full SHA
    39b5149 View commit details
  6. chore: Drop internal flag called convert_system_message_to_human in…

    … the langchain template.
    
    PiperOrigin-RevId: 627463800
    yeesian authored and copybara-github committed Apr 23, 2024
    Copy the full SHA
    4dce293 View commit details

Commits on Apr 24, 2024

  1. chore: GenAI - Added unit test for finish_reason = MAX_TOKENS handl…

    …ing in `GenerativeModel.generate_content` and `ChatSession.send_message`
    
    PiperOrigin-RevId: 627618227
    Ark-kun authored and copybara-github committed Apr 24, 2024
    Copy the full SHA
    c56dd50 View commit details
  2. feat: Fix typo in Vertex Feature Store SDK.

    PiperOrigin-RevId: 627854409
    vertex-sdk-bot authored and copybara-github committed Apr 24, 2024
    Copy the full SHA
    b5404e7 View commit details
  3. fix: Tensorboard uploader - move remaining tensorboard uploader code …

    …to aiplatform
    
    PiperOrigin-RevId: 627863478
    vertex-sdk-bot authored and copybara-github committed Apr 24, 2024
    Copy the full SHA
    f34094b View commit details

Commits on Apr 25, 2024

  1. Copybara import of the project:

    --
    b0a6246 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>:
    
    feat: add model_monitor resource and APIs to public v1beta1 client library
    
    PiperOrigin-RevId: 624288685
    
    Source-Link: googleapis/googleapis@b5d0197
    
    Source-Link: googleapis/googleapis-gen@aaff3b3
    Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWFmZjNiMzg3NTY5OTQ1NmY1YTQ4Y2U1NTc4NDMyMzdkMGQ5M2NjZiJ9
    
    --
    dec2948 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>:
    
    🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    --
    225a74b by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>:
    
    chore: Update gapic-generator-python to v1.17.0
    
    PiperOrigin-RevId: 626992299
    
    Source-Link: googleapis/googleapis@e495ff5
    
    Source-Link: googleapis/googleapis-gen@2463c3c
    Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjQ2M2MzYzI3MTEwYTkyZDFmYWIxNzUxMDllZjk0YmZlNTk2NzE2OCJ9
    
    --
    74fce4a by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>:
    
    🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    --
    42980b9 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>:
    
    chore: Update gapic-generator-python to v1.17.0
    
    PiperOrigin-RevId: 627075268
    
    Source-Link: googleapis/googleapis@b0a5b9d
    
    Source-Link: googleapis/googleapis-gen@56b44dc
    Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTZiNDRkY2EwY2VlYTNhZDJhZmU5Y2U0YTlhZWFkZjliZGYxYjQ0NSJ9
    
    --
    0a2bf40 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>:
    
    fix!: delete the deprecated field for model monitor
    
    PiperOrigin-RevId: 627075504
    
    Source-Link: googleapis/googleapis@5fa62a9
    
    Source-Link: googleapis/googleapis-gen@a557727
    Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTU1NzcyN2E3Y2RjMzZiMDk4MmI3YTE1MDk5YWMyMDk3ZTAyNjVhZSJ9
    
    --
    54b304d by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>:
    
    🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    COPYBARA_INTEGRATE_REVIEW=#3610 from googleapis:owl-bot-copy ac88c1b
    PiperOrigin-RevId: 627899282
    gcf-owl-bot[bot] authored and copybara-github committed Apr 25, 2024
    Copy the full SHA
    86b6cd3 View commit details
  2. fix: GCS Bucket subdirectory not being creating while using Reasoning…

    …Engine create method
    
    COPYBARA_INTEGRATE_REVIEW=#3651 from ItsMeAbby:patch-1 dba25ee
    PiperOrigin-RevId: 628104988
    ItsMeAbby authored and copybara-github committed Apr 25, 2024
    Copy the full SHA
    3d22a18 View commit details

Commits on Apr 26, 2024

  1. feat: GenAI - Improved the exception messages when candidates, parts …

    …or text are not available
    
    Improved cases:
    
    * Response has no Candidates
    * Response Candidate Content has no Parts
    * Response Candidate Content Part has no text
    
    PiperOrigin-RevId: 628236405
    Ark-kun authored and copybara-github committed Apr 26, 2024
    Copy the full SHA
    e82264d View commit details
  2. chore: Rollback

    PiperOrigin-RevId: 628435235
    Ark-kun authored and copybara-github committed Apr 26, 2024
    Copy the full SHA
    90efab2 View commit details
  3. fix: GenAI - Fixed the Part.mime_type property

    PiperOrigin-RevId: 628436837
    Ark-kun authored and copybara-github committed Apr 26, 2024
    Copy the full SHA
    819a44e View commit details
  4. chore: GenAI - Improved the output of the to_dict methods

    Improvements:
    
    * Enum values are not represented as string names
    * Default proto values are no longer included.
    
    PiperOrigin-RevId: 628458271
    Ark-kun authored and copybara-github committed Apr 26, 2024
    Copy the full SHA
    9809a3a View commit details

Commits on Apr 27, 2024

  1. fix: Register TensorFlow models from Ray checkpoints for more recent …

    …TensorFlow version, addressing the deprecation of SavedModel format in keras 3
    
    PiperOrigin-RevId: 628562509
    yinghsienwu authored and copybara-github committed Apr 27, 2024
    Copy the full SHA
    1341e2c View commit details
  2. feat: Support PreflightValidation in Preview PipelineJob submit funct…

    …ion.
    
    PiperOrigin-RevId: 628707894
    vertex-sdk-bot authored and copybara-github committed Apr 27, 2024
    Copy the full SHA
    e88dc0d View commit details

Commits on Apr 29, 2024

  1. chore(main): release 1.49.0 (#3633)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
    release-please[bot] authored Apr 29, 2024
    Copy the full SHA
    d1fca81 View commit details
Showing with 37,137 additions and 264 deletions.
  1. +1 −1 .release-please-manifest.json
  2. +25 −0 CHANGELOG.md
  3. +10 −0 docs/aiplatform_v1beta1/model_monitoring_service.rst
  4. +1 −0 docs/aiplatform_v1beta1/services_.rst
  5. +18 −3 google/cloud/aiplatform/compat/services/__init__.py
  6. +1 −1 google/cloud/aiplatform/gapic_version.py
  7. +8 −0 google/cloud/aiplatform/jobs.py
  8. +12 −0 google/cloud/aiplatform/matching_engine/matching_engine_index.py
  9. +4 −0 google/cloud/aiplatform/matching_engine/matching_engine_index_config.py
  10. +312 −7 google/cloud/aiplatform/preview/pipelinejob/pipeline_jobs.py
  11. +21 −5 google/cloud/aiplatform/preview/vertex_ray/predict/tensorflow/register.py
  12. +5 −0 google/cloud/aiplatform/preview/vertex_ray/predict/util/constants.py
  13. +3 −2 google/cloud/aiplatform/preview/vertex_ray/predict/xgboost/register.py
  14. +12 −0 google/cloud/aiplatform/preview/vertex_ray/util/resources.py
  15. +3 −3 google/cloud/aiplatform/tensorboard/plugins/tf_profiler/profile_uploader.py
  16. +4 −27 google/cloud/aiplatform/tensorboard/uploader.py
  17. +22 −6 google/cloud/aiplatform/tensorboard/uploader_constants.py
  18. +46 −0 google/cloud/aiplatform/training_jobs.py
  19. +1 −1 google/cloud/aiplatform/training_utils/cloud_profiler/cloud_profiler_utils.py
  20. +3 −3 google/cloud/aiplatform/training_utils/cloud_profiler/plugins/tensorflow/tensorboard_api.py
  21. +36 −0 google/cloud/aiplatform/utils/__init__.py
  22. +10 −0 google/cloud/aiplatform/utils/worker_spec_utils.py
  23. +1 −1 google/cloud/aiplatform/v1/schema/predict/instance/gapic_version.py
  24. +1 −1 google/cloud/aiplatform/v1/schema/predict/instance_v1/gapic_version.py
  25. +1 −1 google/cloud/aiplatform/v1/schema/predict/params/gapic_version.py
  26. +1 −1 google/cloud/aiplatform/v1/schema/predict/params_v1/gapic_version.py
  27. +1 −1 google/cloud/aiplatform/v1/schema/predict/prediction/gapic_version.py
  28. +1 −1 google/cloud/aiplatform/v1/schema/predict/prediction_v1/gapic_version.py
  29. +1 −1 google/cloud/aiplatform/v1/schema/trainingjob/definition/gapic_version.py
  30. +1 −1 google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/gapic_version.py
  31. +1 −1 google/cloud/aiplatform/v1beta1/schema/predict/instance/gapic_version.py
  32. +1 −1 google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/gapic_version.py
  33. +1 −1 google/cloud/aiplatform/v1beta1/schema/predict/params/gapic_version.py
  34. +1 −1 google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/gapic_version.py
  35. +1 −1 google/cloud/aiplatform/v1beta1/schema/predict/prediction/gapic_version.py
  36. +1 −1 google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/gapic_version.py
  37. +1 −1 google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/gapic_version.py
  38. +1 −1 google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/gapic_version.py
  39. +1 −1 google/cloud/aiplatform/version.py
  40. +1 −1 google/cloud/aiplatform_v1/gapic_version.py
  41. +70 −0 google/cloud/aiplatform_v1beta1/__init__.py
  42. +184 −0 google/cloud/aiplatform_v1beta1/gapic_metadata.json
  43. +1 −1 google/cloud/aiplatform_v1beta1/gapic_version.py
  44. +9 −9 google/cloud/aiplatform_v1beta1/services/migration_service/client.py
  45. +22 −0 google/cloud/aiplatform_v1beta1/services/model_monitoring_service/__init__.py
  46. +2,392 −0 google/cloud/aiplatform_v1beta1/services/model_monitoring_service/async_client.py
  47. +2,949 −0 google/cloud/aiplatform_v1beta1/services/model_monitoring_service/client.py
  48. +577 −0 google/cloud/aiplatform_v1beta1/services/model_monitoring_service/pagers.py
  49. +40 −0 google/cloud/aiplatform_v1beta1/services/model_monitoring_service/transports/__init__.py
  50. +426 −0 google/cloud/aiplatform_v1beta1/services/model_monitoring_service/transports/base.py
  51. +795 −0 google/cloud/aiplatform_v1beta1/services/model_monitoring_service/transports/grpc.py
  52. +800 −0 google/cloud/aiplatform_v1beta1/services/model_monitoring_service/transports/grpc_asyncio.py
  53. +6,487 −0 google/cloud/aiplatform_v1beta1/services/model_monitoring_service/transports/rest.py
  54. +21 −0 google/cloud/aiplatform_v1beta1/services/schedule_service/async_client.py
  55. +113 −0 google/cloud/aiplatform_v1beta1/services/schedule_service/client.py
  56. +78 −0 google/cloud/aiplatform_v1beta1/types/__init__.py
  57. +295 −0 google/cloud/aiplatform_v1beta1/types/model_monitor.py
  58. +170 −0 google/cloud/aiplatform_v1beta1/types/model_monitoring_alert.py
  59. +193 −0 google/cloud/aiplatform_v1beta1/types/model_monitoring_job.py
  60. +573 −0 google/cloud/aiplatform_v1beta1/types/model_monitoring_service.py
  61. +600 −0 google/cloud/aiplatform_v1beta1/types/model_monitoring_spec.py
  62. +270 −0 google/cloud/aiplatform_v1beta1/types/model_monitoring_stats.py
  63. +16 −0 google/cloud/aiplatform_v1beta1/types/schedule.py
  64. +72 −13 pypi/_vertex_ai_placeholder/setup.py
  65. +1 −1 pypi/_vertex_ai_placeholder/version.py
  66. +56 −0 ...rated_samples/aiplatform_v1beta1_generated_model_monitoring_service_create_model_monitor_async.py
  67. +56 −0 ...erated_samples/aiplatform_v1beta1_generated_model_monitoring_service_create_model_monitor_sync.py
  68. +52 −0 ...amples/aiplatform_v1beta1_generated_model_monitoring_service_create_model_monitoring_job_async.py
  69. +52 −0 ...samples/aiplatform_v1beta1_generated_model_monitoring_service_create_model_monitoring_job_sync.py
  70. +56 −0 ...rated_samples/aiplatform_v1beta1_generated_model_monitoring_service_delete_model_monitor_async.py
  71. +56 −0 ...erated_samples/aiplatform_v1beta1_generated_model_monitoring_service_delete_model_monitor_sync.py
  72. +56 −0 ...amples/aiplatform_v1beta1_generated_model_monitoring_service_delete_model_monitoring_job_async.py
  73. +56 −0 ...samples/aiplatform_v1beta1_generated_model_monitoring_service_delete_model_monitoring_job_sync.py
  74. +52 −0 ...enerated_samples/aiplatform_v1beta1_generated_model_monitoring_service_get_model_monitor_async.py
  75. +52 −0 ...generated_samples/aiplatform_v1beta1_generated_model_monitoring_service_get_model_monitor_sync.py
  76. +52 −0 ...d_samples/aiplatform_v1beta1_generated_model_monitoring_service_get_model_monitoring_job_async.py
  77. +52 −0 ...ed_samples/aiplatform_v1beta1_generated_model_monitoring_service_get_model_monitoring_job_sync.py
  78. +53 −0 ...samples/aiplatform_v1beta1_generated_model_monitoring_service_list_model_monitoring_jobs_async.py
  79. +53 −0 ..._samples/aiplatform_v1beta1_generated_model_monitoring_service_list_model_monitoring_jobs_sync.py
  80. +53 −0 ...erated_samples/aiplatform_v1beta1_generated_model_monitoring_service_list_model_monitors_async.py
  81. +53 −0 ...nerated_samples/aiplatform_v1beta1_generated_model_monitoring_service_list_model_monitors_sync.py
  82. +53 −0 ...les/aiplatform_v1beta1_generated_model_monitoring_service_search_model_monitoring_alerts_async.py
  83. +53 −0 ...ples/aiplatform_v1beta1_generated_model_monitoring_service_search_model_monitoring_alerts_sync.py
  84. +53 −0 ...ples/aiplatform_v1beta1_generated_model_monitoring_service_search_model_monitoring_stats_async.py
  85. +53 −0 ...mples/aiplatform_v1beta1_generated_model_monitoring_service_search_model_monitoring_stats_sync.py
  86. +55 −0 ...rated_samples/aiplatform_v1beta1_generated_model_monitoring_service_update_model_monitor_async.py
  87. +55 −0 ...erated_samples/aiplatform_v1beta1_generated_model_monitoring_service_update_model_monitor_sync.py
  88. +1 −1 samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1.json
  89. +1,796 −1 samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1beta1.json
  90. +8 −5 setup.py
  91. +281 −18 tests/system/aiplatform/test_matching_engine_index.py
  92. +27 −0 tests/system/vertexai/test_generative_models.py
  93. +57 −0 tests/system/vertexai/test_reasoning_engines.py
  94. +54 −1 tests/unit/aiplatform/constants.py
  95. +194 −1 tests/unit/aiplatform/test_custom_job.py
  96. +13 −0 tests/unit/aiplatform/test_matching_engine_index.py
  97. +40 −3 tests/unit/aiplatform/test_model_garden_models.py
  98. +46 −0 tests/unit/aiplatform/test_pipeline_jobs.py
  99. +547 −0 tests/unit/aiplatform/test_training_jobs.py
  100. +3 −3 tests/unit/aiplatform/test_uploader.py
  101. +13 −13 tests/unit/gapic/aiplatform_v1beta1/test_migration_service.py
  102. +12,620 −0 tests/unit/gapic/aiplatform_v1beta1/test_model_monitoring_service.py
  103. +484 −48 tests/unit/gapic/aiplatform_v1beta1/test_schedule_service.py
  104. +8 −1 tests/unit/vertex_langchain/test_reasoning_engine_templates_langchain.py
  105. +92 −2 tests/unit/{vertexai → vertex_langchain}/test_reasoning_engines.py
  106. +111 −0 tests/unit/vertex_rag/conftest.py
  107. +148 −0 tests/unit/vertex_rag/test_rag_constants.py
  108. +394 −0 tests/unit/vertex_rag/test_rag_data.py
  109. +99 −0 tests/unit/vertex_rag/test_rag_retrieval.py
  110. +15 −0 tests/unit/vertex_ray/test_cluster_init.py
  111. +2 −2 tests/unit/vertexai/test_feature_online_store.py
  112. +194 −22 tests/unit/vertexai/test_generative_models.py
  113. +2 −4 vertexai/_model_garden/_model_garden_models.py
  114. +89 −18 vertexai/generative_models/_generative_models.py
  115. +54 −0 vertexai/preview/rag/__init__.py
  116. +463 −0 vertexai/preview/rag/rag_data.py
  117. +74 −0 vertexai/preview/rag/rag_retrieval.py
  118. +56 −0 vertexai/preview/rag/rag_store.py
  119. +155 −0 vertexai/preview/rag/utils/_gapic_utils.py
  120. +51 −0 vertexai/preview/rag/utils/resources.py
  121. +6 −4 vertexai/preview/reasoning_engines/templates/langchain.py
  122. +3 −3 vertexai/reasoning_engines/_reasoning_engines.py
  123. +13 −5 vertexai/reasoning_engines/_utils.py
  124. +12 −8 vertexai/resources/preview/feature_store/utils.py
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.48.0"
".": "1.49.0"
}
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Changelog

## [1.49.0](https://github.com/googleapis/python-aiplatform/compare/v1.48.0...v1.49.0) (2024-04-27)


### Features

* Add additional parameters for `GenerationConfig` ([0599ca1](https://github.com/googleapis/python-aiplatform/commit/0599ca18342aece9d8b9b35534294de541593ef9))
* Add FeatureNormType to `MatchingEngineIndexConfig`. ([c0e7acc](https://github.com/googleapis/python-aiplatform/commit/c0e7acc27e67ef1a951bb4bd97f489164dda14f9))
* Add mappings to pipeline templates for text-embedding models. ([6279924](https://github.com/googleapis/python-aiplatform/commit/627992484ec16fbf7fdfc9c963046e10e3d7c6bf))
* Add support for TPU v5 lite pod(v5e) for custom training jobs. Custom training jobs now accept the v5e machine types as listed in https://cloud.google.com/tpu/docs/tpus-in-gke#v5e. ([415912e](https://github.com/googleapis/python-aiplatform/commit/415912e9258d2b960c7da730902d7f15116cc474))
* Fix typo in Vertex Feature Store SDK. ([b5404e7](https://github.com/googleapis/python-aiplatform/commit/b5404e7106059358dd7fcd21d487e5e31ed4d128))
* GenAI - Improved the exception messages when candidates, parts or text are not available ([e82264d](https://github.com/googleapis/python-aiplatform/commit/e82264d273e35d3b305d434181badfb63a37c79c))
* Support PreflightValidation in Preview PipelineJob submit function. ([e88dc0d](https://github.com/googleapis/python-aiplatform/commit/e88dc0d65ffaed3de9850e8eaadbfa41eb769e06))
* Tune_model method for class TextEmbeddingModel. ([3eda55d](https://github.com/googleapis/python-aiplatform/commit/3eda55d25a8e3816eec0fb3c43f7c16c8a2d9b32))
* Vertex RAG for enhanced generative AI ([39b5149](https://github.com/googleapis/python-aiplatform/commit/39b5149c18355a233dae7ada2f18c8072a6b59f1))


### Bug Fixes

* GCS Bucket subdirectory not being creating while using ReasoningEngine create method ([3d22a18](https://github.com/googleapis/python-aiplatform/commit/3d22a18abdacc7cb53d4b5fef941fa1a34caec08))
* GenAI - Fixed the `Part.mime_type` property ([819a44e](https://github.com/googleapis/python-aiplatform/commit/819a44ea9b624912c31843881fd6130febb8ec57))
* Handle missing import for RunnableConfig when generating schema for LangChain templates ([76c5d6d](https://github.com/googleapis/python-aiplatform/commit/76c5d6d6e99be5e7a8ec81e85aa383b1a39fef66))
* Parse intermediate steps from LangChain into JSON. ([754c89d](https://github.com/googleapis/python-aiplatform/commit/754c89d8514dde707255bf0e3602dfddff49f268))
* Register TensorFlow models from Ray checkpoints for more recent TensorFlow version, addressing the deprecation of SavedModel format in keras 3 ([1341e2c](https://github.com/googleapis/python-aiplatform/commit/1341e2c57907f7867d4237e84c5bb9b77e5dd5f5))
* Tensorboard uploader - move remaining tensorboard uploader code to aiplatform ([f34094b](https://github.com/googleapis/python-aiplatform/commit/f34094b50ea161c2b9f0653be8b5931e922bb8f6))

## [1.48.0](https://github.com/googleapis/python-aiplatform/compare/v1.47.0...v1.48.0) (2024-04-17)


10 changes: 10 additions & 0 deletions docs/aiplatform_v1beta1/model_monitoring_service.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ModelMonitoringService
----------------------------------------

.. automodule:: google.cloud.aiplatform_v1beta1.services.model_monitoring_service
:members:
:inherited-members:

.. automodule:: google.cloud.aiplatform_v1beta1.services.model_monitoring_service.pagers
:members:
:inherited-members:
1 change: 1 addition & 0 deletions docs/aiplatform_v1beta1/services_.rst
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@ Services for Google Cloud Aiplatform v1beta1 API
metadata_service
migration_service
model_garden_service
model_monitoring_service
model_service
notebook_service
persistent_resource_service
21 changes: 18 additions & 3 deletions google/cloud/aiplatform/compat/services/__init__.py
Original file line number Diff line number Diff line change
@@ -63,12 +63,12 @@
from google.cloud.aiplatform_v1beta1.services.model_service import (
client as model_service_client_v1beta1,
)
from google.cloud.aiplatform_v1beta1.services.pipeline_service import (
client as pipeline_service_client_v1beta1,
)
from google.cloud.aiplatform_v1beta1.services.persistent_resource_service import (
client as persistent_resource_service_client_v1beta1,
)
from google.cloud.aiplatform_v1beta1.services.pipeline_service import (
client as pipeline_service_client_v1beta1,
)
from google.cloud.aiplatform_v1beta1.services.prediction_service import (
client as prediction_service_client_v1beta1,
)
@@ -90,10 +90,20 @@
from google.cloud.aiplatform_v1beta1.services.tensorboard_service import (
client as tensorboard_service_client_v1beta1,
)
from google.cloud.aiplatform_v1beta1.services.vertex_rag_data_service import (
client as vertex_rag_data_service_client_v1beta1,
)
from google.cloud.aiplatform_v1beta1.services.vertex_rag_data_service import (
async_client as vertex_rag_data_service_async_client_v1beta1,
)
from google.cloud.aiplatform_v1beta1.services.vertex_rag_service import (
client as vertex_rag_service_client_v1beta1,
)
from google.cloud.aiplatform_v1beta1.services.vizier_service import (
client as vizier_service_client_v1beta1,
)


from google.cloud.aiplatform_v1.services.dataset_service import (
client as dataset_service_client_v1,
)
@@ -195,9 +205,14 @@
pipeline_service_client_v1beta1,
prediction_service_client_v1beta1,
prediction_service_async_client_v1beta1,
reasoning_engine_execution_service_client_v1beta1,
reasoning_engine_service_client_v1beta1,
schedule_service_client_v1beta1,
specialist_pool_service_client_v1beta1,
metadata_service_client_v1beta1,
tensorboard_service_client_v1beta1,
vertex_rag_service_client_v1beta1,
vertex_rag_data_service_client_v1beta1,
vertex_rag_data_service_async_client_v1beta1,
vizier_service_client_v1beta1,
)
2 changes: 1 addition & 1 deletion google/cloud/aiplatform/gapic_version.py
Original file line number Diff line number Diff line change
@@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.48.0" # {x-release-please-version}
__version__ = "1.49.0" # {x-release-please-version}
8 changes: 8 additions & 0 deletions google/cloud/aiplatform/jobs.py
Original file line number Diff line number Diff line change
@@ -1924,6 +1924,7 @@ def from_local_script(
encryption_spec_key_name: Optional[str] = None,
staging_bucket: Optional[str] = None,
persistent_resource_id: Optional[str] = None,
tpu_topology: Optional[str] = None,
) -> "CustomJob":
"""Configures a custom job from a local script.
@@ -2034,6 +2035,12 @@ def from_local_script(
on-demand short-live machines. The network, CMEK, and node pool
configs on the job should be consistent with those on the
PersistentResource, otherwise, the job will be rejected.
tpu_topology (str):
Optional. Specifies the tpu topology to be used for
TPU training job. This field is required for TPU v5 versions. For
details on the TPU topology, refer to
https://cloud.google.com/tpu/docs/v5e#tpu-v5e-config. The topology
must be a supported value for the TPU machine type.
Raises:
RuntimeError: If staging bucket was not set using aiplatform.init
@@ -2063,6 +2070,7 @@ def from_local_script(
boot_disk_size_gb=boot_disk_size_gb,
reduction_server_replica_count=reduction_server_replica_count,
reduction_server_machine_type=reduction_server_machine_type,
tpu_topology=tpu_topology,
).pool_specs
)

12 changes: 12 additions & 0 deletions google/cloud/aiplatform/matching_engine/matching_engine_index.py
Original file line number Diff line number Diff line change
@@ -434,6 +434,9 @@ def create_tree_ah_index(
encryption_spec_key_name: Optional[str] = None,
create_request_timeout: Optional[float] = None,
shard_size: Optional[str] = None,
feature_norm_type: Optional[
matching_engine_index_config.FeatureNormType
] = None,
) -> "MatchingEngineIndex":
"""Creates a MatchingEngineIndex resource that uses the tree-AH algorithm.
@@ -477,6 +480,8 @@ def create_tree_ah_index(
range 1-100, inclusive. The default value is 10 (means 10%) if not set.
distance_measure_type (matching_engine_index_config.DistanceMeasureType):
Optional. The distance measure used in nearest neighbor search.
feature_norm_type (matching_engine_index_config.FeatureNormType):
Optional. The feature norm type used in nearest neighbor search.
description (str):
Optional. The description of the Index.
labels (Dict[str, str]):
@@ -552,6 +557,7 @@ def create_tree_ah_index(
algorithm_config=algorithm_config,
approximate_neighbors_count=approximate_neighbors_count,
distance_measure_type=distance_measure_type,
feature_norm_type=feature_norm_type,
shard_size=shard_size,
)

@@ -580,6 +586,9 @@ def create_brute_force_index(
distance_measure_type: Optional[
matching_engine_index_config.DistanceMeasureType
] = None,
feature_norm_type: Optional[
matching_engine_index_config.FeatureNormType
] = None,
description: Optional[str] = None,
labels: Optional[Dict[str, str]] = None,
project: Optional[str] = None,
@@ -623,6 +632,8 @@ def create_brute_force_index(
Required. The number of dimensions of the input vectors.
distance_measure_type (matching_engine_index_config.DistanceMeasureType):
Optional. The distance measure used in nearest neighbor search.
feature_norm_type (matching_engine_index_config.FeatureNormType):
Optional. The feature norm type used in nearest neighbor search.
description (str):
Optional. The description of the Index.
labels (Dict[str, str]):
@@ -695,6 +706,7 @@ def create_brute_force_index(
dimensions=dimensions,
algorithm_config=algorithm_config,
distance_measure_type=distance_measure_type,
feature_norm_type=feature_norm_type,
shard_size=shard_size,
)

Original file line number Diff line number Diff line change
@@ -125,12 +125,15 @@ class MatchingEngineIndexConfig:
independently.
distance_measure_type (DistanceMeasureType):
Optional. The distance measure used in nearest neighbor search.
feature_norm_type (FeatureNormType):
Optional. The feature norm type used in nearest neighbor search.
"""

dimensions: int
algorithm_config: AlgorithmConfig
approximate_neighbors_count: Optional[int] = None
distance_measure_type: Optional[DistanceMeasureType] = None
feature_norm_type: Optional[FeatureNormType] = None
shard_size: Optional[str] = None

def as_dict(self) -> Dict[str, Any]:
@@ -144,6 +147,7 @@ def as_dict(self) -> Dict[str, Any]:
"algorithmConfig": self.algorithm_config.as_dict(),
"approximateNeighborsCount": self.approximate_neighbors_count,
"distanceMeasureType": self.distance_measure_type,
"featureNormType": self.feature_norm_type,
"shardSize": self.shard_size,
}
return res
Loading