"Goal-Oriented AI"
Barrett Burnworth
☝️ What's up?
Exploring Semantic Kernel
After using autonomous agents, BabyAGI, Auto-GPT, it feels like these things currently waste way too many cycles trying to refine its output. Planning/coordination, prompting and chaining is still the most efficient way to get a desired result.
“One more (of many more), I’ve found that providing hand-crafted mini agents as tools works better than simply providing tools in the traditional sense.
As a simple example, every time you search, you want to scrape. So combine them into one chained tool vs each as separate.
This last example takes some load off of the LLM, and handles it with coding logic.
These kind of trade offs can be limiting at times, but also help w cost and speed.
Seems more art than science. Lots of nuance and variables to balance.”
From [@yoheinakajima via Twitter on the questions of “Where are we with autonomous agents? What can they do? Should we use one?”](<blockquote class="twitter-tweet text-xs text-secondary-400" data-dnt="true">Loading Tweet…</blockquote>?s=20)
So, for now, I will take this path for the CWT work. However, connecting all of this together is the next task. Semantic Kernel is Microsoft’s approach to langchain. I like the simplicity that it brings with connecting things up. I like John Maeda, as-well, so that is another reason I am leaning towards it.
According to Maeda, the approach here is “goal-oriented AI.” He described Skills as “the core building blocks in SK” and noted that they can be both simple (“Please summarize this piece of text for me”) or complex (“Please summarize everything I need to know for today and build a plan for how I need to get done what I need to accomplish”).
“Memory increases the capability of a Skill tremendously by allowing you to tie the Skill’s capability to your historical data that can be persisted and accessed at any time,” he said, while Connectors “are customizable resources that enable external data access.” He added that connectors help address one of the primary criticisms of LLMs — that they are pre-trained, and so “essentially frozen in time.” 1
Some resources, links and more Maeda quotes below.
Quotes
“Traditionally, computer science education has been about achieving structured outputs from well-structured syntax,” he replied, “but actually the more flexible mindset of data scientists or even creative artists can be assistive in order to navigate this new world.”
“The software world has been dominated by people who can literally speak machine,” he replied. “So, it’s an interesting turn of events that this new kind of programming is much closer to natural language. If your goal is to produce writing as an output, then there’s certainly room for many language-proficient English teachers to have an impact. That said, to be a productive ‘prompt engineer’ still requires you to have the ability to think like an engineer. There’s a reason why the engineering field emerged as a discipline; it’s always attracted those who love to build machinery. In the future, we can count on prompts that are engineered by developers to have qualities we both need and want — like reliability and efficiency. That won’t change. The difference is that developers will be able to pair up with AIs to create even more reliable and efficient systems than ever before.”
Why the word Kernel in the name?
“It’s a tip of the hat to that all-time enabler of computational productivity, the UNIX kernel,” he replied. “For those of your readers who remember when the UNIX kernel emerged, I think we all were a little confused by commands comprised of two characters ‘ls’, ‘cd’, ‘ps’ etc. But the big ‘a-ha’ was when we piped commands with the ‘|’ symbol and suddenly the light came on. The UNIX kernel’s simplicity as a landmark user experience for developers has been the north star for SK during its evolution. And we definitely don’t feel we have it right yet. That’s why we released it as open source. So that we can learn in the open as a community, and hopefully together build the right user experience for developers who are excited as we are by this new shift from syntax to semantics.” 1
John’s “Kitchen Sink” talk to the Onetug.net group:
-
Skip to minute 4 for a short history of AI to today
-
Skip to min 12 for his overview of Semantic Kernel & the Kitchen Sink Analogy
-
Skip to 23:30 where he gets into coding some examples up.