Magick is finally in a state where we can build things like BabyAGI within an hour. You can watch the graph executing in real time, watch the thought process as it executes, and understand the flow. This is unbelievably cool.
BabyAGI in Magick. I'll work on a better video soon walking through the graph. But so stoked that Magick is finally in a state where I can do this. And this is only the beginning.
We have been quiet for a while. We have been heads down building something new. We are building an Agent framework, with our Magick IDE fully open sourced at the core of it. We invite you to join in and let us know what would be most useful!
https://t.co/CSUyb2ap9c
We have been excited about this for a long time, and we finally have them back in V2. Sub-spells. Vastly improved and better than ever. In this case, we brought in the amazing design pattern created by @unity with the subgraphs in visual scripting.
We have sub-spells. Nested graphs are coming to Magick.
The next step will be sub-spells as tools. The socket inputs and outputs on the sub-spell are given descriptions, and we can transform them into tool schemas. Then we parse and call the sub-spell, returning the result.
This is going to open up all kinds of possibilities.
We have sub-spells. Nested graphs are coming to Magick.
The next step will be sub-spells as tools. The socket inputs and outputs on the sub-spell are given descriptions, and we can transform them into tool schemas. Then we parse and call the sub-spell, returning the result.
This is going to open up all kinds of possibilities.
New feature incoming. Variable events. Handle side effects and other processes when a variable changes. And until we get custom events in, it does basically the same thing.
We just pushed out a major update to Magick. We integrated @keywordsai as our LLM proxy, providing our users with over a hundred models to use. We have improved stability for large graphs, with UI performance working at well over 300 nodes. We will be announcing more very soon.
OpenAI is expected to demo a real-time voice assistant tomorrow. What does it take to deliver an immersive, or even magical experience?
Almost all voice AI go through 3 stages:
1. Speech recognition or "ASR": audio -> text1, think Whisper;
2. LLM that plans what to say next: text1 -> text2;
3. Speech synthesis or "TTS": text2 -> audio, think ElevenLabs or VALL-E.
Last year, I made the figure below to show how to make Siri/Alexa 10x better. However, naively going through 3 stages results in huge latency. User experience falls off the cliff if we have to wait 5 seconds for *each* reply. It breaks the immersion and feels lifeless even if the synthesized audio itself sounds real.
Natural dialogues fundamentally don't work like this. We humans
> think about what to say next at the same time as we listen & speak;
> inject "yes, hmm, huh" at appropriate moments;
> predict when the other person finishes and immediately take over;
> decide to talk over the other person organically, without being offensive;
> handle interruptions gracefully. Currently, AI assistants either cannot be interrupted (super frustrating) or simply stop when they detect an audio event and lose train of thought;
> engage in group chat. We are so good at multi-agent conversations.
It's not as simple as making each of the 3 neural nets faster, sequentially. Solving real-time dialogue requires us to rethink the whole stack, overlap each component as much as possible, and learn how to make interventions in real time.
Or perhaps even better - just have 1 NN mapping audio to audio. End-to-end always wins.
I'll sketch out how to design such a model and its training pipeline. Meanwhile, let's wait and see how far OpenAI pushes it!
Check out our brand-new course on Building Agentic RAG with LlamaIndex with @DeepLearningAI + @AndrewYNg 🔥
Learn how to build an autonomous research assistant that can answer complex questions over multiple documents - handle a much broader range of inputs than a standard RAG pipeline! 📖🕵️
The course helps you learn how to build an agent ingredient by ingredient from a standard RAG pipeline. Once you're done with the course check out the following @llama_index resources to take your agents to the next level 👇
Building a custom agent: https://t.co/V0UlrDM8vb
Multi-document agents (diagram by @clusteredbytes): https://t.co/DMnQteIHYs
Course: https://t.co/qm4YSKMNaB
Another small UX improvement. Hiding unused sockets. It isn't a full node collapse, which I want to do next, but that will have to wait. In demo crunch time.
I love adding these little UX improvements that make my experience building way better. Renaming a nodes title goes a long way to legibility. Even more so possibly than comments.
I have just decided that I love multi-gates. I find this incredibly satisfying. Using this in the demo I am working on, and will have to document this.
Another dev log since it has been a while. I did some work under the hood on the runtime engine underneath Magick. These changes have allowed me to run a dedicated engine instance per spell and finally implement the "on tick" event. The Magick Engine runs similarly to a game engine at 30FPS. You can tie into this runtime using the on-tick event which is called once per frame.
This lets us do some pretty wild stuff. This first test was simply seeing if I could shuttle a message from the onMessage event over to the core loop using a basic string variable. However, we could likely use an array variable for this and create a simple queue system.
Under the hood, these changes to the engine essentially mean that different event channels can have dedicated engines running on them continuously. I previously underestimated the power and performance of a single engine as an even processor and so missed out on these possibilities.
Now that the functionality is there, I will be starting to implement more complex systems with an ongoing cognitive loop designed to process and think.
I have some ideas next to experiment with as well to make some improvements to my original BabyAGI implementation in Magick to create different looping processors for tasks and queues.