Skip to content

Conversation

szabosteve
Copy link
Contributor

@szabosteve szabosteve commented Sep 13, 2024

Overview

This PR simplifies the semantic_text tutorial by removing the copy_to field from the index mapping. copy_to is not required for semantic_text. The tutorial in its previous form might be confusing as the API request in the index mapping creation step contained it.

As it's recommended to use copy_to for hybrid search, this PR also adds a link to the page that leads to a notebook demonstrating hybrid search.

It also adds a NOTE to the ELSER tab of the endpoint creation step in the Inference tutorial about possible timeout error messages during model download.

Preview

Tutorial with semantic text

Copy link
Contributor

Documentation preview:

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-docs (Team:Docs)

@szabosteve szabosteve changed the title [DOCS] Highlights that copy_to is not required for using semantic_text [DOCS] Simplifies semantic_text tutorial by removing copy_to field Sep 13, 2024
@szabosteve szabosteve merged commit c2bd0de into elastic:main Sep 13, 2024
5 checks passed
@szabosteve szabosteve deleted the infer-semantic-tutorials branch September 13, 2024 14:50
szabosteve added a commit to szabosteve/elasticsearch that referenced this pull request Sep 13, 2024
szabosteve added a commit to szabosteve/elasticsearch that referenced this pull request Sep 13, 2024
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x
8.15

Copy link
Contributor

@Mikep86 Mikep86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making this change! Can you fix a few minor errors in the response format?

},
"id": 1713868,
"content": "There are a few foods and food groups that will help to fight inflammation and delayed onset muscle soreness (both things that are inevitable after a long, hard workout) when you incorporate them into your postworkout eats, whether immediately after your run or at a meal later in the day. Advertisement. Advertisement."
"text": "There are a few foods and food groups that will help to fight inflammation and delayed onset muscle soreness (both things that are inevitable after a long, hard workout) when you incorporate them into your postworkout eats, whether immediately after your run or at a meal later in the day. Advertisement. Advertisement."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This text field should be contained within the content object, like so:

"content": {
  "text": <text value>,
  "inference": <inference value>,
}

},
"id": 3389244,
"content": "During Your Workout. There are a few things you can do during your workout to help prevent muscle injury and soreness. According to personal trainer and writer for Iron Magazine, Marc David, doing warm-ups and cool-downs between sets can help keep muscle soreness to a minimum."
"text": "During Your Workout. There are a few things you can do during your workout to help prevent muscle injury and soreness. According to personal trainer and writer for Iron Magazine, Marc David, doing warm-ups and cool-downs between sets can help keep muscle soreness to a minimum."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

},
"id": 363742,
"content": "This is especially important if the soreness is due to a weightlifting routine. For this time period, do not exert more than around 50% of the level of effort (weight, distance and speed) that caused the muscle groups to be sore."
"text": "This is especially important if the soreness is due to a weightlifting routine. For this time period, do not exert more than around 50% of the level of effort (weight, distance and speed) that caused the muscle groups to be sore."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>docs General docs changes Team:Docs Meta label for docs team v8.15.2 v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants