-
Notifications
You must be signed in to change notification settings - Fork 143
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 Neural sparse tool, do refactor using AbstractRetrievalTool #1686
Add Neural sparse tool, do refactor using AbstractRetrievalTool #1686
Conversation
Signed-off-by: zhichao-aws <[email protected]>
Signed-off-by: zhichao-aws <[email protected]>
…to NeuralSparseTool
Signed-off-by: zhichao-aws <[email protected]>
Signed-off-by: zhichao-aws <[email protected]>
Signed-off-by: zhichao-aws <[email protected]>
Signed-off-by: zhichao-aws <[email protected]>
Signed-off-by: zhichao-aws <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## feature/agent_framework_dev #1686 +/- ##
=================================================================
+ Coverage 66.31% 66.67% +0.36%
- Complexity 2551 2570 +19
=================================================================
Files 239 241 +2
Lines 12731 12781 +50
Branches 1279 1283 +4
=================================================================
+ Hits 8442 8522 +80
+ Misses 3730 3694 -36
- Partials 559 565 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
The failed IT on windows 11 seems already exists https://github.com/opensearch-project/ml-commons/actions/runs/6954022968/job/18920109040. Not introduced by this PR. |
Signed-off-by: zhichao-aws <[email protected]>
Signed-off-by: zhichao-aws <[email protected]>
Signed-off-by: zhichao-aws <[email protected]>
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.
Please create a example agent using Neural sparse tool and attach sample request/response details to PR.
@Log4j2 | ||
@Getter | ||
@Setter | ||
public abstract class AbstractRetrieverTool implements Tool { |
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.
Thanks for doing the refactoring.
ml-algorithms/src/main/java/org/opensearch/ml/engine/tools/AbstractRetrieverTool.java
Outdated
Show resolved
Hide resolved
Signed-off-by: zhichao-aws <[email protected]>
Sure, will post one soon |
Signed-off-by: zhichao-aws <[email protected]>
422f1a8
to
6909355
Compare
demo flow agentregister agent:
execute agent:
demo ReACT agentregister
execute
|
Hi @arjunkumargiri , I've resolved the comments. Please help review again |
@zane-neo @dbwiddis @arjunkumargiri Could you please help merge this PR? I don't have write access to this repo. |
d3f222d
into
opensearch-project:feature/agent_framework_dev
…search-project#1686) * add abstract retriever class Signed-off-by: zhichao-aws <[email protected]> * extends the abstract class, add neural sparse tool Signed-off-by: zhichao-aws <[email protected]> * add register logic Signed-off-by: zhichao-aws <[email protected]> * tidy Signed-off-by: zhichao-aws <[email protected]> * add test class Signed-off-by: zhichao-aws <[email protected]> * add test,spotless Apply Signed-off-by: zhichao-aws <[email protected]> * fix wrong ut name Signed-off-by: zhichao-aws <[email protected]> * add description Signed-off-by: zhichao-aws <[email protected]> * tidy Signed-off-by: zhichao-aws <[email protected]> * add _index and _id to retriever tool result; modify ut Signed-off-by: zhichao-aws <[email protected]> * tidy Signed-off-by: zhichao-aws <[email protected]> * remove set description from tool factory Signed-off-by: zhichao-aws <[email protected]> --------- Signed-off-by: zhichao-aws <[email protected]>
Description
Add NeuralSparseTool implementation. Implement an abstract class AbstractRetrievalTool, making NeuralSparseTool and VectorDBTool extend this class.
Issues Resolved
#1675
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.