{"id":23907633,"url":"https://github.com/bradleybonitatibus/vertigo","last_synced_at":"2026-06-14T18:34:23.247Z","repository":{"id":110263955,"uuid":"487534814","full_name":"bradleybonitatibus/vertigo","owner":"bradleybonitatibus","description":"An alternative Vertex AI (AI Platform) Featurestore Online Serving Client.","archived":false,"fork":false,"pushed_at":"2023-02-21T11:11:24.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-05T03:13:29.385Z","etag":null,"topics":["feature-store","go","vertex-ai"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bradleybonitatibus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-01T12:41:54.000Z","updated_at":"2022-09-11T19:34:23.000Z","dependencies_parsed_at":"2023-06-02T18:30:59.334Z","dependency_job_id":null,"html_url":"https://github.com/bradleybonitatibus/vertigo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradleybonitatibus%2Fvertigo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradleybonitatibus%2Fvertigo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradleybonitatibus%2Fvertigo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradleybonitatibus%2Fvertigo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradleybonitatibus","download_url":"https://codeload.github.com/bradleybonitatibus/vertigo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240331318,"owners_count":19784643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["feature-store","go","vertex-ai"],"created_at":"2025-01-05T03:13:37.036Z","updated_at":"2026-06-14T18:34:18.225Z","avatar_url":"https://github.com/bradleybonitatibus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `vertigo`\n\nAn alternative Vertex AI (AI Platform) Featurestore Online Serving Client.\n\n## Goals\n\nThe main goal of this project is to provide an alternative way of interacting with the Online Featurestore\nService. Specifically, several semantics are introduced in this API:\n\n- `Query`\n- `Config`\n- `Entity`\n\nThe `Query` type contains parameterized inputs for the ReadFeatureValues RPC, containing\nthe entity ID, features to return (projection), and the entity type.\n\nThe `Config` type contains project level configuration, around the GCP Region, GCP Project ID,\nand the Featurestore you are querying from.\n\nLastly, the `Entity` type is a wrapper struct around the `Header` and `EntityView.Data`\nfields in the `ReadFeatureValuesResponse`.\nThe `Entity` has a receiver function that can scan the header and data into a user-provided\nstruct pointer.\n\nYou can provide an `interface{}` (pointer to a struct) type to the `entity.ScanStruct` function,\nand as long as your struct has a `vertex` tag with the corresponding feature name, it will\nload the values into the struct.\n\n## Example\n\nThe following is an example of using `vertigo` for a \"customer\" entity, which has the following features\ndefined in Vertex AI Featurestore:\n\n```yaml\nentity_type: my_customer\nfeatures:\n  - name: segment\n    type: STRING\n  - name: market_audiences\n    type: STRING_ARRAY\n  - name: six_month_spend\n    type: DOUBLE\n  - name: another_numeric_feature\n    type: INT64 \n```\n\nNote that the `${features[i].name}` directly maps to the `vertex:\"${feature_name}\"` struct tag.\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"github.com/bradleybonitatibus/vertigo\"\n\t\"log\"\n)\n\n// MyCustomer is a user provided struct that contain `\"vertex\"` tags that map to the entity feature ID in\n// the Vertex Feature Store.\ntype MyCustomer struct {\n\tSegment               string   `json:\"segment\" vertex:\"segment\"`\n\tMarketAudiences       []string `json:\"market_audiences\" vertex:\"market_audiences\"`\n\tSixMonthSpend         *float64 `json:\"six_month_spend\" vertex:\"six_month_spend\"`\n\tAnotherNumericFeature int64    `json:\"another_numeric_feature\" vertex:\"another_numeric_feature\"`\n}\n\nfunc main() {\n\tvar region string\n\tvar projectID string\n\tvar featurestoreName string\n\t// region = \"my-gcp-region\"\n\t// projectID = \"my-project-id\"\n\t// featurestoreName = \"my_featurestore_name\"\n\tctx := context.Background()\n\tclient, err := vertigo.NewClient(ctx, \u0026vertigo.Config{\n\t\tRegion:           region,\n\t\tProjectID:        projectID,\n\t\tFeatureStoreName: featurestoreName,\n\t})\n\tdefer client.Close()\n\tif err != nil {\n\t\tlog.Fatalf(\"vertigo.NewClient: %v\", err)\n\t}\n\tmyCust := MyCustomer{}\n\n\tentity, err := client.GetEntity(ctx, \u0026vertigo.Query{\n\t\tEntityType: \"my_customer\",\n\t\tEntityID:   \"123abc\",\n\t\tFeatures:   []string{\"*\"},\n\t})\n\tif err != nil {\n\t\tlog.Fatalf(\"client.GetEntity: %v\", err)\n\t}\n\terr = entity.ScanStruct(\u0026myCust)\n\tif err != nil {\n\t\tlog.Fatalf(\"entity.ScanStruct: %v\", err)\n\t}\n\t// continue using MyCustomer as you wish.\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradleybonitatibus%2Fvertigo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradleybonitatibus%2Fvertigo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradleybonitatibus%2Fvertigo/lists"}