by evanmays on 5/16/23, 4:14 PM with 190 comments
by ubj on 5/16/23, 6:43 PM
I wonder where the final balance will end up between the ease and flexibility of everyday language, and the precision / guarantees of a formally specified language.
by simonw on 5/16/23, 5:59 PM
For example, given this code from https://github.com/microsoft/guidance/blob/main/notebooks/ch...
create_plan = guidance('''{{#system~}}
You are a helpful assistant.
{{~/system}}
{{#block hidden=True}}
{{#user~}}
I want to {{goal}}.
{{~! generate potential options ~}}
Can you please generate one option for how to accomplish this?
Please make the option very short, at most one line.
{{~/user}}
{{#assistant~}}
{{gen 'options' n=5 temperature=1.0 max_tokens=500}}
{{~/assistant}}
{{/block}}
{{~! generate pros and cons and select the best option ~}}
{{#block hidden=True}}
{{#user~}}
I want to {{goal}}.
''')
How about something like this instead? create_plan = guidance([
system("You are a helpful assistant."),
hidden([
user("I want to {{goal}}."),
comment("generate potential options"),
user([
"Can you please generate one option for how to accomplish this?",
"Please make the option very short, at most one line."
]),
assistant(gen('options', n=5, temperature=1.0, max_tokens=500)),
]),
comment("generate pros and cons and select the best option"),
hidden(
user("I want to {{goal}}"),
)
])
by ryanklee on 5/16/23, 5:29 PM
Just getting the feeling that LangChain is going to end up being considered a kitchen sink solution full of anti patterns so might as well spend time a little lower level while I see which way the winds end up blowing.
by ntonozzi on 5/16/23, 4:54 PM
by bjackman on 5/16/23, 7:22 PM
It seems like anything that provides access to the fuzzy "intelligence" in these systems while minimizing the cost to predictability and efficiency is really valuable.
I can't quite put it into words but it seems like we are gonna be moving into a more hybrid model for lots of computing tasks in the next 3 years or so and I wonder if this is a huge peek at the kind of paradigms we'll be seeing?
I feel so ignorant in such an exciting way at the moment! That tidbit about the problem solved by "token healing" is fascinating.
*I'm sure this isn't as novel to people in the AI space but I haven't seen anything like it before myself.
by Der_Einzige on 5/16/23, 6:33 PM
Awhile ago, I tried my own hand at constraining the output of LLMs. I'm actively working on this to make it better, especially with the lessons learned from repos like this and from guidance
https://github.com/hellisotherpeople/constrained-text-genera...
by ftxbro on 5/16/23, 5:33 PM
by m3kw9 on 5/16/23, 7:10 PM
by EddieEngineers on 5/16/23, 7:59 PM
https://github.com/microsoft/guidance/network/dependents
They don't even appear to be using Guidance anywhere anyway
https://github.com/IFIF3526/aws-memo-server/blob/master/requ...
by indus on 5/16/23, 6:58 PM
Basically instructing the templating engine (a very crude regex) to replace session variables, database lookups to the merge fields:
Hello {{firstname}}!
1996 and 2023 smells alike.
by BeefySwain on 5/16/23, 11:32 PM
by ahnick on 5/16/23, 5:21 PM
by iamflimflam1 on 5/17/23, 6:41 AM
by alexb_ on 5/16/23, 5:34 PM
by sharemywin on 5/16/23, 4:51 PM
by sheepscreek on 5/17/23, 4:01 AM
by m3kw9 on 5/16/23, 7:16 PM
by Spivak on 5/16/23, 7:03 PM
by amkkma on 5/16/23, 7:37 PM
by jhoffbauer on 5/19/23, 9:58 AM
by candiddevmike on 5/16/23, 5:31 PM
by jxy on 5/16/23, 6:26 PM
by imgi456 on 5/17/23, 12:35 AM
by nico on 5/16/23, 6:36 PM
Although on the other hand, that’s what social media and smartphones have already done
Maybe AI already took over, doesn’t seem to be wiping out all of humanity
by wahnfrieden on 5/17/23, 1:11 PM
by rain1 on 5/16/23, 6:36 PM
by obiefernandez on 5/17/23, 6:24 AM
by marcopicentini on 5/16/23, 8:11 PM
by Animats on 5/16/23, 6:45 PM
by wprl on 5/17/23, 11:22 AM