Skip to content

Commit 83078d3

Browse files
kennethmhcbubriks
andauthored
[FSTORE-1418] Add embeding_index to fg creation guide (logicalclocks#388)
* add similarity search reference * Update docs/user_guides/fs/vector_similarity_search.md Co-authored-by: Ralf <bubriks@gmail.com> --------- Co-authored-by: Ralf <bubriks@gmail.com>
1 parent e74f5b4 commit 83078d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/user_guides/fs/feature_group/create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The first step to create a feature group is to create the API metadata object re
3636
)
3737
```
3838

39-
The full method documentation is available [here](https://docs.hopsworks.ai/feature-store-api/{{{ hopsworks_version }}}/generated/api/feature_group_api/#featuregroup). `name` is the only mandatory parameter of the `create_feature_group` and represents the name of the feature group.
39+
The full method documentation is available [here](https://docs.hopsworks.ai/feature-store-api/{{{ hopsworks_version }}}/generated/api/feature_group_api/#featuregroup). If you need to create a feature group with vector similarity search supported, refer to [this guide](../vector_similarity_search.md#extending-feature-groups-with-similarity-search). `name` is the only mandatory parameter of the `create_feature_group` and represents the name of the feature group.
4040

4141
In the example above we created the first version of a feature group named *weather*, we provide a description to make it searchable to the other project members, as well as making the feature group available online.
4242

docs/user_guides/fs/vector_similarity_search.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ from hsfs import embedding
1717
emb = embedding.EmbeddingIndex(index_name="news_fg")
1818
```
1919

20-
Then, add one or more embedding features to the index. Name and dimension of the embedding features are required for identifying which features should be indexed for k-nearest neighbor (KNN) search. In this example, we get the dimension of the embedding by taking the length of the value of the `embedding_heading` column in the first row of the dataframe `df`. Optionally, you can specify the similarity function among `l2_norm`, `cosine`, and `dot_product`.
20+
Then, add one or more embedding features to the index. Name and dimension of the embedding features are required for identifying which features should be indexed for k-nearest neighbor (KNN) search. In this example, we get the dimension of the embedding by taking the length of the value of the `embedding_heading` column in the first row of the dataframe `df`. Optionally, you can specify the similarity function among `l2_norm`, `cosine`, and `dot_product`. Refer to [add_embedding](https://docs.hopsworks.ai/feature-store-api/{{{ hopsworks_version }}}/generated/api/embedding_index_api/#add_embedding) for the full list of arguments.
2121
```aidl
2222
# Add embedding feature to the index
2323
emb.add_embedding("embedding_heading", len(df["embedding_heading"][0]))

0 commit comments

Comments
 (0)