What is IDP in Databricks?

Alex the Analyst · Beginner ·📊 Data Analytics & Business Intelligence ·5mo ago

Key Takeaways

The video discusses IDP in Databricks, which uses AI for intelligent document processing to extract data from unstructured documents, and highlights its advantages over traditional methods like OCR and Chat GPT.

Full Transcript

What's going on everybody? Welcome back to another video. Today we're going to be talking about IDP and data [music] bricks. Now, as a data analyst, I spend a lot of my time on data collection. So, that's going to be getting the data into a usable format for other teams. And a lot of the times it's just in a CSV or it's in a database. It's really easy to use, but it isn't always the case. In fact, a lot of the data that I used to work with was in unstructured formats. Specifically, this was in healthcare when we were working directly with hospitals. And so, we would get doctor's notes, we would get clinician notes, we would get claims documents, and that data is not formatted in columns and rows. It's just free text. And I'm old enough to remember we would use OCR to extract all this data and make it usable and put it into columns and rows. That process was very difficult, filled with a ton of rules and things that would break down a lot, but I don't think that's the way that you should be doing it anymore. In fact, I've been using IDP in data bricks and it is amazing. So, let's dive into IDP and see what it is and why it is so useful. The first thing to look at is just what IDP actually is. It stands for intelligent document processing. It just uses AI to extract data and information from your documents. And I'm sure a lot of you guys have actually tried this at some point. You just pop it into Chat GBT. You say, "Hey, tell me what this document says." And it gives you kind of a right answer. I've done that myself. And for the most part, it's okay, but it's not amazing. You can even see here on the lefth hand side, this is a benchmark test for this type of process. This is going to be accuracy versus pricing. And you can see cha JBT way on the right hand side. It's going to be quite expensive for just okay accuracy right around 76 77%. You'll notice though data bricks is in the top left which is kind of exactly where you want to be. You want it to be the most accurate for the lowest price and data bicks does that. Now why does IDP matter at all? And this goes back to the exact thing I was talking about at the very beginning, which is a lot of data is not actually stored in databases and columns and rows. It's just free text. It's unstructured data. There is a ton of really important data in these unstructured data types and just these free text and documents that are sitting out there that people want to be able to use, but they just can't in its current state. Something that makes IDP really useful is that it is taking into context the document that you're processing. So, it isn't fully rules-based, which OCR pretty much was. When I was back on my data collection team, we had a lot of pipelines that had OCR in it. And I would say at least once a week, they would break. They would just break down because the structure changed or something changed in the documents or the document file type changed. It just would happen all the time. This is what makes IDP really powerful because it isn't completely rules-based like OCR was because if anything changed within that document, it just broke. it just immediately stopped working and it was horrible and we had to fix things all the time. But with IDP, it's really flexible to the document that you're actually using. For example, on this right hand side, this is just a PDF document. This is some image that somebody put out there, but it isn't sitting in columns and rows. There's free text on the lefthand side. There's columns and rows on the right hand side. Now, this data might be really useful that you want to extract even the data in the free text on the lefth hand side. With IDP, you'll be able to write pretty simple code to extract the data in the free text. And it's very easy to extract the data on the right hand side. And if things change, maybe they flip sides or more data is added or there's more free text on the lefth hand side, it's still going to be really flexible with that data type. And in future lessons, we are going to deep dive into this. I'm going to actually show you how to extract data just like this. So, let's take a look at the difference between traditional processing and IDP. Now, traditional processing is the one that I kind of grew up with or the one that I've used the most because this is just what we had when we were doing this type of work. This is going to be using OCR, which stands for optical character recognition. This is what I used and basically everybody else used for unstructured data. And you would set custom rules for each document that you were working with. There were so many different tools and templates that you can use, and those were really helpful. But again, things would break fairly easily, and so it was a lot of maintenance to actually keep up with these pipelines. The most frustrating thing about using this was when a customer would not tell you that they're going to be changing a format to a PDF or whatever document they were sending you. They would just change it and you wouldn't find out until like a week later or 2 weeks later when the data just wasn't coming in anymore. Now, it was still worth maintaining. It was still worth using those OCR systems because we would get a lot of really good data out of it, but it wasn't 100% accurate. We had several data quality analysts who would be on our team who would manually check a lot of these things and run tons of queries and tons of code to make sure that the data is really accurate. Traditional processing with OCR is not a bad system. It's just a lot of work. Now with IDP, we're going to be using an AI agent-based system. So when it processes your document, it's going to understand the layout and the context of your document without you having to create the rules for it. One of the best things about this is just that it doesn't break very easily. It's really hard because it's so flexible. it's really hard to actually get it to break. So with traditional OCR, if you change it from a PDF into like a DOCX or just a Word document, it's going to break, right? It's looking for a specific file type. But with IDP, it's just going to really easily, flexibly change from one document type to another. IDP has a ton of built-in functions, and those are what we're going to be looking at in the next several lessons. They have a bunch of built-in functions that do a lot of the heavy lifting for you. You basically just need to point at it. You need to say here's what you should be looking for and it's going to do most of the work for you. So there aren't a ton of custom rules that you need to be creating. Now in just a second we're going to talk about how we actually use IDP in data bricks but this is just a visual for you to see kind of what it looks like for that transformation. It's super simplified but it can take a raw PDF and in that PDF it could be free text, it could be columns and rows. We'll look at both in the next lessons. But you're going to parse out that data. You're going to use the IDP process which we're going to look at in just a sec. and it's going to put it into columns and rows to make that data usable. This is what I would say 95% of people want when they have these PDF documents that they want to use. They want to just have it in columns and rows that they can query off the data and they can actually use the data. And so how do you do that within data bricks? I had mentioned those AI functions and that's what you're going to use. You're going to use it for parsing, extracting and then classifying your data. If you know how to use those functions as well as just some basic SQL or Python because you can use either one, you can use IDP within data bricks to do this entire process. I personally like using SQL. That's what we're going to use in the next several lessons. But it's just as easy to use Python in the notebooks as well. One of my favorite things about using IDP and data bricks and I've used a lot of tools. I've used a lot of processes. One of my favorite things is that it's all in one place. This isn't some complex pipeline that uses six or seven different tools. It's all within data bricks. And so you have your raw data, your raw PDF files sitting in the catalog. And then once you process it, you're going to have your structured data sitting right next to it. And so you have your raw data, you have your code, and you have your structured output all in one place. And so it makes it really easy to actually do quality checks on your data. And if you've ever run quality checks on your data before, which you absolutely should be doing, when it's all spread out, it's all in these different systems, it is very, very tedious. And so actually having it all in one place makes it 10 times easier. Now in the next several lessons we're going to be diving into these functions of parsing, extracting and classifying our data. And then at the very end we'll have an end to end process where you can build out an entire process where you have your raw documents. We're going to process all of them. It could be 50, could be 100 documents. We're going to process it into structured data. I'm going to show you that it's actually quite easy and extremely accurate. I am a huge data collection nerd. This is like something I really enjoy. So, I can't wait to get hands-on, actually start writing out all the code and showing you how this works. We're going to be using the Data Bricks free edition for all this. So, all this is completely free to use. All you have to do is click on the link in the description. Go ahead and create an account and follow along in the next several lessons. I hope this was really helpful. If it was, be sure to like and subscribe, and I will see you in the next video. [music]

