And that's it! We now have our structured data extracted from the text. In just a few lines of code, we can easily parse the output and have it ready to be saved, displayed, or whatever else you intend to do with it.
1
2
17
4,561
Now we can move on to the fun part! Using @langchain, we initialize an @OpenAI chat model. We then convert our Pydantic model into a function and pass it along with the original text to the chat model.
2
2
8
5,160
First, we define some Pydantic models. We specify what data we want extracted, and the format it should be in. Examples are essential for helping GPT understand exactly what you're looking for.
1
2
16
5,655
Combining @pydantic, @OpenAI function calling, and @langchain for data analysis is insane! Suppose you want structured data on healthcare startups, but you're met with nothing but blogs and articles. How can you transform this mess into the key info you need? It's easy! 🧵
14
74
6
604
245,637
Just built this - generate a fully illustrated picture book using a single text prompt Uses function calling with @langchain @OpenAI, @replicatehq for stable diffusion, @activeloopai Deep Lake to store prompts + images Check it out: github.com/e-johnstonn/Fable…
1
9
71
15,196
I just added the option to use hypothetical document embeddings (HyDE) with BriefGPT, which improves retrieval performance. I also added a page to compare HyDE vs normal retrieval, check out the difference for yourself! Thanks @langchain @streamlit github.com/e-johnstonn/Brief…
1
2
312
Sales call assistant that I'm working on: reads the transcript of the call in real-time, detects objections within 5 seconds, classifies the objection, then tells you how to respond. You can choose the guidelines that the assistant uses, I used blog.hubspot.com/sales/handl…
1
5
13,540