Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@
"source": [
"## <span style=\"color:#ff5f27\">🪄 Feature Group Creation </span>\n",
"\n",
"Now to are ready to create a feature group for your candidate embeddings"
"Now you are ready to create a feature group for your candidate embeddings.\n",
"\n",
"To begin with, you need to create your Embedding Index where you will specify the name of the embeddings feature and the embeddings length.\n",
"Then you attach this index to the FG."
]
},
{
Expand All @@ -237,8 +240,8 @@
"emb = embedding.EmbeddingIndex()\n",
"\n",
"emb.add_embedding(\n",
" \"embeddings\", \n",
" len(data_emb[\"embeddings\"].iloc[0]),\n",
" \"embeddings\", # Embeddings feature name\n",
" len(data_emb[\"embeddings\"].iloc[0]), # Embeddings length\n",
")"
]
},
Expand All @@ -251,7 +254,7 @@
"# Get or create the 'candidate_embeddings_fg' feature group\n",
"candidate_embeddings_fg = fs.get_or_create_feature_group(\n",
" name=\"candidate_embeddings_fg\",\n",
" embedding_index=emb,\n",
" embedding_index=emb, # Specify the Embedding Index\n",
" primary_key=['article_id'],\n",
" version=1,\n",
" description='Embeddings for each article',\n",
Expand Down