Original Description

Try it for Free Here: https://bit.ly/aa-dbxfree IDP in Databricks is used to help speed up the process of transforming unstructured data into structured, usable data. It's not an easy process, but IDP makes it much easier! IDP Documentation: https://www.databricks.com/blog/pdfs-production-announcing-state-art-document-intelligence-databricks ____________________________________________ RESOURCES: 💻Analyst Builder - https://www.analystbuilder.com/ 📖Take my Full MySQL Course Here: https://bit.ly/3tqOipr 📖Take my Full Python Course Here: https://bit.ly/48O581R 📖Practice Technical Interview Questions: https://bit.ly/46pDqqL Coursera Courses: Google Data Analyst Certification: https://coursera.pxf.io/5bBd62 Data Analysis with Python - https://coursera.pxf.io/BXY3Wy IBM Data Analysis Specialization - https://coursera.pxf.io/AoYOdR Tableau Data Visualization - https://coursera.pxf.io/MXYqaN *Please note I may earn a small commission for any purchase through these links - Thanks for supporting the channel!* ____________________________________________ BECOME A MEMBER - Want to support the channel? Consider becoming a member! I do Monthly Livestreams and you get some awesome Emoji's to use in chat and comments! https://www.youtube.com/channel/UC7cs8q-gJRlGwj4A8OmCmXg/join ____________________________________________ Websites: 💻Website: AlexTheAnalyst.com 💾GitHub: https://github.com/AlexTheAnalyst 📱Instagram: @Alex_The_Analyst ____________________________________________ *All opinions or statements in this video are my own and do not reflect the opinion of the company I work for or have ever worked for*
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Alex The Analyst · Alex The Analyst · 0 of 60

