Skip to content

Semantic Text Embedding in Elasticsearch 9.0 #127977

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

Open
andrelrmarques opened this issue May 9, 2025 · 1 comment
Open

Semantic Text Embedding in Elasticsearch 9.0 #127977

andrelrmarques opened this issue May 9, 2025 · 1 comment
Labels
>bug :Search Relevance/Analysis How text is split into tokens Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch

Comments

@andrelrmarques
Copy link

Elasticsearch Version

9.0.1

Installed Plugins

No response

Java Version

bundled

OS Version

N/A - Hosted Deployment

Problem Description

When creating an index with field type semantic_text, the field is not automatically chunking the text and generating embeddings during document indexing.
This works in 8.17.3.

Steps to Reproduce

On Kibana > Devtools

Create an index, using semantic_text for the field in question:

PUT /my-index2
{
"mappings": {
"properties": {
"text": {
"type": "semantic_text",
"inference_id": ".multilingual-e5-small-elasticsearch"
}
}
}
}

Next, submit a document, like in this example:

POST /my-index2/_doc
{
"text": "This is a long paragraph that we expected to be chunked automatically for embedding..."
}

Then, look at the results:

GET /my-index2/_search
{
"query": {
"match_all": {}
}
}

The field "text" is not chunked. This was tested with .multilingual-e5-small-elasticsearch as well as an Azure OpenAI inference_id. The same steps on a 8.17.3 cluster do create the chunks.

Logs (if relevant)

No response

@andrelrmarques andrelrmarques added >bug needs:triage Requires assignment of a team area label labels May 9, 2025
@PeteGillinElastic PeteGillinElastic added :Search Relevance/Analysis How text is split into tokens and removed needs:triage Requires assignment of a team area label labels May 13, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label May 13, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search Relevance/Analysis How text is split into tokens Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch
Projects
None yet
Development

No branches or pull requests

3 participants