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

feat: set verbose to false #131

Merged

Conversation

SuZhou-Joe
Copy link
Member

@SuZhou-Joe SuZhou-Joe commented Feb 5, 2024

Description

opensearch-project/ml-commons#1988
Agent framework used to return memoryId and interactionId only when verbose is set to true. But when we set verbose to true, some useless message will be write into additional_info, which is unnecessary and may cause issue like too many payload was passed when updating a doc.

As now agent framework already merge the code to return both when verbose is false, we need to change the flag in Chatbot.

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test.
  • New functionality has user manual doc 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.

Signed-off-by: SuZhou-Joe <[email protected]>
@wanglam
Copy link
Collaborator

wanglam commented Feb 5, 2024

@SuZhou-Joe Do we still need the memoryId and interactionId? How do we get memoryId and interactionId after set verbose to false?

Copy link

codecov bot commented Feb 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a356031) 95.63% compared to head (43b0a27) 95.63%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #131   +/-   ##
=======================================
  Coverage   95.63%   95.63%           
=======================================
  Files          48       48           
  Lines        1261     1261           
  Branches      312      312           
=======================================
  Hits         1206     1206           
  Misses         53       53           
  Partials        2        2           

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

@SuZhou-Joe
Copy link
Member Author

@wanglam We need the memoryId and interactionId, ml-commons has merged a PR to return memory id and interaction id when verbose is false.

Signed-off-by: SuZhou-Joe <[email protected]>
@SuZhou-Joe SuZhou-Joe merged commit 485138c into opensearch-project:main Feb 5, 2024
10 checks passed
@SuZhou-Joe SuZhou-Joe added the backport 2.x Trigger the backport flow to 2.x label Feb 5, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 5, 2024
* feat: set verbose to false

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update doc

Signed-off-by: SuZhou-Joe <[email protected]>

---------

Signed-off-by: SuZhou-Joe <[email protected]>
(cherry picked from commit 485138c)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
SuZhou-Joe pushed a commit that referenced this pull request Feb 5, 2024
* feat: set verbose to false



* feat: update doc



---------


(cherry picked from commit 485138c)

Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Trigger the backport flow to 2.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants