← Browse

World's Fair 2024

[Full Workshop] How to add secure code interpreting in your AI app: Vasek Mlejnsky

Overview

This workshop demonstrates how to integrate secure code interpretation capabilities into AI applications, similar to Anthropic's AI Artifacts feature. The process involves building a system that allows an AI model, specifically Claude's Sonnet, to generate and execute Python code within a secure sandbox environment. The workshop guides participants through setting up the necessary tools, defining code execution logic, and displaying the results, including visualizations, directly within the application's user interface.

Who should watch

Key takeaways

Notable quotes

*The code interpreter isn't running on your machine, it's using a tool called e2b.*
*The sandbox is a general Ubuntu machine made with security in mind for running AI-generated code.*
*We are really optimizing on how most likely will AI generated python code or code will look like and the answer is it's going to be python code and it's going to be like a Jupiter server Jupiter notebook code.*

Watch on YouTube →

Unofficial community note. Prefer the recording for nuance.