-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add IT for VectorDBTool and NeuralSparseTool #177
Conversation
IT test failed due to the new merged PR in mlcommon opensearch-project/ml-commons#1949
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing integ test with enable_content_generation
enabled
src/test/resources/org/opensearch/agent/tools/register_text_embedding_model_request_body.json
Outdated
Show resolved
Hide resolved
...ensearch/agent/tools/register_flow_agent_of_ragtool_with_neural_query_type_request_body.json
Outdated
Show resolved
Hide resolved
...ensearch/agent/tools/register_flow_agent_of_ragtool_with_neural_query_type_request_body.json
Outdated
Show resolved
Hide resolved
685e135
to
982dce8
Compare
added tests for with |
PromptHandler RAGToolHandler = new PromptHandler() { | ||
@Override | ||
String response(String prompt) { | ||
if (prompt.contains("RAGTool")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add some lines to verify the full prompt after concatenation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added in add match full prompt
not able to reproduce the build failure locally
wondering why the integ test running on git CI is having one less digit in the scores.
|
Signed-off-by: Mingshi Liu <[email protected]>
Signed-off-by: Mingshi Liu <[email protected]>
Signed-off-by: Mingshi Liu <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #177 +/- ##
=========================================
Coverage 81.57% 81.57%
Complexity 211 211
=========================================
Files 13 13
Lines 1069 1069
Branches 146 146
=========================================
Hits 872 872
Misses 140 140
Partials 57 57 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Mingshi Liu <[email protected]>
How about using regex to match the first valid digits and add comments here |
I already used string.contains to match the scores prefix the avoid the digits rounding issues. Can you please help rerun that Mac CI? That one is failing because model is not ready yet. Rerunning should fix it m. Thanks! |
* Add IT for VectorDBTool and NeuralSparseTool Signed-off-by: Mingshi Liu <[email protected]> * changed to smaller models and refine IT tests Signed-off-by: Mingshi Liu <[email protected]> * add match full prompt Signed-off-by: Mingshi Liu <[email protected]> * fix digits rounding differences in CI Signed-off-by: Mingshi Liu <[email protected]> --------- Signed-off-by: Mingshi Liu <[email protected]> (cherry picked from commit cbe5fa2) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Add IT for VectorDBTool and NeuralSparseTool * changed to smaller models and refine IT tests * add match full prompt * fix digits rounding differences in CI --------- (cherry picked from commit cbe5fa2) Signed-off-by: Mingshi Liu <[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>
…opensearch-project#255) * Add IT for VectorDBTool and NeuralSparseTool * changed to smaller models and refine IT tests * add match full prompt * fix digits rounding differences in CI --------- (cherry picked from commit cbe5fa2) Signed-off-by: Mingshi Liu <[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> Signed-off-by: yuye-aws <[email protected]>
Description
Add IT for VectorDBTool and NeuralSparseTool
Check List
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.