Hacking our option to higher group conferences


Summarization header image

Since this weblog was initially printed, I’ve additionally launched the Distill CLI. You possibly can learn the observe up weblog put up or tinker with the code on GitHub.


As somebody who takes loads of notes, I’m at all times looking out for instruments and techniques that may assist me to refine my very own note-taking course of (such because the Cornell Technique). And whereas I typically want pen and paper (as a result of it’s proven to assist with retention and synthesis), there’s no denying that expertise might help to reinforce our built-up talents. That is very true in conditions corresponding to conferences, the place actively collaborating and taking notes on the identical time will be in battle with each other. The distraction of trying right down to jot down notes or tapping away on the keyboard could make it arduous to remain engaged within the dialog, because it forces us to make fast selections about what particulars are necessary, and there’s at all times the chance of lacking necessary particulars whereas attempting to seize earlier ones. To not point out, when confronted with back-to-back-to-back conferences, the problem of summarizing and extracting necessary particulars from pages of notes is compounding – and when thought-about at a gaggle degree, there’s important particular person and group time waste in fashionable enterprise with a majority of these administrative overhead.

Confronted with these issues each day, my group – a small tiger group I wish to name OCTO (Workplace of the CTO) – noticed a chance to make use of AI to enhance our group conferences. They’ve developed a easy, and simple proof of idea for ourselves, that makes use of AWS providers like Lambda, Transcribe, and Bedrock to transcribe and summarize our digital group conferences. It permits us to assemble notes from our conferences, however keep centered on the dialog itself, because the granular particulars of the dialogue are robotically captured (it even creates a listing of to-dos). And as we speak, we’re open sourcing the software, which our group calls “Distill”, within the hopes that others would possibly discover this handy as effectively: https://github.com/aws-samples/amazon-bedrock-audio-summarizer.

On this put up, I’ll stroll you thru the high-level structure of our challenge, the way it works, and provide you with a preview of how I’ve been working alongside Amazon Q Developer to show Distill right into a Rust CLI.

The anatomy of a easy audio summarization app

The app itself is easy — and that is intentional. I subscribe to the concept methods needs to be made so simple as doable, however no easier. First, we add an audio file of our assembly to an S3 bucket. Then an S3 set off notifies a Lambda operate, which initiates the transcription course of. An Occasion Bridge rule is used to robotically invoke a second Lambda operate when any Transcribe job starting with summarizer- has a newly up to date standing of COMPLETED. As soon as the transcription is full, this Lambda operate takes the transcript and sends it with an instruction immediate to Bedrock to create a abstract. In our case, we’re utilizing Claude 3 Sonnet for inference, however you possibly can adapt the code to make use of any mannequin out there to you in Bedrock. When inference is full, the abstract of our assembly — together with high-level takeaways and any to-dos — is saved again in our S3 bucket.

Distill architecture diagram

I’ve spoken many occasions in regards to the significance of treating infrastructure as code, and as such, we’ve used the AWS CDK to handle this challenge’s infrastructure. The CDK provides us a dependable, constant option to deploy assets, and be certain that infrastructure is sharable to anybody. Past that, it additionally gave us a great way to quickly iterate on our concepts.

Utilizing Distill

In case you do that (and I hope that you’ll), the setup is fast. Clone the repo, and observe the steps within the README to deploy the app infrastructure to your account utilizing the CDK. After that, there are two methods to make use of the software:

  1. Drop an audio file straight into the supply folder of the S3 bucket created for you, wait a couple of minutes, then view the ends in the processed folder.
  2. Use the Jupyter pocket book we put collectively to step by means of the method of importing audio, monitoring the transcription, and retrieving the audio abstract.

Right here’s an instance output (minimally sanitized) from a latest OCTO group assembly that solely a part of the group was in a position to attend:

Here’s a abstract of the dialog in readable paragraphs:

The group mentioned potential content material concepts and approaches for upcoming occasions like VivaTech, and re:Invent. There have been strategies round keynotes versus having fireplace chats or panel discussions. The significance of crafting thought-provoking upcoming occasions was emphasised.

Recapping Werner’s latest Asia tour, the group mirrored on the highlights like partaking with native college college students, builders, startups, and underserved communities. Indonesia’s initiatives round incapacity inclusion have been praised. Helpful suggestions was shared on logistics, balancing work with downtime, and optimum occasion codecs for Werner. The group plans to analyze turning these learnings into an inner publication.

Different matters lined included upcoming advisory conferences, which Jeff could attend nearly, and the evolving position of the fashionable CTO with elevated deal with social affect and world views.

Key motion objects:

  • Reschedule group assembly to subsequent week
  • Lisa to flow into upcoming advisory assembly agenda when out there
  • Roger to draft potential panel questions for VivaTech
  • Discover recording/streaming choices for VivaTech panel
  • Decide content material possession between groups for summarizing Asia tour highlights

