-
Notifications
You must be signed in to change notification settings - Fork 29
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
Optimize the default prompt and make prompt customizable for create anomaly detector tool #399
Optimize the default prompt and make prompt customizable for create anomaly detector tool #399
Conversation
Signed-off-by: gaobinlong <[email protected]>
Signed-off-by: gaobinlong <[email protected]>
Signed-off-by: gaobinlong <[email protected]>
Signed-off-by: gaobinlong <[email protected]>
Signed-off-by: gaobinlong <[email protected]>
Signed-off-by: gaobinlong <[email protected]>
Signed-off-by: gaobinlong <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #399 +/- ##
============================================
- Coverage 81.78% 77.65% -4.14%
- Complexity 193 260 +67
============================================
Files 11 15 +4
Lines 961 1383 +422
Branches 137 197 +60
============================================
+ Hits 786 1074 +288
- Misses 121 232 +111
- Partials 54 77 +23
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
The test case |
Signed-off-by: gaobinlong <[email protected]>
…nomaly detector tool (#399) * Optimize the prompt for create anomaly detector tool Signed-off-by: gaobinlong <[email protected]> * Remove whitespace Signed-off-by: gaobinlong <[email protected]> * Make prompt for CreateAnomalyDetectorToll customized Signed-off-by: gaobinlong <[email protected]> * format the code Signed-off-by: gaobinlong <[email protected]> * Fix test failure Signed-off-by: gaobinlong <[email protected]> * fix test failure Signed-off-by: gaobinlong <[email protected]> * Format the code Signed-off-by: gaobinlong <[email protected]> * Add more tests Signed-off-by: gaobinlong <[email protected]> --------- Signed-off-by: gaobinlong <[email protected]> (cherry picked from commit 06a8537) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…nomaly detector tool (#399) (#419) * Optimize the prompt for create anomaly detector tool * Remove whitespace * Make prompt for CreateAnomalyDetectorToll customized * format the code * Fix test failure * fix test failure * Format the code * Add more tests --------- (cherry picked from commit 06a8537) Signed-off-by: gaobinlong <[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>
Description
Optimize the prompt feed to LLM when executing the CreateAnomalyDetectorTool, the change are:
(long, integer, double, float, short etc.)
.you should give at most 3 aggregation fields and corresponding aggregation methods
, and also make the prompt customizable, users can use their customized prompt.
Related Issues
#337
Check List
--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.