Getting the transcript
Reading the captions from YouTube. A video nobody has opened here before takes 10 to 30 seconds; this page fills in on its own.
Getting the transcript
Reading the captions from YouTube. A video nobody has opened here before takes 10 to 30 seconds; this page fills in on its own.
![[한영자막] Jev로 더 빠르고 스마트한 에이전트 하네스를 구축하는 방법입니다: video thumbnail](https://i.ytimg.com/vi/BJeHhsMVc8A/maxresdefault.jpg)
Tech Bridge · @TechBridge-KR
Words
1,552
Runtime
9:14
Speaking pace
168wpm
Reading time
6min
168 words per minute, between the 160 25th percentile and the 181 median of 349 measured videos. That distribution comes from the 349-video hook study.
Opening (first 30 seconds)
Hey folks, my name is Sydney. I'm the product manager for the open source team at LangChain, and today I'm super excited to share with you how you can build a harness with Jev, this new model that just came out from Type Safe AI. So, before we dive into what Jev is, why it's so exciting, I want to do a quick recap of kind of the core agent loop that we're all used to. So, a request comes in, we send that
84 words, the words spoken in the first 30 seconds at 168 words per minute.
Free, no signup. See how the first 30 seconds hold attention, with rewrites.
Sentence shape
| Measure | This transcript |
|---|---|
| Sentences | 96 |
| Average words per sentence | 16.2 |
| Longest sentence | 59 words |
| Questions asked | 10 |
| Sentences containing a number | 8 |
Most used terms
Filler phrases
19 in total: actually 6 · kind of 5 · like 4 · right? 1 · sort of 1 · uh 1 · you know 1.
A literal whole-word count of the same phrase list the Prepublish browser extension uses, so a phrase inside another word is not counted and a phrase used in its ordinary sense still is. It is a count and not a judgement.
What this transcript is
Every word below is the caption track YouTube publishes for this video, pulled from the video itself and reproduced unchanged. It is not Prepublish's writing, not a summary, and not a re-transcription: it is the video's own published captions. English captions, generated automatically by YouTube, in the video’s original language. Source: the video on YouTube. A channel that would rather this page did not exist can ask for its removal through the contact page, and it is removed.
No Script X-ray for this video: YouTube shows a Most replayed graph only once a video has enough views.
Hey folks, my name is Sydney. I'm the product manager for the open source team at LangChain, and today I'm super excited to share with you how you can build a harness with Jev, this new model that just came out from Type Safe AI. So, before we dive into what Jev is, why it's so exciting, I want to do a quick recap of kind of the core agent loop that we're all used to. So, a request comes in, we send that to an LLM, and it's able to take action by using tools.
So, it will call a tool, get some results back, process those, and then it can continue in this tool calling loop, or it can decide that it's done with a given task and return a result. This loop is super powerful, but LLMs are a little bit unpredictable, right? They get text in and then produce text out. And so, when LLMs first came out, we decided that we needed ways to impose a little bit more structure on them so that they could work well in code-driven applications that inherently depend on structured types, not just raw text.
So, enter tool calling and structured outputs. Again, tool calling, a model can send a structured request, in this case a get order request with a given ID, and then the tool returns a result with structured data. The other primitive we added, again, is structured outputs. The idea here is that you can bind an output type to your model, and so it produces a final result that adheres to a given JSON schema rather than just raw text.
And so, these two primitives made it a lot easier to take advantage of this really powerful loop in code-based applications. Okay. So, now to the exciting piece. What is Jev? There's so much buzz right now on Twitter about this new model. Why is everyone talking about it? So, Jev is what we call a system one model from this new startup that just emerged called Type Safe AI. So, according to their docs, system one models are for of AI models built to make fast, structured decisions that software can use directly.
A system one model evaluates a state and questions and returns typed answers and probabilities. You can see an example of state and questions and then typed answers here on the slide. The interesting thing here is that Jev actually doesn't take text in and then generate text out like the traditional LLMs that we're used to. Part of the reason why Jev is so popular right now is it can be 20 to 200 times faster and 40 to 400 times cheaper on classification style tasks compared to LLMs.
So Jev is not a drop-in substitute for an LLM, but it can do specialized tasks that we currently ask LLMs to do much faster and much cheaper. In case you're curious where this system one phrase is coming from, it actually comes from psychologist Daniel Kahneman's book Thinking Fast and Slow. And in this book, he described two ways that minds think. Fast and cheap system one intuition versus slow and expensive system two reasoning.
And so TypeSafe borrowed this sentiment for its new model called Jev, calling it a system one model that's fast and cheap returning almost instant type decisions instead of generating text, which is in deliberate contrast to standard LLMs which behave more like system two, slower and pricier, but adhering to more of this step-by-step reasoning over open-ended problems. All right, I'm going to show a quick demo here on how an LLM answers a question versus how Jev answers.
So the question is, is there PII in this text? And so an LLM produces this text result and then also structured output. Takes about 5 seconds. Jev almost immediately chance that there's PII is 98%. And so you can see kind of from this demo for simple classification-style tasks, Jev is super useful. And there are a lot of classification or kind of decision-style tasks that we currently ask agents to do with LLMs that could be more optimal in terms of speed and cost.
All right, so let's talk a little bit more about the types of questions that Jev can help answer. There's three types of questions and we'll look at them through the lens of this example. So, the state says, "Hi, I've been trying to connect my Stripe account for 3 days and it keeps failing. I'm losing sales. Please help ASAP." So, question type one is a choice, multiple choice, pick one option. So, for example, which team should handle this?
The score shows 0.84 for billing with a confidence of 0.596. The second question type is a score. So, somewhere on a scale, you know, how frustrated the customer appears from calm to frustrated to very angry. And the score here is 1.035. So, customer seems frustrated but not very angry. And then the third question type is a dual. So, this is a Boolean-type answer, a yes or no. So, the message conveys urgency or time sensitivity returns 0.999.
This is on a scale of 0 to 1, so certainly a high urgency probability for this case. One other thing to note, you can actually send a single state with many questions that Jev answers in parallel. So, Jev is actually very efficient with many questions at a time. This is again in contrast to LLMs, which do more sequential reasoning rather than parallel processing. All right, so how can you use Jev in LangChain? We just released a LangChain Type-Safe integration.
So, from LangChain Type-Safe, you can import this Type-Safe classifier. First, you'll need to acquire a API key, and then you can use this classifier to invoke Jev with a state and questions. And then the response has answers to each question that you send it. Let's walk through just a couple of use cases that are super great for Jev. The first is model routing. So, if you have an agent that does both simple and complex work, you probably don't want to use the most powerful model for everything that the agent does.
An example of this that we've been exploring at LangChain recently is that we actually want our internal coding agents to switch between fast and cheap models and more expensive and powerful models depending on the complexity of a given question or coding task. And so, Jev is great for this model routing step. You can assess a given prompt against given criteria to help decide whether or not you should use a fast or more powerful model.
And Jev decides almost instantaneously. Another interesting case is what we call auto mode. So, from LangChain, we already offer this as a pre-built auto mode middleware. And the idea here is that you can ask Jev to analyze whether or not given tool calls are risky, and then you can block those at runtime. Anecdotally, I actually turned off auto mode in my coding agent recently because the classification step of whether a given tool call was risky was too slow for my coding agent to feel productive.
But, it's back on now that Jev can make decisions so quickly. So, uh quick example here is like if a tool call was issued that would delete a database or delete important files, Jev would certainly classify that as risky and then block that tool call. All right, the third interesting case here, maybe the one I'm most excited about, is using Jev as a judge for online evals. So, the idea with this is that you often want some sort of model to help you identify whether or not your agent has done a good job with a given task.
But, when you're running evals at scale, it's not super reasonable to have human oversight over every single trace. But, you often need more than just kind of code style evaluators to decide whether or not your agent is doing a good job. And Jev is really great at this. So, you have your input for a given eval, so the initial question, and then the answer from the agent. And then you also have a rubric that you provide, so grading criteria.
Like, is this answer correct? Does it match the reference? Is it grounded? Was there a cited source? And then Jev can score the given answer along these different rubric criteria. This is kind of an evolution of LLMs as a judge online evals, which are currently certainly very useful, but also very expensive. We just wrote a blog on how to use Jev as a judge, and it has some really interesting results about Jev being, surprise surprise, much cheaper and much faster, but also interestingly much more reliable and consistent across evals than the LLM alternative.
All right. So, I'll leave you with this. It's time to go build something cool with Jev. You can get started with UV pip install LangChain typesafe. You can read our accompanying blog post at the link here. Easily get an API key from typesafe.ai. Tag us at LangChainAI on X. We'd love to see what you're working on. Thanks, folks.
The words are the caption track's own and nothing is reworded or re-transcribed. Paragraph breaks are placed between sentences so the text reads as prose.
Free tools for your own script. No signup, no login.
Paste your draft and see where viewers are likely to drop off, with a rewrite for each weak line.
Paste the first 30 seconds of your own draft for a hook score and rewrites.
Check your draft against YouTube's advertiser-friendly guidelines before you record it.
Read this channel's public videos and transcripts, and download a writing brief for it.