Skip to content

Commit

Permalink
docs: Make quickstart docs consistent and add Web UI to colab (#2794)
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Chiao <danny@tecton.ai>
  • Loading branch information
adchia authored Jun 14, 2022
1 parent 6fec431 commit 33141f8
Show file tree
Hide file tree
Showing 2 changed files with 359 additions and 229 deletions.
11 changes: 10 additions & 1 deletion docs/getting-started/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,21 +377,30 @@ pprint(feature_vector)

You can also use feature services to manage multiple features, and decouple feature view definitions and the features needed by end applications. The feature store can also be used to fetch either online or historical features using the same api below. More information can be found [here](https://docs.feast.dev/getting-started/concepts/feature-retrieval).

The `driver_activity` feature service pulls all features from the `driver_hourly_stats` feature view:

```python
driver_stats_fs = FeatureService(
name="driver_activity", features=[driver_hourly_stats_view]
)
```

{% tabs %}
{% tab title="Python" %}
```python
from feast import FeatureStore
feature_store = FeatureStore('.') # Initialize the feature store

feature_service = feature_store.get_feature_service("driver_activity")
features = feature_store.get_online_features(
feature_vector = feature_store.get_online_features(
features=feature_service,
entity_rows=[
# {join_key: entity_value}
{"driver_id": 1004},
{"driver_id": 1005},
],
).to_dict()
pprint(feature_vector)
```

{% tabs %}
Expand Down
Loading

0 comments on commit 33141f8

Please sign in to comment.