-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Added SmartGPT workflow (issue #4463) #4816
Conversation
Looks great! |
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.
i think this is probably more of chain than an LLM (in the same way the constitutional AI chain exists
Agreed - will change |
Requires #5030 to be merged. Will re-request review, when it's merged. |
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"hard_question = \"I have a 12 liter jug and a 6 liter jug. I want to measure 6 liters. How do I do it?\"\n", |
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.
Sorry, I didn't get it.
To measure 6 liter you have to fill in the 6 liter jug. That's all.
The answer definitely didn't provide a good answer.
Probably, the question can be like the puzzle for the "Die hard" move:
Given a 5-gallon jug and a 3-gallon jug. Please, fill one with exactly 4 gallons of water.
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.
Hey, I disagree :) This is the example shown in the original SmartGPT video (https://youtu.be/wVzuvf9D9BU?t=384). The point is none of the original ideas work at all (even with GPT4!), only with the SmartGPT workflow do we get a correct answer.
But I agree this is confusing without context. I added more explanation.
Hey @hwchase17 any more comments? |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Nice work! 😃 |
Hi @hinthornw! Also pinging you here, as you're the maintainer for Agents :) Any feedback? |
@UmerHA do you think this could be used for a pandas/xorbits agent? To break down complex questions before answering |
Sure, why not. This is a general approach and should improve any task (at the cost of more token usage). |
Interesting thanks. Must look into using this as an agent with tools! |
apologies for the delay in reviewing, this is very cool! thank you @UmerHA!! |
Added SmartGPT workflow by providing SmartLLM wrapper around LLMs
Edit:
As @hwchase17 suggested, this should be a chain, not an LLM. I have adapted the PR.
It is used like this:
Original text:
Added SmartLLM wrapper around LLMs to allow for SmartGPT workflow (as in https://youtu.be/wVzuvf9D9BU). SmartLLM can be used wherever LLM can be used. E.g:
or
SmartGPT consists of 3 steps:
Fixes #4463
Who can review?
Community members can review the PR once tests pass. Tag maintainers/contributors who might be interested:
Twitter: @UmerHAdil | Discord: RicChilligerDude#7589