Skip to content

[DOCS] Amends text with embedding_size info #2469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 13, 2023
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 @@ -194,9 +194,13 @@ index failures into a different index.

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

[source,js]
--------------------------------------------------
Expand Down