by anotherpaulg · 3y ago · 0 comments
Seems like this is now best done via functions, if you're using OpenAI's models? They call out "extracting structured data from text" as a key use case in their announcement.
https://openai.com/blog/function-calling-and-other-api-updat...
(My guess is the same is true of gpt-3.5, although I haven't tested it.)
That being said, Langchain has a nearly drop-in replacement if you want to start using the function call API: https://python.langchain.com/docs/modules/agents/agent_types...