-
Notifications
You must be signed in to change notification settings - Fork 145
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 RAGTool #1747
Add RAGTool #1747
Conversation
Signed-off-by: Mingshi Liu <[email protected]>
As we need to merge codes to main branch, let's start adding tests to the PR as well. |
We want to test the RAG tools in the feature branch first, will add tests when merging to main branch. |
ml-algorithms/src/main/java/org/opensearch/ml/engine/tools/RAGTool.java
Outdated
Show resolved
Hide resolved
ml-algorithms/src/main/java/org/opensearch/ml/engine/tools/RAGTool.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Mingshi Liu <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## feature/agent_framework_dev #1747 +/- ##
=================================================================
- Coverage 68.95% 68.25% -0.70%
Complexity 2611 2611
=================================================================
Files 241 242 +1
Lines 12880 13011 +131
Branches 1291 1306 +15
=================================================================
Hits 8881 8881
- Misses 3393 3523 +130
- Partials 606 607 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
tried to reproduce the build failure locally, but it runs successfully.
|
45af778
into
opensearch-project:feature/agent_framework_dev
Description
The RAGTool is added to support agent framework. It's tested to support the current two types of agent: flow and conversational(ReAct) agents.
Here is the sample request to register RAGTools:
expected response:
you can execute agent and ask questions:
expected response:
you can execute agent using the agent_id from above response and ask questions:
expected response:
you can continue the conversation by using the same agent id and pass the memory id from the above response in the parameter:
Issues Resolved
[List any issues this PR will resolve]
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.