Einblick's AI Assistant: integrate OpenAI's power in every code cell

Becca Weng - January 31st, 2023

We’re excited to introduce Einblick’s new AI Assistant: an in-line, context-aware wrapper around the OpenAI API–the technology behind ChatGPT. With just a few clicks, you can fix existing code, add comprehensive code comments, and even generate new code based on your own custom prompt.

At Einblick, our canvas-based approach to data science allows you to embrace the functionality of a Python notebook kernel with the expansive UI of a digital canvas. With Einblick, you can focus on higher-level programming and conceptual thinking, not the tedium of syntax, removing duplicates, or filling in missing data. After all, data scientists are expected to code, build models, clean data, understand the business stakeholders and more. With so many different tasks, having everything in one place is essential. No more copy-pasting. No more switching from Google to Stack Overflow to official documentation. Your new assistant brings Python and SQL bug fixes straight into your coding environment.

Let’s go over how Einblick’s AI Assistant empowers you to focus on writing good code, not missing parentheses and commas:

AI Assistant debugs syntactical errors to save you time

Now in every Python and SQL cell in Einblick, your AI Assistant is ready in the bottom right corner. Just click “Fix,” and watch the bugs in your code disappear, so you don’t waste time hunting for the specific part of the error message that tells you you’ve missed a comma or forgotten a closing bracket. It’s like a grammar checker for your code. The AI Assistant finds and fixes syntactical errors, so you don’t have to keep searching for small bugs.

Enhance collaboration with code explanations

We all know it’s best practice to add comments to every section of code and for every function. It’s critical for collaboration, and it even helps you when returning to your work later. Best practice, however, is not always the easiest to implement. With the Explain feature of the AI Assistant, you’ll get a human-readable, formatted code comment right into your Python or SQL cell. Edit as you need, and now your non-technical stakeholders and your future self will get a better sense of what your code is doing.

Generate code straight into a notebook-like environment

Every Python or SQL cell in Einblick comes equipped with your AI Assistant. We worry about authentication and API keys, while you generate code on the fly. Whether you’ve got some working code and want to try a new library, or if you’re starting a project from scratch, our AI Assistant can bring code examples directly to you. Wherever you put your cursor, your assistant will type for you. You engineer the prompt, we read metadata and handle API calls, and the AI Assistant will lend you a hand. If you’re on a roll, just keep writing prompts, and the code will keep generating, one click at a time.

Test out your AI Assistant

  1. Open the embedded canvas and fork it (it's free!).
  2. Try Fix in red to let the AI Assistant debug your code.
  3. Try Explain in yellow to let the AI Assistant write a human-readable code comment.
  4. Try Generate in blue using the following prompt:
    1. Build a regression model using iris from seaborn and statsmodels to predict sepal_length and plot the predictions against the ground truth with a scatterplot.

Catch all of our new feature releases on our changelog.

About

Einblick is an AI-native data science platform that provides data teams with an agile workflow to swiftly explore data, build predictive models, and deploy data apps. Founded in 2020, Einblick was developed based on six years of research at MIT and Brown University. Einblick is funded by Amplify Partners, Flybridge, Samsung Next, Dell Technologies Capital, and Intel Capital. For more information, please visit www.einblick.ai and follow us on LinkedIn and Twitter.