Skip to content

semantic_text limited size parameter #127619

Open
@mrklaney

Description

@mrklaney

Elasticsearch Version

8.18.0

Installed Plugins

No response

Java Version

bundled

OS Version

Linux kubernetes-vm 6.8.0-1027-gcp #29~22.04.1-Ubuntu SMP Sat Mar 22 02:28:23 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Problem Description

The "size" parameter controls the number of documents returned by a _search against a semantic_text field. However the maximum value appears to be capped at 19.
For certain use-cases, like RAG to an LLM, nineteen docs may be rather limiting to send to an LLM for augmentation, most particularly if the documents in the index are short.

Steps to Reproduce

Index documents with a field mapped as semantic_text data type. Search (with "match" or "semantic") that field with size 20 or larger.

Logs (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    :mlMachine learning>bugTeam:MLMeta label for the ML team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions