From the course: Developing RAG Apps with LlamaIndex and Next.js

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Hands-on: Structured data extraction

Hands-on: Structured data extraction

So, in this next hands-on here, we will imagine that in our organization, we get some sales call transcript and we want to write a RAG system, a RAG application that will take that transcript and extract JSON information or into a JSON format, so then we can do all sort of things with it. and get just an example. So you have this transcript that comes in or call transcript from some sort and it's recorded in a text file or in just a string and then we want to pull information from that text transcript using OpenAI's chat API to extract JSON. So that's what we'll do here. So let's go ahead and put things together here. The first thing I'm going to have an example over that transcript something that would look like that. First of all, All you see that I created is structured data TS file and we're importing OpenAI from Llama Index because that's what we're going to be using. And so I have here this transcript. So phone rings, report support rep, hello, this is Mike from ABC support. How…

Contents