What’s extra, the group has created a Slack webhook that robotically posts these summaries to a group channel, in order that those that couldn’t attend can make amends for what was mentioned and rapidly assessment motion objects.

Bear in mind, AI will not be good. A number of the summaries we get again, the above included, have errors that want handbook adjustment. However that’s okay, as a result of it nonetheless hastens our processes. It’s merely a reminder that we should nonetheless be discerning and concerned within the course of. Vital pondering is as necessary now because it has ever been.

There’s worth in chipping away at on a regular basis issues

This is only one instance of a easy app that may be constructed rapidly, deployed within the cloud, and result in organizational efficiencies. Relying on which research you have a look at, round 30% of company staff say that they don’t full their motion objects as a result of they will’t bear in mind key info from conferences. We are able to begin to chip away at stats like that by having tailor-made notes delivered to you instantly after a gathering, or an assistant that robotically creates work objects from a gathering and assigns them to the suitable particular person. It’s not at all times about fixing the “large” downside in a single swoop with expertise. Generally it’s about chipping away at on a regular basis issues. Discovering easy options that turn out to be the muse for incremental and significant innovation.

I’m notably considering the place this goes subsequent. We now stay in a world the place an AI powered bot can sit in your calls and may act in actual time. Taking notes, answering questions, monitoring duties, eradicating PII, even trying issues up that will have in any other case been distracting and slowing down the decision whereas one particular person tried to seek out the information. By sharing our easy app, the intention isn’t to point out off “one thing shiny and new”, it’s to point out you that if we are able to construct it, so are you able to. And I’m curious to see how the open-source group will use it. How they’ll lengthen it. What they’ll create on high of it. And that is what I discover actually thrilling — the potential for easy AI-based instruments to assist us in increasingly more methods. Not as replacements for human ingenuity, however aides that make us higher.

To that finish, engaged on this challenge with my group has impressed me to take alone pet challenge: turning this software right into a Rust CLI.

Constructing a Rust CLI from scratch

I blame Marc Brooker and Colm MacCárthaigh for turning me right into a Rust fanatic. I’m a methods programmer at coronary heart, and that coronary heart began to beat lots quicker the extra acquainted I bought with the language. And it turned much more necessary to me after coming throughout Rui Pereira’s fantastic analysis on the vitality, time, and reminiscence consumption of various programming languages, once I realized it’s great potential to assist us construct extra sustainably within the cloud.

Throughout our experiments with Distill, we needed to see what impact transferring a operate from Python to Rust would appear like. With the CDK, it was straightforward to make a fast change to our stack that permit us transfer a Lambda operate to the AL2023 runtime, then deploy a Rust-based model of the code. In case you’re curious, the operate averaged chilly begins that have been 12x quicker (34ms vs 410ms) and used 73% much less reminiscence (21MB vs 79MB) than its Python variant. Impressed, I made a decision to actually get my fingers soiled. I used to be going to show this challenge right into a command line utility, and put a few of what I’ve realized in Ken Youens-Clark’s “Command Line Rust” into observe.

I’ve at all times liked working from the command line. Each grep, cat, and curl into that little black field jogs my memory loads of driving an outdated automotive. It could be just a little bit tougher to show, it would make some noises and complain, however you are feeling a connection to the machine. And being energetic with the code, very similar to taking notes, helps issues stick.

Not being a Rust guru, I made a decision to place Q to the check. I nonetheless have loads of questions in regards to the language, idioms, the possession mannequin, and customary libraries I’d seen in pattern code, like Tokio. If I’m being trustworthy, studying the right way to interpret what the compiler is objecting to might be the toughest half for me of programming in Rust. With Q open in my IDE, it was straightforward to fireside off “silly” questions with out stigma, and utilizing the references it offered meant that I didn’t need to dig by means of troves of documentation.

Summary of Tokio

Because the CLI began to take form, Q performed a extra important position, offering deeper insights that knowledgeable coding and design selections. As an example, I used to be curious whether or not utilizing slice references would introduce inefficiencies with massive lists of things. Q promptly defined that whereas slices of arrays could possibly be extra environment friendly than creating new arrays, there’s a risk of efficiency impacts at scale. It felt like a dialog – I may bounce concepts off of Q, freely ask observe up questions, and obtain instant, non-judgmental responses.

Advice from Q on slices in Rust

The very last thing I’ll point out is the function to ship code on to Q. I’ve been experimenting with code refactoring and optimization, and it has helped me construct a greater understanding of Rust, and pushed me to assume extra critically in regards to the code I’ve written. It goes to point out simply how necessary it’s to create instruments that meet builders the place they’re already comfy — in my case, the IDE.

Send code to Q

Coming quickly…

Within the subsequent few weeks, the plan is to share my code for my Rust CLI. I want a little bit of time to shine this off, and have people with a bit extra expertise assessment it, however right here’s a sneak peek:

Sneak peak of the Rust CLI

As at all times, now go construct! And get your fingers soiled whereas doing it.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles