[00:00:00]
Thank you for joining today’s webinar, Turning Charts and Infographics Infrastructure JSON. I’m Mahashree, Product Marketing Specialist at Unstract, and I’ll be your host for today. So why charts and infographics? Over our past few webinars, we’ve spent a lot of time on text extraction and how to get that right.
But a growing share of data in today’s documents isn’t just text. It sits in charts and diagrams, flow charts or infographics. So these visuals carry a
[00:00:30]
lot, uh, carry a lot of data that, and sometimes even more than numbers or text. So colors tell you which series what is in. It gives you an indication of the status of a certain value.
Shapes and positions show you how things relate, whether it’s the steps in a flow chart or, or parts of a diagram. So this, uh, the meaning basically from these visuals comes from their structure and their arrangement, and not just the values that they carry. And that’s exactly why text-only
[00:01:00]
extraction misses it.
It picks up the labels, but the values and the relationships between them get lost with text-only extraction. And that’s often where the key insights are in visual data. So if that data never reaches your downstream systems, you’re making decisions with only part of the context, and that’s exactly what we’ll be looking at today, how to extract data and turn it visual data and turn it into structured JSON for, uh, your businesses.
So the engine that makes this possible
[00:01:30]
is a VLM or a Vision Language Model. So let’s start from there.
Now before that, here are some quick, uh, session essentials or housekeeping items I’d like to run over. So firstly, this is a listen-only webinar, and all attendees will be on mute. And in case you have any questions, do drop them in the Q&A at any time during the session. Our team is working in the back end, and we’ll be able to get back to you with the answers via
[00:02:00]
text.
Now, you can also interact with our team using the chat tab. You can let us know where you’re joining from, and this is also where you’d let us know in case you run into any technical glitches during the session. Now, as a final point, when you exit this webinar, you’ll be redirected to a feedback form where I request you leave a review.
So now that we’ve covered the housekeeping items, let’s get back to where we left off, VLMs or vision language models. So most of the leading models today, like Gemini, Claude or ChatGPT, and all
[00:02:30]
the models you have over there are multimodal, which means they can work with images and text. So if you have a necessity to extract data from a chart or a diagram, you can simply upload it to the model, tell the model what you want extracted, and you can get the data back.
So it’s literally as simple as that. So d- does this VLM alone solve the extraction problem that we are facing with charts and diagrams? Now, that is where context comes into the picture, because your use case really matters.
[00:03:00]
Now, if your need is simple, like answering a quick question about a particular document, this works perfectly well.
And if the model also gets something wrong, you’re likely to notice it because you have the document in your hand to check the answer against it. But now picture a different scenario. Let’s say you’re receiving large volumes of these documents on a regular basis. You’ll likely need to schedule the extraction, so, so that these documents are processed in batches again and again.
And not only that,
[00:03:30]
you might also need to enrich the extracted data with your internal records. So what I’m talking about is, first of all, you get, you know, documents in batches. You’re getting a larger load, so you have to deal with that. And once you get those documents and you send it to a VLM, the VLM gives you a JSON output.
Now, is this output always ready to use in your downstream operations? So if you’re an enterprise or a business, you might be, uh, most probably facing this issue. So, uh, for us to, like, understand this better, let’s take the
[00:04:00]
example of maybe customer support tickets that come in as documents. So you might want to map each ticket to the agent that is handling the ticket, and that information could sit in a different system and not in the document.
So you could have the ticket details in the document, but the agent details could be in a database or a separate file. So to do that, the environment where your extraction runs has to connect with the source where your agent data sits. So this is basically where data enrichment comes into the picture, because
[00:04:30]
with this stage, you should be able to connect your, uh, document extraction workflow with your external systems and, uh, make the enrichment possible.
So in this case, we are comparing two data sets. You could also run calculations based on the external data that you have, or you could, uh, validate it based on the external data that you have. So there are many ways to enrich the extracted data, and, uh, that is a key step that your VLM alone cannot guarantee you
[00:05:00]
Next.
So for you to pull in the documents and send it to a downstream system, your document extraction, uh, system or workflow needs to connect with different systems that might already be running, running in your business. So you need to plug into the source where your documents exist. This could be, uh, local storage, it could be email or a different application.
And once you get the extracted data and you perform the enrichment, you need to be able to push it down to a data warehouse or a database or even a different app
[00:05:30]
from where you can, you know, uh, access it for downstream operations. So business connectivity is, again, a major component of document workflows, uh, when you want to run this on a larger scale And finally, models aren’t foolproof.
So with one document, you are likely, uh, you know, you don’t always get the wrong answer. But when you’re processing thousands of document, how do you find if at all any document has, you know, uh, I mean, for any document you’ve gotten a wrong answer that is extracted? So
[00:06:00]
how do you track it? Uh, what are the conditions that you apply to, you know, uh, check your data?
So all of this is where we require a human in the loop because even though you automate the process at large, it is important to have a human, uh, review layer so that you are able to catch these edge cases, and you’re able to check this, um, you know, manually before, uh, you push it down to downstream operations.
And not only is this required for accuracy, it’s also a compliance requirement in many industries
[00:06:30]
that process sensitive data, uh, where you should be able to access some of this data and see if the overall, uh, workflow is being, uh, y- processed in the, uh… if the overall workflow is giving you the accurate data.
So these are all the various other components that you actually require over and above just getting extracted data from your visual, um, uh, diagrams or infographics from a VLM. And this is what Unstract enables you to
[00:07:00]
So what I wanted to say was, your VLM, i-t as powerful as it is, it can act only as the engine for, uh, large scale document extraction. So you’re giving it an image, and it extracts the output for you. But you also need various other components for you to actually get it moving. So that is what– that is where your, um, business connectivity comes into the picture, scheduling,
[00:07:30]
uh, large volumes of documents or data enrichment as well as human review.
And these are all the external parts that Unstract provides you with and, uh, which actually gets you going when you’re processing images or documents at scale. And this is exactly what we’ll be covering in our webinar today. So, uh, for those of you that are completely new, let me quickly introduce Unstract to you.
So Unstract is an agentic AI document processing and extraction platform. And, uh,
[00:08:00]
if I had to bucket the capabilities, I can put it under three major buckets. Uh, so the platform, uh, works– I mean, it has various capabilities. So firstly, once you upload your document into Unstract, it goes into the, uh, Unstract’s documents st- uh, Document Studio, where the first phase is text extraction.
So, uh, you will have documents in various forms. It could be scanned, you could have handwritten text in your documents, you could have smudges in these scans or, uh, certain documents that are just
[00:08:30]
difficult to read. And even the most advanced models can sometimes struggle with documents that come with these challenges.
So that is exactly what the first layer is built to handle. This is a pre-processing layer where it basically deploys a text extractor tool of your choice. You can look at the various tools that we natively integrate with, and it extracts the raw text or prepares your document in a format that is best for the LLM to consume.
So, um, one of the… I mean, we connect with multiple text extractors, but
[00:09:00]
a common or a more popular choice we see our users go for is LLMWhisperer, which is also Unstract’s, uh, very own in-house text extractor tool. It’s extremely compatible with the, uh, platform, and is a powerful engine when it comes to extracting and preparing your text or your documents in a format that the LLMs can actually work on.
So it has two major modes in it. LLMWhisperer comes in the text mode for text-heavy pages and image mode for pages that contain a lot of charts, diagrams, and infographics. And actually,
[00:09:30]
we are going to be focusing on the image mode in this session today. So the text mode basically, uh, works by extracting the raw text from your documents while preserving its original layout.
So it ignores the smudges, it ignores, you know, the different fonts that you have. It just extracts the raw text in a, a easy-to-understand format while preserving its original layout. And the reason why preserving its original layout is important is because LLMs understand and consume information very much like humans
[00:10:00]
would.
So the best way in which you can actually pass the context of a document, which was primarily built for a human, is to pass it with its original, uh, layout intact. And that’s exactly what text mode does over here with text-heavy, uh, pages. Whereas with the image mode, what we, we will be seeing in this session today, it basically gets the images from your documents, and it renders it in a high quality so that your LLM does not miss out on any details.
So we’ll see an example of this as well. So once your, uh,
[00:10:30]
you know, document passes through the pre-processing layer, it moves into the development phase. So over here is basically where you would be ment– uploading your document into an extraction project, and you would be giving this project various prompts for doc, uh, document extraction.
So you would be mentioning what data you want to extract, as well as what is the schema or the structure that you want this data extracted in, and any other instruction that you want to give the, uh, project for, uh, you know, depending on how you want your extraction, uh, extracted output to look
[00:11:00]
So in Unstract, this is facilitated by our prompt engineering environment called Prompt Studio.
And this also comes with various other features like accuracy enablement and also cost-saving features that we’ll take a look at in the demo today. And finally, once you have set up your extraction project, you are happy with how the extracted output looks, you can export that project and deploy it in any of the, uh, options that Unstract supports.
So natively, we support API deployments if you are, uh, looking to get
[00:11:30]
your document from one application, process it using a tool on Unstract, and then send it down to another application. We support ETL pipelines, task pipelines, and also, uh, Unstract, uh, Unstract’s Document Studio as well as LLMWhisperer is now available at, uh, as MCP tools.
So you can use it in your MCP environments as well. Uh, you can deploy this in your CLI as well as in, in n8n workflows as a node. So these are all the various options that you have to flexibly choose from depending on your,
[00:12:00]
uh, particular business use case. Now, before I move on, uh, certain numbers that I wanted to throw out over there is that Unstract currently, uh, the open source project on GitHub currently has 7.5K stars, um, and counting on, uh, GitHub.
We have a thousand-plus member Slack community, and currently we’re processing over ten million plus pages per month by paid users alone. And, uh, the platform, both, uh, Document Studio as well as, uh, Unstract’s LLMWhisperer, are, uh, compliant with all the major regulations
[00:12:30]
like, uh, GDPR, HIPAA, SOC 2, and ISO.
So that said, uh, before I actually go to the platform, I wanted to give a quick outlook on what are the key features you should be looking for, uh, when we cover the demo. So firstly, there is the image mode in LLMWhisperer. So this is extremely important. As I mentioned earlier, this is one of the two modes in which LLMWhisperer operates in, and, uh, we’ll be looking at the image mode in detail today, uh, since this will be used for extraction from charts and infographics.
[00:13:00] And then comes business connectivity. So we’ll take a look at the various file systems and databases that the platform natively connects with, and also how you can deploy this as an API, ETL tool, et cetera. And, uh, there, uh, there’s another key feature called the Lookups. So the Lookups are Unstract’s native feature for data enrichment.
So you’ll see how we are able to give, uh, you know, data enrichment, uh, I mean, for, uh, prompts for data enrichment as well, and we would be able to upload reference files so that you’re able to give– feed the, uh, workflow with
[00:13:30]
external data and, uh, enrich your extracted output. And finally, we’ll also take a look at how the HITL review or the human-in-the-loop workflow works in Unstract.
So we’ll see how you can set the conditions for triggering a human review as well as how, uh, what the interface looks like for you to perform a human review. So that said, let me, uh, move to the platform. What you see over here is the Unstract dashboard. And, uh, so, uh, once I log in, I’ll be able to see all the key
[00:14:00]
metrics.
So how many pages have I processed? Or how many documents have I processed? The number of failed pages. We have some KPIs over here, followed by a few trends on how I’ve been processing my data So, um, if I were a new user, what I would have to do is set up certain prerequisite connectors. So there are LLMs, vector DBs, embedding models, and text extractors over here.
Of course, this is an LLM-driven platform, so I’ll have to connect with all the popular, uh, you know, any, uh, popular model out there. So these are all the
[00:14:30]
options that you have. You can simply click on any of these options, fill in the details, all these fields, and you’d be able to easily set up the connection.
As you can see, you can set up, uh, connections with multiple LLMs so that I can swap these models while I’m working on a particular project in case I want to try out a different model as well. And again, uh, I’ll have to connect with a vector DB, an embedding model, as well as a text extractor. So again, over here is basically where you get the, um, various text extractors along with LLMWhisperer.
[00:15:00]
And, uh, let’s just take a look at how– You can see this is the LLMWhisperer in the image mode. This is the connector that we’ve already set up. So let’s take a look at what are the various controls you have behind this setup over here. So what I have over here is the, um, settings for this connector. So I’d have to give it a name as well as the URL, which is basically the region that this is deployed on.
So you get these details from Unstract, uh, developer portal. So LLM Vispera is also
[00:15:30]
available as a standalone application. So you can simply log into your, uh, cloud, uh, LLMWhisperer account, and you would be able to get these details. So you’d also get your, um, uh, API, I mean, uh, your, uh, LLMWhisperer key from there.
And then you would have to set certain settings down here. So firstly, there is the mode. So the mode is basically, um, you know, desi– it’s decided based on how, uh, what are the kind of documents that you are processing. So over here you can see that I’ve set it to form.
[00:16:00]
Uh, the LLMWhisperer, uh, I mean, it can actually function in different modes.
So these are the various modes that it can operate in, and it really depends on the kind of document that you’re using or processing. So native text is usually for documents that are digitally native, that are clean, easy to understand. And this is the fastest and the cheapest mode that LLMWhisperer can, um, perform on.
Then we have low cost for scans that are clean, so it doesn’t have handwriting or smudges. It’s probably a
[00:16:30]
digitally native documents that’s just taken as a clean scan and uploaded. So for that, you might wanna go for a low-cost mode. High quality is when you’re dealing with, um, more complex scans with handwriting and a lot of noise, maybe with complex tables and, you know, text overlapping.
So that is when you’d probably wanna go for high quality. You would then finally go for form or the table mode depending, uh, you know, uh- Forms would be when you have, uh, you know, uh, I mean, it’s simple. You’re dealing with a lo- uh, with forms with a lot
[00:17:00]
of radio buttons packed next to one another. You could have text fields.
You could have check boxes, signature fields. So when, uh, when a document, maybe like a tax document, contains all these different, uh, attributes, that’s when you’d wanna go for a form mode. And the table is when you’re dealing with tables particularly. So your tables could come in various complex formats.
You could have nested structures. You could have merged headers, merged columns, missing rows and columns. So it, it really, um, it can come in, uh, you know, different
[00:17:30]
structures. And, uh, the form and table mode are the more, uh, expensive modes that, uh, LLM Interpreter has. So, uh, depending on the document, you would wanna choose the mode over here.
And we also have another output mode. So the output mode is decide, uh, you know, this is what basically decides whether you’re deploying the text mode for… I mean, whether your document has a lot of text or, uh, a lot of images like infographics, charts, and diagrams. So layout preserving mode is what
[00:18:00]
it is, you know, set to by default.
So we spoke about this earlier. So you send the document, it preserves the layout and extracts the raw text and then sends it down for, uh, LLM consumption. And the text mode is over here only as a fallback option in the rare case that the layout preserving mode does not work. So this is a very rare, um, option that we see our users, uh, you know, go for.
Uh, but it’s, it’s just a fallback option that you have over here. And we also have the image mode, which is what we’ll be choosing today. Since image, uh,
[00:18:30]
mode specializes on rendering your images from a document, be it an infographic or a flowchart in high quality, uh, so that the VLM is able to accurately extract data from it.
And below that we have a few other settings. So there is the line tolerance, uh, splitter tolerance. This is basically, um, the value that decides whether a particular text in a document, uh, belongs to the row above or the row below. So you have text given in a single line, but sometimes in scans you might have text that, you know, stay a little above a certain line or below a certain
[00:19:00]
line.
So what decides which line it belongs to is what the line tolerance over here, uh, decides, and it also has a strategy for it to function on that you can choose over here. But usually, I mean, uh, to not complicate things, this setting that you have over here works perfectly well for most documents. It’s only in the rare case that you might wanna come here and change this.
And then we have the horizontal stretch factor. So there are certain documents that come with text that is tightly packed, and when you ex, uh, try to deploy a VLM on these, um,
[00:19:30]
uh, images or documents, it can become extremely difficult to distinguish between the tightly packed overlapping text. So you might want to, uh, specify a horizontal stretch factor over here, which stretches the text apart so that you can read it cleanly.
And then we have another important setting over here. That is the page numbers or range to extract. So especially with the image output mode that we have selected up here, um, it is quite, uh, expensive, uh, when you’re processing your, uh, documents as images. So let’s say you have a document with
[00:20:00]
a hundred pages and maybe you have infographics and diagrams only on pages three, five, and seventeen.
So it doesn’t make sense to actually process all… the rest of the pages in the image mode. So that’s, that’s exactly what you can specify over here. So you’re gonna specify the exact pages or the range, uh, within a document where you are incurring, uh, images. And once you do that, the image mode is going to be deployed only on those particular, uh, pages And, uh, we also have a page separator over here.
So, uh, your document is going to have multiple
[00:20:30]
pages, and when you extract the data, uh, or, or the text from your document, you, uh, are going to have to mark the page breaks with a certain, um, uh, value, and that’s exactly how we are going to be… You know, uh, this is basically the mark that we’re using to separate two different pages.
And then again, you can decide to mark or, uh, not mark horizontal and vertical lines. So these are the lines that you’ll probably see in your tables. So while extracting tables, do you want to extract it with the rows and columns or without the rows and columns? And
[00:21:00]
finally, we have tag over here. So tag is a field that you’d pro– uh, right now I’ve set it to default, but if you want to, uh, track the usage of a particular adapter…
For instance, if I’m using this particular, uh, uh, connector only for my finance, uh, document extraction, then I might want to, you know, uh, set up a tag over here saying finance extraction. And once I do that, this, uh, will… I mean, the system will keep track of how many times this particular adapter has been invoked.
And you can then have usage metrics
[00:21:30]
on, uh, which department within your, uh, organization is using, um, document extraction or extracting documents the most or spending most, uh, you know, on Unstract. So that is the kind of, uh, analysis that you can do with, uh, the tag over here. And finally, we have webhook, uh, setup.
So you don’t always have to be on the platform looking at whether it’s working or not or when a process is complete. Uh, once you set up your webhook, you’ll be notified to wherever you are on, uh, you know, once a process
[00:22:00]
is complete or if a process has failed, so that, uh, you can spend time accordingly.
So these are all the various, uh, settings that you have behind, uh, the LLMWhisperer, uh, connector. And I just wanted to go through this today because, uh, this is an important feature, the image, uh, uh, extraction, uh, feature. And as you can see, we have image PDF only given in the bracket. So you only have… I mean, this can be deployed only on PDF, uh, documents that you upload into the system right now, that it can, you know, where the pages can be converted into an image
[00:22:30]
and then processed.
So we’ll see, uh… I mean, this will be working in the back end when we go into the demo today. And that actually covers the first, uh, feature that I wanted you to, um, keep an eye on. That is the image, uh, only output mode. The next is business connectivity. So we spoke about how, uh, the extraction alone, the LLM alone is not enough.
You’ll have to connect with the source where your documents come from and, uh, where your output has to go to. So these are all the
[00:23:00]
native, um, nat- uh, natively supported file systems and databases on Document Studio. So you can connect with, uh, any of these, again, just by specifying the details, authenticating your account, and getting, uh, you know, getting started.
So here you have the different file systems and databases and where, uh, these are built-in connectors. And where they actually come into use are, you know, when you deploy a particular project as an ETL pipeline or a task pipeline, especially. So with an ETL pipeline, as you can see, I’ve deployed a
[00:23:30]
credit card, uh, project as an ETL pipeline over here.
And, uh, the source where I’m getting the credit card from is a file system. It’s my Google Drive, and I’m, uh, you know, putting it, uh, into my, uh, database over here. So this is when, uh, you know, ETL pipelines are when you have the source as a file system and the destination as a database or a data warehouse.
You also have task pipelines. So this is another kind of deployment where, uh, built-in connectors come into use, where the source is a file system and the,
[00:24:00]
um, destination is also a file system. So I get the document from the source, I process it using a Document Studio project, and I, I, I put the data back into another, uh, file that I have.
So this is where I’d use a task pipeline. And of course, if you want to connect, uh, you know, uh, two different apps, uh, where you… I mean, you h- you might have your document in a particular app, you want to process it and send it to a different app, in those cases, you can make use of the API deployments. So this, uh…
And, and as I
[00:24:30]
mentioned earlier, we also support MCP, uh, n8n workflows and CLI deployment. So this is basically, um, an approach to help get unstuck to wherever, uh, your al- your team is already running its pipelines. And, um, uh, it’s, it’s just to make you, uh, make, make the platform more flexible so that it naturally fl- fits into the, um, business systems that you already have.
So that said, um, we’ve also looked at business connectivity, how the platform connects with various, uh, sources and
[00:25:00]
destinations. Now let’s move on and create a project in Prompt Studio. So I spoke about Prompt Studio earlier. It’s basically the, um, prompt engineering environment that I have And, uh, over here now, um, you can just click on New Project.
You can specify the details over here and get started. But I’m opening… I’m gonna be opening an existing project for the sake of this dem- uh, webinar, where I have a few prompts that I have already mentioned. So, uh, we just wait for this document to load. All right. So this is
[00:25:30]
a prompt studio. This is how it looks, uh, the interface.
So you have the document uploaded on the right-hand side and a bunch of, uh, prompts on the left. So you have the prompt title, the description of the prompt. So this description will basically tell you what data you need to extract. That’s what we have over here. And what is the schema of extraction that we’re looking for, and that’s exactly what we have over here.
So this is the ideal prompt that you, uh, might want to feed the platform with, and you also have various, uh, output data types to choose from. So in this case, I want a
[00:26:00]
JSON output, and I’m choosing this as JSON, and I can manage documents over here. So right now I’ve just uploaded this one document, which is a sustainability report.
I can, you know, click on, uh, Upload over here, and I can upload more documents, um, into the platform So once I do this, I, uh, will have to, you know, uh, uh, deploy a certain, uh, LLM. Uh, we, we looked at the various connectors over here, right? So there are LLMs, vector DBs, embedding models, and text
[00:26:30]
extractors. So that’s exactly what we are, uh, looking to, um, you know, choose, uh, from the various connectors that we have.
So under Prompt Studio settings, you have the LLM profile, and over here I can edit the profile. I can choose which combination of LLM I want, vector DB, embedding model, or text extractor. So you can see that I’ve, I’ve chosen the image mode text, uh, I mean, extractor over here. And I have a, a combination of LLMs and vector DBs.
And in the case of, uh, you know, documents that
[00:27:00]
run many pages long, you also have chunking options. So this is the, uh, you know, uh, you have various retrieval strategies for chunking, and you can set that up as well. So, uh, I won’t be covering chunking in this webinar right now, but you can check out our previous webinars or, uh, or our detailed documentation to see how this works.
And you have various other, uh, capabilities over here in, uh, the Prompt Studio settings like, uh, su-su, uh, summarize extraction, which is a cost-saving capability. It basically, uh, checks your prompts, it checks
[00:27:30]
what, uh, data you’re looking to extract, and it basically summarizes your original document in a format that this is, uh, again, uh, it’s useful for text-only extraction because you’re not processing images over there.
It summarizes the text just to give you the relevant information that you need to use to get your data extracted. And your, uh, LLMs are deployed only on that summarized version, and hence your token consumption comes down. So similarly, LLMChallenge is also supported for our text-only extraction, where you
[00:28:00]
deploy another, uh, LLM, uh, to work on the same prompts and extract the data.
And only if the two LLMs agree with the, um, you know, you have an LLM, a challenger LLM that you set over here, and you also have an extractor LLM that you set in the LLM profile. So only if these two models, uh, you know, agree on the output that you get is it given to the user. So this is another way in which you can con, uh, you know, uh, ensure accuracy.
And you can also set custom data. So this is for dynamic processing. And, uh,
[00:28:30]
what basically happens over here is once you set your custom data, um, you might be using certain data values in your prompts. For instance, uh, let’s say that I’m, you know, working with some shipment document. I might have a minimum and maximum for the weights that I allow in a particular shipment from a particular vendor.
So, um, this minimum and maximum can be hard-coded into the prompt itself when I’m checking for whether it passes that condition. I can be like, okay, is it below twenty, uh, I mean, is, is it above
[00:29:00]
twenty pounds and below a hundred pounds? But This value of 20 and 100 can change as my business rules change.
So I don’t have to constantly come back and update the prompt over here by using the custom data. What basically happens is I can connect it to where it is stored on my database, and once I update it in, in the database, it automatically reflects in the prompt. So that is basically what, uh, we are, uh, you know, that’s possible with custom data And then you have grammar to, uh, define any synonyms on your, uh, documents.
So
[00:29:30]
I can just, you know, mention a word over here. For instance, if I can say, if I, if my document comes across this word profit, the synonyms could be gains. So this is, you know, um, especially useful when I’m dealing with documents with a lot of industry jargon. So, uh, you can define the grammar over here, and then there’s preamble and postamble.
So these are, uh, basically, uh, prompts that would be appended, uh, you know, either at the be… It would be added as a prefix or a suffix to all your prompts. So these are like common prompts that
[00:30:00]
are added to all the prompts that you define that you can, um, you know, uh, this is a way in which you can control how your extraction, uh, works.
So you have various, uh, you know, uh, setting– I mean, features in the prompt studio settings that you can go through. And, uh, you, uh, can set it accordingly. And once you’re done, you can, you know, mention your, uh, prompts over here. So you can see in this particular, uh, project, I have uploaded a sustainability report, and this is a fake report that I’ve actually, uh, you know, created
[00:30:30]
just for the sake of this webinar.
We will be looking at certain more, uh, real use cases in some time. But I wanted to take this sample over here because it contains a lot of infographics and charts, and so you can see the, uh, graph over here. We have a bar chart, a pie chart, I mean, a donut chart over here. And we also have a flow chart. So there is, uh, you know, uh, the j-journey of the waste items in this particular city.
So how is it classified? So we have a flow chart, you know, representing that. We have a trend line, and, uh, we also have a table with some color demarcations
[00:31:00]
and some, you know, merged headers and columns. So I wanted to, uh, you know, especially take this example to show how visual data is processed. And we also have an infographic over here.
So you can see that, uh, right now I’m ex-extracting some data like the waste composition, um, and you have the output right here. So I’ve already run this particular prompt. So, uh, you know, if I have to dive into this prompt, we are telling the system what data to extract from this particular document. So from the donut chart, so we are specifying, especially, you know, uh, specifically where it is.
So from the
[00:31:30]
donut chart, and we’ve given the name of the chart, extract the percentage share of each waste category. So that is the what of, uh, the extraction, what data we’re looking to extract. And we’re asking it to compare it with the colors given in the legend. So based on the colors, it needs to identify, uh, what is the percentage of each of the, uh, waste categories.
And finally, it’s returning it in a certain, uh, JSON structure, and that’s also specified over here. So I’m defining the what and the how. So how, what data do I
[00:32:00]
retrieve, and how is the retrieval structured? And once this is done, this is basically the output that I have. So we have the category and the percentage that is matched based on the color mapping that the system was able to do on this particular chart.
So similarly, we have various other, um- You know, documents over here, I mean prompts over here. And I am going to be creating a new prompt right now to show you how, uh, you know, we can deploy data enrichment. So this use case that I’m… Uh, you can see that I have multiple districts over here, so in the sustainable
[00:32:30]
report.
And I’m just going to create this lookup basically to match the person that is in charge of, uh, the report or the waste management in that particular district. So I have those details of, uh, the people in charge in a different file, and I have this document over here with just the details of the districts and how they’ve been faring.
So, um, you can see that they have different status, so some of them are on track with what is planned, some of them have to be kept on watch, and some of them are behind. So,
[00:33:00]
uh, who do… So who do I contact if I need to talk to some, uh, you know, someone where a district is behind certain, um, goals that they had set?
So this is where a lookup comes into the picture. Now, first, I will have to extract the district data that is given in this table. So let me, uh, go to the prompt. I already have this prompt over here, and, uh, I’m just gonna copy it, and I’m going to paste it over here along with the prompt name
[00:33:30]
So the prompt name is districts needing action. So you can see that for each district, find the matching row in a particular, uh… Sorry, wait, this is the lookup enrichment. Sorry. Um, I’ll get you the extra– That was a lookup, uh, prompt that I had over there. So this is the extraction prompt
[00:34:00]
So, uh, we have the prompt over here. So from the district scorecard, that’s basically this table, list every district whose status is watch or behind, and use the zone column to record, record each district’s zone. So we’re, uh, basically extracting the zone
[00:34:30]
over here, the district over here, as well as the status.
So these are the three columns that we are focusing on, and we are, uh, we’ve also given the, uh, extraction, uh, the structure of the JSON that needs to be extracted. So now this– when I run this particular prompt, it would work, uh, on this, uh, table and just retrieve the values. So we’ll just give it a couple of seconds
All right, so we have the values
[00:35:00]
retrieved over here. So we have the district, the zone, as well as the status for all the, uh, districts that are behind or in the watch zone, uh, watch status. So now if I want to reach out to the people that are actually in charge, then I will have to set up the lookup, and that’s what I’m going to do.
I’m gonna click on Configure lookup. And over here, I can, you know, configure an existing lookup that I have that I’ve already created, or I can create a new lookup. So, uh, in this case, I am creating a new lookup
[00:35:30]
You can give it a name
Just gonna give it the same description
And yeah, I have it right here. So this is the lookup interface that you’re looking at. So I can upload the reference files over here. I can give the
[00:36:00]
prompt for the data enrichment over here. And, uh, let me do both of that. So first I’ll upload the reference file. So I have the district owners that I’m uploading as a CSV over here
And let me copy-paste the lookup prompt. So basically, this prompt is just going to, uh, match the different, uh, districts with the, uh, person that, you know, the point of contact. So that’s what
[00:36:30]
we’re doing over here
So I have the prompt. So if I have to go through it, for each district in this particular prompt, find the matching row in the file district owner CSV. That’s basically the file that we have just, um, you know, uploaded over here, district owner CSV. And we are basically extracting based on the details that, uh, the additional details given in this file, like the lead email and, uh, their
[00:37:00]
zone, their district code.
I’m extracting all those details along with the details in the document. So I have the district, the status, um, which are from the input. District code is from the file. So you can also see which of these fields are from the file versus from, uh, you know, the input that I have. And once I have this, this is basically the enriched output that I need to, uh, produce based on this reference file that I’ve uploaded.
So, uh, I can also define which LLM I want to deploy for the data
[00:37:30]
enrichment. So right now, I’m just going to, uh, run this particular lookup. So let me save it first. I’m gonna save this as v– version one So once I do this, let me, uh, run this prompt again, and you should be able to see the enriched output
[00:38:00]
So here’s the enriched output. We have the districts, the status, and, uh, the zone. So we have basically the additional, uh, data over here as well, like the ward lead, the email ID, the program details, and all of that for all the, uh, districts that were in the status, uh, or, you know, behind or on watch. So this is basically how data enrichment works in, uh,
[00:38:30]
Document Studio.
So, uh, we pass it to a VLM, and now we need that output to be extracted. We send it to a lookup, we get the extraction done, and that covers data enrichment. Now, finally, coming to human review. So again, uh, none of these, um, systems are foolproof. Uh, you know, sometimes you do have to catch certain errors or you might want to be there, uh, for compliance requirements.
So what you’ll have to do is basically once you’re ready, your project is ready. In this case, I’m happy with how the output has been extracted for all the prompts in
[00:39:00]
this project. I’m just going to extra– export this project as a tool, and then I can use this tool to, um, you know, deploy this project either as an API deployment, ETL pipeline, task pipeline, and so on.
So I’m just gonna create a workflow over here, which is gonna, uh, you know, decide how I’m going to deploy this project. So let me call this Sustainability E– uh, Report ETL.
[00:39:30]
So this is the workflow setup that I have. So I’ll have to configure the source connector, the destination connector, and the tools that I’m going to use for, uh, extracting the data from, uh, the connector. So basically over here I am… I have the option of going with API or file system. In this case, I am going to get my document from a Google Drive, so I’m just gonna go with file system.
I have
[00:40:00]
already authenticated my Google Drive connector with, uh, my drive details, so I’ll just have to select that
And once I do that, I have the various folders in my drive that appears over here. So there is a sustaina- uh, ability report folder over here that I’m just going to add. And once I do that, I can set up, uh, certain other, uh, you know, um, uh, fields over here depending on my needs.
[00:40:30]
Now I’m good to go, so I’m just gonna click on save once I add the, uh, folder
So I’ve connected with this, uh, particular folder on my Google Drive, and now I can, uh, decide where I want this, uh, extracted output to go. So I’m getting the file from, uh, this particular folder. I am extracting it using a tool, and I’ll be sending it down to a certain destination connector. So the destination connector is, I can choose from either a file system or a database.
If
[00:41:00]
I choose a file system, then that means I’m setting up a task pipeline. If I go for a database, I am setting up a, a ETL pipeline. So in this case, I’m gonna go for a database, and I’m gonna select the database I wanna connect with, give it a table name
So I have certain other conditions that I can check. So once I do this, over here is also where you get the human in the loop feature. So, um,
[00:41:30]
this is where you set the conditions for which of your documents are going to go in for a human review. So you might be dealing with hundreds or even thousands of documents.
So how much– how many, uh, of these documents are going to go for human review? Or how much percentage of these documents are going to go for human review? So that’s what I can set up over here. So let’s say I want thirty percentage of my overall, uh, volume of documents to go in for human review. I can set that over here.
But what are the conditions that decide what is this thirty percent?
[00:42:00]
So that is what I have the option, uh, you know, for setting the rule r-logic over here below the percentage. So I can add a rule where I can set up, uh, you know, um, I can filter fields by confidence or by value. Just a minute
Yeah. So I have different ways of actually setting up the rules. So I can use and or, uh, or logic and I can choose, uh, you know, I can add
[00:42:30]
groups of different rules based on, uh, you know, fil- I can filter by value. So if a certain, uh, you know, document belongs to a certain vendor, then I want that particular document to go in for a, a human review.
Or I can also filter it based on the extracted, uh, extracted output’s confidence score. So if a certain output’s confidence score is less than 0.6, then I want to go for that… uh, I wanna route that output for human review. So these are all the ways in which you can actually set it up. In this case, I’m just gonna keep this as 100, since I’m going
[00:43:00]
to…
uh, for the sake of this demo, I’m only going to be processing one document that is in my file system, uh, and I want to send it for a review. So once I do this, I’m gonna click on Save
And I can choose, uh, from various, uh, you know, Prompt Studio, uh, projects over here. So, uh, I’m going to search for the sustainability report project. So this was the project that we had worked on right now, and I’m going to put that over here,
[00:43:30]
and I am going to deploy this workflow as an ATL Pipeline. Let me just check this once
So let me give this ETL pipeline a name
And I also have a cron schedule. So in case I need to, um, trigger this particular
[00:44:00]
pipeline on a periodical basis, I can set up the cron schedule over here, and I will have to click on Save and deploy So let me run this workflow for you once. So the file, uh, you know, is… I mean, the system gets the– fetches the file from the, uh, Google Drive, and it, um, uses the sustainability report extractor tool to, uh, extract the data.
You can see that it’s processing right now, and then it sends it for a human
[00:44:30]
review. And once we approve the human review, it would be sent to a, a database So let’s take a quick look at the file as well. So this is basically the, um, report. It’s the same report that you’d seen in the Prompt Studio project that I have in Google Drive
So this, um, workflow has already run. So let’s go into
[00:45:00]
the, uh, HITL review interface. So over here I’m going to click on Review. So basically you have a two-layered review. You have a review that’s, uh, that’s the first… You know, you can set, you know, uh, users on your, um, account on who is allowed to do a review and who’s allowed to do an approval, uh, uh, approval on the extracted data.
So first it goes through the review, uh, uh, layer where it, there’s one round of review that is done, and you can change any, uh, value that you want, I mean, that might be extracted
[00:45:30]
incorrectly or that you want to change before you send it down to a database. And then it goes through an approval, uh, approvers workflow where they do a second round of check on your values and then change any other data that they might want to before finally sending it down to the database.
So I’m gonna click on Review over here, and let me get this particular document. So as you can see, we have the extracted data over here, all the, uh, you know, uh, data from all the, um,
[00:46:00]
different prompts. So you can see the final prompt that, uh, we actually paid attention to was the extraction from this table.
So it has the ward lead. This is the enriched, uh, value that I have. The ward lead details or the lead email details are not present in this table. But you can see I have the enriched values over here. I can check for any other, uh, details. So let’s say that this particular status is given as Behind over here, uh, you know, in the report, but later on I got to know that, you know, it’s been moved to Watch.
So I can just double-click on the
[00:46:30]
status and I’m gonna click, I’m gonna, you know, enter this as Watch. And once I do that, it would be changed as Watch and I can, uh, finish my review So it’s as simple as that. You have the review queue over here on top. So, uh, your review, it goes… There was– it went from pending review to review in progress to now there is a review that’s finished.
Now, I can, uh, also, uh, you know, um, go to the approver’s workflow and fetch the same document, and you’ll see I get a similar interface again. So
[00:47:00]
if I were, uh, to approve a certain document, I’d go over here, I’d search for it again. And now you can see that this particular document is, you know, it’s, it’s done, it’s finished, uh, you know, uh, the review one, and it’s ready for approval.
So next, I’m just gonna click on next, and now it’s in the approval, uh, workflow. Let me go through this, and if I’m happy with it, I can again, you know, edit the values over here as well. But if I’m happy with it, I’m just gonna click on Approve, and it would be sent for downstream operations. So this is
[00:47:30]
basically the last leg of, uh, the demo today where we wanted to, uh, you know, cover the, uh, human review interface.
So, uh, we looked at how the image mode works with LLMWhisperer. We looked at how, uh, you know, you can set up a project on Prompt Studio. Uh, we also saw how data enrichment is done using lookups and finally the entire HITL interface, how it is set up and how it, uh, it works. So this is, uh, you know, all the other components that you need to, you know,
[00:48:00]
power your engine with, that is your VLM, to actually, uh, perform image extraction, uh, from, you know, flowcharts, doc, uh, charts, diagrams, and, uh, infographics on an enterprise scale.
So let me also take you through certain other projects that I have. Uh, I mean, we saw the example of, um, um, a sustainability. It was a sample document I had created so that you, uh, get a, you know, um, a knack of looking at the various visual components that it had, like the donut
[00:48:30]
chart or the flowchart or the infographic at the end or the table.
But you’re not going to get a combination of all these visual elements in all your documents. Sometimes you might… I mean, this mode is even useful for, you know, processing from, uh, food cartons or packages. So you can see over here that since we’ve deployed the image mode on this particular image, it has actually rendered it in such good quality.
So this is the quality that the VLM will be working on. This is basically the result of the
[00:49:00]
pre-processing that the image mode has done. And, uh, uh, I mean, a, a normal photo is, you know, rendered in high quality and now the VLM uses this image as well as the, uh, you know, detailed prompt that I’ve given over here to extract all the data that I want So you can see that I have the data like the ingredient list, um, and all the other lists that’s, you know, given over here.
So this is one example of how the image mode looks. You can also deploy the image mode on
[00:49:30]
complex tables. So over here we have a clinical protocol. Um, it’s, it’s a document which doesn’t have too many flow charts or diagrams as such, or colors as such, but it has extremely complex tables. So tables can be extracted using the agentic table extractor as well.
Um, but it’s also… I mean, the, uh, VLM can also be used to visually understand the table layout and extract, um, the, uh, the data. For instance, if I were to pass this through the text mode on,
[00:50:00]
uh, LLMWhisperer, it would be able to retrieve the values, but certain, uh, you know, tables have values where they have arrow marks and, um…
I’m just trying to find if there is a page like that. But they might have arrow marks stretching across the entire row or the entire column. So the, uh, text extractor wouldn’t… As you can see over here. So the text extractor, it means that this particular value X applies to all the columns that you have over here.
That is what they’re looking to, uh, you know, convey. But this wouldn’t be, you know,
[00:50:30]
um, extracted properly with a text-only extraction. You would just have one X value that is extracted, and it m- it might be ignored. So in these kind of tables is when you would deploy the image mode extraction on LLMWhisperer, and then you would be able to get accurate data extracted.
We also have another, um, table, uh… yeah, another document with a bunch of tables over here. And as you can see, this is deployed, uh, using the agentic table extractor as the output mode. So this is the output mode
[00:51:00]
that we have chosen. So the agentic table extractor is another feature on its own. It basically combines a multi-chain…
Uh, it, it has a multi-agent approach to extract table data specifically. So a particular ta– uh, you know, agent would be working on identifying the table. A particular agent would be working on creating its blueprint. One would work on just extracting the data. One would work on putting that data, you know, in the extracted, um, uh, you know, table, uh, structure.
So this– I mean, we have an entire webinar on just the agentic table extractor. We also
[00:51:30]
have a detailed documentation that you can take a look at. And, uh, you can combine this with the image mode extraction as well. So instead of extracting this table data as a text, you can extract– you can, you know, just extract it as the image and render it in high quality before you send it to the LLM that’s going to work on it and get the data that you want.
So this, uh… these are just other examples of where the, um, you know, image, um, extractor is, you know, put to use. So-
[00:52:00]
Let me go back to the, uh, original demo setup that I had. Now, again, Unstruck comes with various other capabilities. Uh, we also have an agentic prompt studio. So an agentic prompt studio is basically, um, you know, uh, a prompt engineering environment where you can, um…
One second. Yeah. All right. So you can basically automate your entire, um, process of
[00:52:30]
generating a prompt. So you saw over here that I copy-pasted a prompt into the prompt studio that I, uh, you know, showed you. But with the agentic prompt studio, you can actually have the system itself. You– All you have to do is upload your document.
Over here, I’ve uploaded a document in a multilingual, uh, I mean, it’s a multilingual document. I have an Arabic invoice over here. I also have a Japanese invoice over here. So these are all the documents that I’ve uploaded, and I’ve deployed a text mode, uh, extractor to, uh, you know, extract the text. And, uh, this is how the, uh, uh, LLM Whisperer text mode extracts the raw text from your
[00:53:00]
document.
And then the system, based on all the invoices that you’ve uploaded, automatically generates an extraction prompt that, uh, that can work on these documents and extract the data. So, uh, again, there are detailed, uh, webinars on this and, uh, we have blog posts as well as documentation and, uh, I… That, that brings me back to the presentation So yeah, that, uh, I think that wraps up what I wanted to talk about today.
And if you, uh, want to check out, you know, how, um,
[00:53:30]
Document Studio as a whole or the image extraction works on your particular documents, you can, um, I mean, uh, sign up for a free trial ideally, and try the product, uh, on your own. Or you can also set up a free personalized call with one of our experts where we’ll be able to sit with you, understand your business needs, and see how the platform can be customized to meet those needs.
All right. Thank you everybody, and, uh, hope you had a great session. Looking forward to seeing you in our upcoming
[00:54:00]
events.
See Unstract in action with walkthroughs of core features and real extraction workflows.
Managed cloud, on-premise, or open-source. Unstract adapts to your infrastructure needs, so choose what works best for you.
Prompt engineering Interface for Document Extraction
Prompt engineering Interface for Document Extraction
Make LLM-extracted data accurate and reliable
Use MCP to integrate Unstract with your existing stack
Control and trust, backed by human verification
Make LLM-extracted data accurate and reliable
The data your document pipeline can miss: charts, diagrams, and infographics