-
-
Notifications
You must be signed in to change notification settings - Fork 19
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 planning mode for AI Assistant #719
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #719 +/- ##
==========================================
- Coverage 55.77% 55.40% -0.38%
==========================================
Files 98 98
Lines 11896 11976 +80
==========================================
Hits 6635 6635
- Misses 5261 5341 +80 ☔ View full report in Codecov by Sentry. |
ahuang11
reviewed
Oct 9, 2024
philippjfr
commented
Oct 16, 2024
philippjfr
commented
Oct 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Up until now the AI
Assistant
was fairly dumb, it simply tried to pick the agent that would actually satisfy the user query and then resolved which "dependencies" would have to be satisfied to give that agent all the context it needed. Apart from potentially requiring a whole number of calls to the LLM to satisfy all the dependencies this had the drawback that it doesn't actually plan the query, so if some intermediate steps are needed it would never perform them. In the new planning mode it takes a different approach, it gives the LLM the chance to break down the user query into a series of steps each of which will be performed by an agent, the assistant makes a plan to solve the task, gives each agent an instruction on what task it should perform and then we validate that the plan it made correctly provides all the context that is needed. If the plan is invalid we ask it to re-solve it, now with the information on where it went wrong.