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

Add warning for LLM to avoid context overflow #3646

Merged
merged 3 commits into from
May 2, 2023

Conversation

Pwuts
Copy link
Member

@Pwuts Pwuts commented May 1, 2023

Background

Large command outputs can currently cause a crash in the subsequent cycle, by overflowing the prompt of update_running_summary. Until we have a robust way to handle large amounts of data, this should at least prevent crashes on such instances.

Changes

  • Added a check to the agent interaction loop that catches command outputs
    • pass a warning to the LLM when this happens

Test Plan

  • Test by pushing the LLM to use get_hyperlinks on a Brittanica page

PR Quality Checklist

  • My pull request is atomic and focuses on a single change.
  • I have thoroughly tested my changes with multiple different prompts.
  • I have considered potential risks and mitigations for my changes.
  • I have documented my changes clearly and comprehensively.
  • I have not snuck in any "extra" small tweaks changes

@vercel
Copy link

vercel bot commented May 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) May 1, 2023 11:12pm

@github-actions github-actions bot added the size/s label May 1, 2023
@github-actions github-actions bot added size/m and removed size/s labels May 1, 2023
@Pwuts Pwuts added this to the v0.3.0 release milestone May 1, 2023
@Pwuts Pwuts added bug Something isn't working AI model limitation Not related to AutoGPT directly. labels May 1, 2023
@codecov
Copy link

codecov bot commented May 1, 2023

Codecov Report

Patch coverage: 60.00% and project coverage change: -0.01 ⚠️

Comparison is base (4767fe6) 60.55% compared to head (5d48437) 60.55%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3646      +/-   ##
==========================================
- Coverage   60.55%   60.55%   -0.01%     
==========================================
  Files          69       69              
  Lines        3184     3189       +5     
  Branches      528      529       +1     
==========================================
+ Hits         1928     1931       +3     
- Misses       1122     1123       +1     
- Partials      134      135       +1     
Impacted Files Coverage Δ
autogpt/agent/agent.py 45.65% <60.00%> (+0.53%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AI model limitation Not related to AutoGPT directly. bug Something isn't working size/m
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants