Skip to content

Commit 196861f

Browse files
[DOCS] Amends text with embedding_size info (#2469) (#2471)
(cherry picked from commit 1772892) Co-authored-by: István Zoltán Szabó <[email protected]>
1 parent c849822 commit 196861f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/en/stack/ml/nlp/ml-nlp-text-emb-vector-search-example.asciidoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,13 @@ index failures into a different index.
194194

195195
Before ingesting the data through the pipeline, create the mappings of the
196196
destination index, in particular for the field `text_embedding.predicted_value`
197-
where the ingest processor stores the embeddings. The msmarco-MiniLM-L-12-v3 model produces
198-
embeddings with 384 dimensions; the `dense_vector` field must be configured
199-
with the same number of dimensions as specified by the `dims` option.
197+
where the ingest processor stores the embeddings. The `dense_vector` field must
198+
be configured with the same number of dimensions (`dims`) as the text embedding
199+
produced by the model. That value can be found in the `embedding_size` option in
200+
the model configuration either under the Trained Models page in {kib} or in the
201+
response body of the {ref}/get-trained-models.html[Get trained models API] call.
202+
The msmarco-MiniLM-L-12-v3 model has embedding_size of 384, so `dims` is set to
203+
384.
200204

201205
[source,js]
202206
--------------------------------------------------

0 commit comments

Comments
 (0)