Skip to content

Commit ec335dc

Browse files
authored
Minor typos in EmbeddingGemma MRL section (#605)
1 parent fe3c63b commit ec335dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/en/gemma/docs/embeddinggemma/inference-embeddinggemma-with-sentence-transformers.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@
493493
"\n",
494494
"EmbeddingGemma leverages MRL to provide multiple embedding sizes from one model. It's a clever training method that creates a single, high-quality embedding where the most important information is concentrated at the beginning of the vector.\n",
495495
"\n",
496-
"This means you can get a smaller, still very useful embedding by simply taking the first `N` dimensions of the full embedding. Using smaller, truncated embedding is significantly cheaper to store and faster to process, but this efficiency comes at the cost of potential lower quality of embeddings. MRL gives you the power to choose the optimal balance between this speed and accuracy for your application's specific needs.\n",
496+
"This means you can get a smaller but still very useful embedding by simply taking the first `N` dimensions of the full embedding. Using smaller, truncated embeddings is significantly cheaper to store and faster to process, but this efficiency comes at the cost of potential lower quality of embeddings. MRL gives you the power to choose the optimal balance between this speed and accuracy for your application's specific needs.\n",
497497
"\n",
498498
"Let's use three words `[\"apple\", \"banana\", \"car\"]` and create simplified embeddings to see how MRL works."
499499
]
@@ -538,7 +538,7 @@
538538
"id": "_iv1xG0TPxkm"
539539
},
540540
"source": [
541-
"Now, for a faster application, you don't need a new model. Simply **turncate** the full embeddings to the first **512 dimensions**. For optimal result, it is also recommended to set `normalize_embeddings=True`, which scales the vectors to a unit length of 1."
541+
"Now, for a faster application, you don't need a new model. Simply **truncate** the full embeddings to the first **512 dimensions**. For optimal results, it is also recommended to set `normalize_embeddings=True`, which scales the vectors to a unit length of 1."
542542
]
543543
},
544544
{
@@ -579,7 +579,7 @@
579579
"id": "lgkmgzfVP24M"
580580
},
581581
"source": [
582-
"In extreamly constrained environments, you can further shorten the embeddings to just **256 dimensions**. You can also use the more efficient **dot-product** for similarity calculations instead of the standard **cosine** similarity."
582+
"In extremely constrained environments, you can further shorten the embeddings to just **256 dimensions**. You can also use the more efficient **dot-product** for similarity calculations instead of the standard **cosine** similarity."
583583
]
584584
},
585585
{

0 commit comments

Comments
 (0)