Skip to content

Conversation

daixque
Copy link
Owner

@daixque daixque commented Jul 27, 2025

This pull request introduces a new top_k parameter to the TextExpansionConfig and TextExpansionConfigUpdate classes, enhancing their functionality to support selecting the top K results in text expansion inference. It also includes utility methods and tests to handle this new parameter.

This top K should affect only for non-ELSER models, because expected behavior for chunked ELSER result is unclear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant