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

Tool-Memory LTM #1007

Merged
merged 14 commits into from
Aug 10, 2023
Merged

Tool-Memory LTM #1007

merged 14 commits into from
Aug 10, 2023

Conversation

AdityaSharma13064
Copy link
Contributor

@AdityaSharma13064 AdityaSharma13064 commented Aug 8, 2023

Description

<Added LTM in Thinking Tool, now we can get the relevant tool response by performing the similarity search in vector Databases. every time when ever agent picks the thinking tool>

Related Issues

Solution and Design

we are saving the task description given by the assistant reply and last tool response along with the metadata in the vector database. After performing the similarity search on the upserted data in vector form. We will get the expected response.

Test Plan

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • [Tool Memory LTM ] New feature (non-breaking change which adds functionality)
  • [No] Breaking change (fix or feature that would cause existing functionality to change)
  • [13 Files changed ] Docs update

Checklist

  • My pull request is atomic and focuses on a single change.
  • I have read the contributing guide and my code conforms to the guidelines.
  • I have documented my changes clearly and comprehensively.
  • I have added the required tests.

@CLAassistant
Copy link

CLAassistant commented Aug 8, 2023

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Patch coverage: 68.05% and project coverage change: +0.14% 🎉

Comparison is base (40eb8d9) 59.70% compared to head (ca0339b) 59.84%.
Report is 6 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1007      +/-   ##
==========================================
+ Coverage   59.70%   59.84%   +0.14%     
==========================================
  Files         197      198       +1     
  Lines        8735     8868     +133     
  Branches      905      913       +8     
==========================================
+ Hits         5215     5307      +92     
- Misses       3278     3317      +39     
- Partials      242      244       +2     
Files Changed Coverage Δ
superagi/agent/tool_builder.py 55.55% <ø> (ø)
superagi/vector_store/embedding/openai.py 61.11% <14.28%> (-29.80%) ⬇️
superagi/tools/thinking/tools.py 59.45% <25.00%> (-4.18%) ⬇️
superagi/vector_store/vector_factory.py 49.25% <28.57%> (-1.57%) ⬇️
superagi/tools/tool_response_query_manager.py 43.75% <33.33%> (-18.75%) ⬇️
superagi/jobs/agent_executor.py 32.14% <50.00%> (+1.65%) ⬆️
superagi/vector_store/redis.py 74.71% <74.71%> (ø)
superagi/agent/output_handler.py 78.99% <91.66%> (+3.99%) ⬆️
superagi/agent/agent_iteration_step_handler.py 59.05% <100.00%> (ø)
superagi/agent/agent_tool_step_handler.py 76.38% <100.00%> (ø)

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

tools.json Outdated
@@ -1,4 +1,6 @@
{
"tools": {
"DuckDuckGo": "https://github.com/TransformerOptimus/SuperAGI-Tools/tree/main/DuckDuckGo",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert

def escape_symbol(match: re.Match) -> str:
return f"\\{match.group(0)}"

return escaped_chars_re.sub(escape_symbol, value)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add an enter at the eof

@@ -37,8 +37,8 @@ services:
networks:
- super_network
# uncomment to expose redis port to host
# ports:
# - "6379:6379"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment it out

@Fluder-Paradyne Fluder-Paradyne merged commit 5a42280 into TransformerOptimus:dev Aug 10, 2023
4 checks passed
TransformerOptimus pushed a commit that referenced this pull request Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants