Skip to content

Commit 33141f8

Browse files
authored
docs: Make quickstart docs consistent and add Web UI to colab (#2794)
Signed-off-by: Danny Chiao <danny@tecton.ai>
1 parent 6fec431 commit 33141f8

File tree

2 files changed

+359
-229
lines changed

2 files changed

+359
-229
lines changed

docs/getting-started/quickstart.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,21 +377,30 @@ pprint(feature_vector)
377377

378378
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).
379379

380+
The `driver_activity` feature service pulls all features from the `driver_hourly_stats` feature view:
381+
382+
```python
383+
driver_stats_fs = FeatureService(
384+
name="driver_activity", features=[driver_hourly_stats_view]
385+
)
386+
```
387+
380388
{% tabs %}
381389
{% tab title="Python" %}
382390
```python
383391
from feast import FeatureStore
384392
feature_store = FeatureStore('.') # Initialize the feature store
385393

386394
feature_service = feature_store.get_feature_service("driver_activity")
387-
features = feature_store.get_online_features(
395+
feature_vector = feature_store.get_online_features(
388396
features=feature_service,
389397
entity_rows=[
390398
# {join_key: entity_value}
391399
{"driver_id": 1004},
392400
{"driver_id": 1005},
393401
],
394402
).to_dict()
403+
pprint(feature_vector)
395404
```
396405

397406
{% tabs %}

0 commit comments

Comments
 (0)