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

[Backport 2.x] Add search and singular APIs to conversation memory (#1504) #1720

Merged

Conversation

HenryL27
Copy link
Collaborator

Description

Had to do this manually bc apache http library version is different in main and 2.x, which matters when there are new rest ITs

Issues Resolved

#1718

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…ct#1504)

* add searchConversation

Signed-off-by: HenryL27 <[email protected]>

* add searchinteractions

Signed-off-by: HenryL27 <[email protected]>

* add searchConversationsITTests

Signed-off-by: HenryL27 <[email protected]>

* add searchInteractionsITTests

Signed-off-by: HenryL27 <[email protected]>

* add unit tests for storage-layer search

Signed-off-by: HenryL27 <[email protected]>

* add Search transport actions and tests

Signed-off-by: HenryL27 <[email protected]>

* add rest search actions

Signed-off-by: HenryL27 <[email protected]>

* add search rest actions

Signed-off-by: HenryL27 <[email protected]>

* Add singular get actions at storage layer

Signed-off-by: HenryL27 <[email protected]>

* Add OpenSearhMemoryHandler unit tests for singular get

Signed-off-by: HenryL27 <[email protected]>

* Add singular get transport layer

Signed-off-by: HenryL27 <[email protected]>

* add singular get rest actions

Signed-off-by: HenryL27 <[email protected]>

* fix async return value problem

Signed-off-by: HenryL27 <[email protected]>

* address esay PR comments

Signed-off-by: HenryL27 <[email protected]>

---------

Signed-off-by: HenryL27 <[email protected]>
Signed-off-by: HenryL27 <[email protected]>
Copy link

codecov bot commented Nov 30, 2023

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (f46d258) 80.82% compared to head (7ad18fa) 81.21%.

Files Patch % Lines
...nversation/SearchConversationsTransportAction.java 86.36% 3 Missing ⚠️
...onversation/SearchInteractionsTransportAction.java 86.36% 3 Missing ⚠️
...nsearch/ml/memory/index/ConversationMetaIndex.java 96.47% 0 Missing and 3 partials ⚠️
.../opensearch/ml/memory/index/InteractionsIndex.java 97.36% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x    #1720      +/-   ##
============================================
+ Coverage     80.82%   81.21%   +0.38%     
- Complexity     4220     4344     +124     
============================================
  Files           404      421      +17     
  Lines         16994    17326     +332     
  Branches       1819     1830      +11     
============================================
+ Hits          13736    14071     +335     
+ Misses         2545     2537       -8     
- Partials        713      718       +5     
Flag Coverage Δ
ml-commons 81.21% <97.08%> (+0.38%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@HenryL27 HenryL27 temporarily deployed to ml-commons-cicd-env November 30, 2023 21:23 — with GitHub Actions Inactive
@HenryL27 HenryL27 temporarily deployed to ml-commons-cicd-env November 30, 2023 21:23 — with GitHub Actions Inactive
@HenryL27 HenryL27 temporarily deployed to ml-commons-cicd-env November 30, 2023 21:23 — with GitHub Actions Inactive
@dhrubo-os dhrubo-os merged commit b56cb95 into opensearch-project:2.x Dec 1, 2023
13 of 15 checks passed
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.

3 participants