Skip to content
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

[Search] [Playground] Semantic text support #186268

Merged
merged 10 commits into from
Jun 18, 2024

Conversation

joemcelroy
Copy link
Member

@joemcelroy joemcelroy commented Jun 17, 2024

Summary

This adds semantic_text support to Chat playground.

  • We detect the presence of semantic_text and favour these fields over any other ones.
  • We do a nested query if the field is a semantic_text type, and use the inner_hits to populate the context
  • This was manually tested through the QA scenarios list and I added a couple more scenarios for semantic_text.
  • Added to telemetry key with _SEMANTIC entry

Coverage is still units but this change is pretty well covered. FTRs will follow once we have basic "full chat" flow.

Checklist

Delete any items that are not applicable to this PR.

@joemcelroy joemcelroy added release_note:skip Skip the PR/issue when compiling release notes Team:EnterpriseSearch v8.15.0 labels Jun 17, 2024
@joemcelroy joemcelroy marked this pull request as ready for review June 17, 2024 20:22
@joemcelroy joemcelroy requested a review from a team as a code owner June 17, 2024 20:22
@joemcelroy
Copy link
Member Author

@elasticmachine merge upstream

@joemcelroy joemcelroy enabled auto-merge (squash) June 18, 2024 14:01
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
searchPlayground 166.6KB 167.7KB +1.1KB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@joemcelroy joemcelroy merged commit 8641aee into elastic:main Jun 18, 2024
22 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jun 18, 2024
@joemcelroy joemcelroy deleted the semantic_text_support branch June 18, 2024 17:05
bhapas pushed a commit to bhapas/kibana that referenced this pull request Jun 18, 2024
## Summary

This adds semantic_text support to Chat playground. 

- We detect the presence of semantic_text and favour these fields over
any other ones.
- We do a nested query if the field is a semantic_text type, and use the
inner_hits to populate the context
- This was manually tested through the QA scenarios list and I added a
couple more scenarios for semantic_text.
- Added to telemetry key with `_SEMANTIC` entry

Coverage is still units but this change is pretty well covered. FTRs
will follow once we have basic "full chat" flow.

### Checklist

Delete any items that are not applicable to this PR.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

---------

Co-authored-by: Kibana Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:EnterpriseSearch v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants