Replying to @raunakdoesdev
Nice! Curious how it compares to Azure/AWS/Google offerings
64
Replying to @ompemi
dude this is awesome!
1
44
Ethan Johnston retweeted
For those who couldn't attend my 'Keynote' at @aiDotEngineer > Pydantic is all you need Making LLMs, software 3.0, backwards compatible with software 1.0 youtube.com/live/veShHxQYPzo… other links in the thread!
14
22
4
226
56,845
Replying to @GregKamradt
This is definitely the plot of a sci-fi book being written right now
1
1
212
Replying to @emollick
Your tweets about the science behind learning are so interesting and motivational! I wish my teachers were reading your feed back in the day 😅
110
Hmm, not sure what you mean. You could do it that way but the code in the image works just fine too
1
33
Replying to @lesDecroissant
Dude you’re a legend thanks so much!
1
1
22
Replying to @lesDecroissant
I used guidance a bit before, didn’t realize it was compatible with functions. Any examples you know of?
2
44
Output still needs to be validated, and the more text you throw at the model the greater the odds of hallucinations. Sometimes it even hallucinates parts of the function that aren’t there
1
2
1,732
Replying to @PuppyCoding
Langchain just makes it a bit easier (imo). You’re right, it’s not necessary though
1
1
28
I’ll have to check that out, thanks for the tip :)
1
343
Yeah I think you can just pass it back through the existing pydantic model to validate it, not sure what you mean by self critique chain though?
1
2
2,292
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
Ethan Johnston retweeted
We're releasing 60+ lessons & practical projects on LangChain & Vector Databases in Production as our inaugural course within the Gen AI 360 Certification. Enroll at learn.activeloop.ai Why should you take it?
8
21
7
103
43,528
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