mirror of
https://github.com/GoogleCloudPlatform/vertex-ai-samples.git
synced 2026-09-26 14:42:04 +00:00
Update for GA relase, use v1 sdk, and remove known issues (#2510)
* Updates Bigtable serving noteebok for GA release * Removes preview disclaimer * Updates from linter --------- Co-authored-by: Kamal Gurala <gkamal@google.com>
This commit is contained in:
co-authored by
Kamal Gurala
parent
eb104d4d92
commit
87ddc8ec00
+34
-35
@@ -88,20 +88,6 @@
|
||||
"- Use the online server to fetch feature values for online prediction."
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
"id": "XIMD3zCgDGop"
|
||||
},
|
||||
"source": [
|
||||
"### Known Issues\n",
|
||||
"This public Preview release has the following known issues:\n",
|
||||
"\n",
|
||||
"- While running, the data sync pipeline creates temporary tables and datasets in your Google Cloud project. These tables and datasets can be viewed by all users who have `bigquery.tables.getData` permission for the project.\n",
|
||||
"\n",
|
||||
"The development team is actively working on resolutions for these issues. By using the feature, you acknowledge that you're aware of the open issues and that this preview is provided “as is” under the pre-GA terms of service."
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
@@ -161,9 +147,14 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Install the packages\n",
|
||||
"! pip3 install --upgrade --quiet google-cloud-aiplatform\\\n",
|
||||
" google-cloud-bigquery\\\n",
|
||||
" db-dtypes"
|
||||
"! pip3 install --upgrade --quiet google-cloud-bigquery\\\n",
|
||||
" db-dtypes\n",
|
||||
"\n",
|
||||
"# Uninstall previous version of google-cloud-aiplatform SDK\n",
|
||||
"!pip3 uninstall google-cloud-aiplatform -y\n",
|
||||
"\n",
|
||||
"# Install the SDK from github\n",
|
||||
"!pip3 install --upgrade git+https://github.com/googleapis/python-aiplatform.git"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -356,26 +347,24 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from google.cloud import aiplatform, bigquery\n",
|
||||
"from google.cloud.aiplatform_v1beta1 import (\n",
|
||||
" FeatureOnlineStoreAdminServiceClient, FeatureOnlineStoreServiceClient,\n",
|
||||
" FeatureRegistryServiceClient)\n",
|
||||
"from google.cloud.aiplatform_v1beta1.types import feature as feature_pb2\n",
|
||||
"from google.cloud.aiplatform_v1beta1.types import \\\n",
|
||||
" feature_group as feature_group_pb2\n",
|
||||
"from google.cloud.aiplatform_v1beta1.types import \\\n",
|
||||
"from google.cloud.aiplatform_v1 import (FeatureOnlineStoreAdminServiceClient,\n",
|
||||
" FeatureOnlineStoreServiceClient,\n",
|
||||
" FeatureRegistryServiceClient)\n",
|
||||
"from google.cloud.aiplatform_v1.types import feature as feature_pb2\n",
|
||||
"from google.cloud.aiplatform_v1.types import feature_group as feature_group_pb2\n",
|
||||
"from google.cloud.aiplatform_v1.types import \\\n",
|
||||
" feature_online_store as feature_online_store_pb2\n",
|
||||
"from google.cloud.aiplatform_v1beta1.types import \\\n",
|
||||
"from google.cloud.aiplatform_v1.types import \\\n",
|
||||
" feature_online_store_admin_service as \\\n",
|
||||
" feature_online_store_admin_service_pb2\n",
|
||||
"from google.cloud.aiplatform_v1beta1.types import \\\n",
|
||||
"from google.cloud.aiplatform_v1.types import \\\n",
|
||||
" feature_online_store_service as feature_online_store_service_pb2\n",
|
||||
"from google.cloud.aiplatform_v1beta1.types import \\\n",
|
||||
"from google.cloud.aiplatform_v1.types import \\\n",
|
||||
" feature_registry_service as feature_registry_service_pb2\n",
|
||||
"from google.cloud.aiplatform_v1beta1.types import \\\n",
|
||||
" feature_view as feature_view_pb2\n",
|
||||
"from google.cloud.aiplatform_v1beta1.types import \\\n",
|
||||
"from google.cloud.aiplatform_v1.types import feature_view as feature_view_pb2\n",
|
||||
"from google.cloud.aiplatform_v1.types import \\\n",
|
||||
" featurestore_service as featurestore_service_pb2\n",
|
||||
"from google.cloud.aiplatform_v1beta1.types import io as io_pb2"
|
||||
"from google.cloud.aiplatform_v1.types import io as io_pb2"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -966,6 +955,16 @@
|
||||
")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
"id": "H1t0xA5XB_3n"
|
||||
},
|
||||
"source": [
|
||||
"###Note\n",
|
||||
"Syncing data into FeatureOnlineStores is a public Preview release. By using the feature, you acknowledge that you're aware of the open issues and that this preview is provided “as is” under the pre-GA terms of service.\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
@@ -1092,7 +1091,7 @@
|
||||
"data_client.fetch_feature_values(\n",
|
||||
" request=feature_online_store_service_pb2.FetchFeatureValuesRequest(\n",
|
||||
" feature_view=f\"projects/{PROJECT_ID}/locations/{REGION}/featureOnlineStores/{FEATURE_ONLINE_STORE_ID}/featureViews/{FEATURE_VIEW_ID}\",\n",
|
||||
" id=\"28098\",\n",
|
||||
" data_key=feature_online_store_service_pb2.FeatureViewDataKey(key=\"28098\"),\n",
|
||||
" )\n",
|
||||
")"
|
||||
]
|
||||
@@ -1117,8 +1116,8 @@
|
||||
"data_client.fetch_feature_values(\n",
|
||||
" request=feature_online_store_service_pb2.FetchFeatureValuesRequest(\n",
|
||||
" feature_view=f\"projects/{PROJECT_ID}/locations/{REGION}/featureOnlineStores/{FEATURE_ONLINE_STORE_ID}/featureViews/{FEATURE_VIEW_ID}\",\n",
|
||||
" id=\"28098\",\n",
|
||||
" format=feature_online_store_service_pb2.FetchFeatureValuesRequest.Format.PROTO_STRUCT,\n",
|
||||
" data_key=feature_online_store_service_pb2.FeatureViewDataKey(key=\"28098\"),\n",
|
||||
" data_format=feature_online_store_service_pb2.FeatureViewDataFormat.PROTO_STRUCT,\n",
|
||||
" )\n",
|
||||
")"
|
||||
]
|
||||
@@ -1175,7 +1174,7 @@
|
||||
],
|
||||
"metadata": {
|
||||
"colab": {
|
||||
"name": "online_feature_serving_and_fetching_bigquery_data_with_feature_store.ipynb",
|
||||
"name": "online_feature_serving_and_fetching_bigquery_data_with_feature_store_bigtable.ipynb",
|
||||
"toc_visible": true
|
||||
},
|
||||
"kernelspec": {
|
||||
Reference in New Issue
Block a user