← Previous Next →
1 Top 3 Data Analyst Skills in 2020
Top 3 Data Analyst Skills in 2020
Alex The Analyst
2 Truth About Big Companies | Told by a Fortune 500 Data Analyst
Truth About Big Companies | Told by a Fortune 500 Data Analyst
Alex The Analyst
3 Data Analyst Salary | 100k with No Experience
Data Analyst Salary | 100k with No Experience
Alex The Analyst
4 Working at a Big Company Vs Small Company | Told by a Fortune 500 Data Analyst
Working at a Big Company Vs Small Company | Told by a Fortune 500 Data Analyst
Alex The Analyst
5 Data Analyst Resume | Reviewing My Resume! | Fortune 500 Data Analyst
Data Analyst Resume | Reviewing My Resume! | Fortune 500 Data Analyst
Alex The Analyst
6 Data Analyst Resume | Complete Guide To Creating A Data Analyst Resume | Tips + Templates + Examples
Data Analyst Resume | Complete Guide To Creating A Data Analyst Resume | Tips + Templates + Examples
Alex The Analyst
7 Switching Careers to Become a Data Analyst | How I Made the Switch
Switching Careers to Become a Data Analyst | How I Made the Switch
Alex The Analyst
8 Working With a Recruiter to Land Your First Job as a Data Analyst | LinkedIn Recruiters
Working With a Recruiter to Land Your First Job as a Data Analyst | LinkedIn Recruiters
Alex The Analyst
9 Data Analyst Salary in 2020
Data Analyst Salary in 2020
Alex The Analyst
10 Data Analyst Resume | Reviewing YOUR Data Analyst Resumes!
Data Analyst Resume | Reviewing YOUR Data Analyst Resumes!
Alex The Analyst
11 Data Analyst Fact Check |  84k Average Starting Salary?? | The Career Force 2020 Data Analyst Salary
Data Analyst Fact Check | 84k Average Starting Salary?? | The Career Force 2020 Data Analyst Salary
Alex The Analyst
12 SQL Basics Tutorial For Beginners | Installing SQL Server Management Studio and Create Tables | 1/4
SQL Basics Tutorial For Beginners | Installing SQL Server Management Studio and Create Tables | 1/4
Alex The Analyst
13 SQL Basics Tutorial For Beginners | Select + From Statements | 2/4
SQL Basics Tutorial For Beginners | Select + From Statements | 2/4
Alex The Analyst
14 SQL Basics Tutorial For Beginners | Where Statement | 3/4
SQL Basics Tutorial For Beginners | Where Statement | 3/4
Alex The Analyst
15 SQL Basics Tutorial For Beginners | Group By + Order By Statements | 4/4
SQL Basics Tutorial For Beginners | Group By + Order By Statements | 4/4
Alex The Analyst
16 Day in the Life of a Data Analyst | Fortune 500 Edition
Day in the Life of a Data Analyst | Fortune 500 Edition
Alex The Analyst
17 Intermediate SQL Tutorial | Inner/Outer Joins | Use Cases
Intermediate SQL Tutorial | Inner/Outer Joins | Use Cases
Alex The Analyst
18 Intermediate SQL Tutorial | Unions | Union Operator
Intermediate SQL Tutorial | Unions | Union Operator
Alex The Analyst
19 Intermediate SQL Tutorial | Case Statement | Use Cases
Intermediate SQL Tutorial | Case Statement | Use Cases
Alex The Analyst
20 Intermediate SQL Tutorial | Having Clause
Intermediate SQL Tutorial | Having Clause
Alex The Analyst
21 Intermediate SQL Tutorial | Updating/Deleting Data
Intermediate SQL Tutorial | Updating/Deleting Data
Alex The Analyst
22 Day in the Life of a Data Analyst | Fortune 500 Edition (During Quarantine)
Day in the Life of a Data Analyst | Fortune 500 Edition (During Quarantine)
Alex The Analyst
23 Data Analyst Interview Questions | Phone + In-Person Interview Questions
Data Analyst Interview Questions | Phone + In-Person Interview Questions
Alex The Analyst
24 SQL Interview Questions and Answers for Beginners | Data Analyst Interview Questions
SQL Interview Questions and Answers for Beginners | Data Analyst Interview Questions
Alex The Analyst
25 Data Analyst Interview Questions | What To Say vs What NOT To Say
Data Analyst Interview Questions | What To Say vs What NOT To Say
Alex The Analyst
26 Data Analyst Interviews | Salary Negotiation
Data Analyst Interviews | Salary Negotiation
Alex The Analyst
27 Data Analyst Q&A LIVE
Data Analyst Q&A LIVE
Alex The Analyst
28 Intermediate SQL Tutorial | Aliasing
Intermediate SQL Tutorial | Aliasing
Alex The Analyst
29 Data Scientist vs Data Analyst | Which Is Right For You?
Data Scientist vs Data Analyst | Which Is Right For You?
Alex The Analyst
30 Best Online Courses for Data Analysts
Best Online Courses for Data Analysts
Alex The Analyst
31 Best Free Online Courses for Data Analysts
Best Free Online Courses for Data Analysts
Alex The Analyst
32 Data Analyst vs Business Analyst | Which Is Right For You?
Data Analyst vs Business Analyst | Which Is Right For You?
Alex The Analyst
33 Scraping Data Off Twitter Using Python | Twitterscraper + NLP + Data Visualization
Scraping Data Off Twitter Using Python | Twitterscraper + NLP + Data Visualization
Alex The Analyst
34 Data Analyst Question and Answer | Answering Your YouTube Questions
Data Analyst Question and Answer | Answering Your YouTube Questions
Alex The Analyst
35 What Does a Data Analyst Actually Do?
What Does a Data Analyst Actually Do?
Alex The Analyst
36 Data Analyst Bootcamps | Are They Worth It?
Data Analyst Bootcamps | Are They Worth It?
Alex The Analyst
37 Top 5 Reasons Not to Become a Data Analyst
Top 5 Reasons Not to Become a Data Analyst
Alex The Analyst
38 Data Analyst Career Path | How to Become a Data Analyst + What to Do Next
Data Analyst Career Path | How to Become a Data Analyst + What to Do Next
Alex The Analyst
39 Live Data Analyst Q&A #3
Live Data Analyst Q&A #3
Alex The Analyst
40 Top 5 Reasons Not to Lie on Your Resume
Top 5 Reasons Not to Lie on Your Resume
Alex The Analyst
41 The Hiring Process from an Interviewer's Perspective | Alex The Analyst Show | Episode 1
The Hiring Process from an Interviewer's Perspective | Alex The Analyst Show | Episode 1
Alex The Analyst
42 Top 5 Reasons Data Analytics is a Good Career Choice
Top 5 Reasons Data Analytics is a Good Career Choice
Alex The Analyst
43 How I Changed Careers to Become a Data Analyst | Alex The Analyst Show | Episode 2
How I Changed Careers to Become a Data Analyst | Alex The Analyst Show | Episode 2
Alex The Analyst
44 Top 5 Reasons You'll Be a Good Data Analyst
Top 5 Reasons You'll Be a Good Data Analyst
Alex The Analyst
45 Self Taught vs Boot Camp vs Degree | Alex The Analyst Show | Episode 3
Self Taught vs Boot Camp vs Degree | Alex The Analyst Show | Episode 3
Alex The Analyst
46 Covid and the Data Analyst Job Market | Alex The Analyst Show | Episode 4
Covid and the Data Analyst Job Market | Alex The Analyst Show | Episode 4
Alex The Analyst
47 Data Analyst Expectations vs Reality
Data Analyst Expectations vs Reality
Alex The Analyst
48 Imposter Syndrome in Tech | Alex The Analyst Show | Episode 5
Imposter Syndrome in Tech | Alex The Analyst Show | Episode 5
Alex The Analyst
49 Top 10 Coursera Courses for Data Analysts
Top 10 Coursera Courses for Data Analysts
Alex The Analyst
50 Working at a Startup vs Fortune 500 Company | Alex The Analyst Show | Episode 6
Working at a Startup vs Fortune 500 Company | Alex The Analyst Show | Episode 6
Alex The Analyst
51 Data Analyst Certifications | Are They Worth It? | Alex The Analyst Show | Episode 7
Data Analyst Certifications | Are They Worth It? | Alex The Analyst Show | Episode 7
Alex The Analyst
52 Top 10 Udemy Courses for Data Analysts
Top 10 Udemy Courses for Data Analysts
Alex The Analyst
53 Asking My Wife Your Questions About Me | Alex The Analyst Show | Episode 8
Asking My Wife Your Questions About Me | Alex The Analyst Show | Episode 8
Alex The Analyst
54 Data Analyst Q&A LIVE #4
Data Analyst Q&A LIVE #4
Alex The Analyst
55 Data Analyst Skills Path | What Skills You NEED to Know
Data Analyst Skills Path | What Skills You NEED to Know
Alex The Analyst
56 What is Analytics Consulting? With John Ariansen | Alex The Analyst Show | Episode 9
What is Analytics Consulting? With John Ariansen | Alex The Analyst Show | Episode 9
Alex The Analyst
57 Solving LeetCode SQL Interview Questions | Part 1/3
Solving LeetCode SQL Interview Questions | Part 1/3
Alex The Analyst
58 What is No Code Analytics? | Alex The Analyst Show | Episode 10
What is No Code Analytics? | Alex The Analyst Show | Episode 10
Alex The Analyst
59 Top 3 Tips on Using LinkedIn to Land a Job
Top 3 Tips on Using LinkedIn to Land a Job
Alex The Analyst
60 Completely Unrealistic Jobs on LinkedIn | Alex The Analyst Show | Episode 11
Completely Unrealistic Jobs on LinkedIn | Alex The Analyst Show | Episode 11
Alex The Analyst

The video introduces IDP in Databricks as a solution for extracting data from unstructured documents using AI, and demonstrates its advantages and applications in data processing and analysis.

Key Takeaways
  1. Understand the concept of IDP and its application in Databricks
  2. Compare IDP with traditional methods like OCR and Chat GPT
  3. Learn how to use IDP with SQL or Python in Databricks notebooks
  4. Apply IDP for parsing, extracting, and classifying data in Databricks
  5. Perform quality checks on data using IDP
💡 IDP in Databricks provides a one-stop solution for data processing, allowing users to parse, extract, and classify data in a single platform, making quality checks 10 times easier.

Related Reads

Up next
5 Data Analyst Projects Recruiters Actually Want to See
SCALER
Watch →