| ▲ | teruakohatu 12 hours ago | ||||||||||||||||
JSON Structured Output from OpenAI was released a year after the first LangChain release. I think structured output with schema validation mostly replaces the need for complex prompt frameworks. I do look at the LC source from time to time because they do have good prompts backed into the framework. | |||||||||||||||||
| ▲ | avaer 4 hours ago | parent | next [-] | ||||||||||||||||
To this day many good models don't support structured outputs (say Opus 4.5) so it's not a panacea you can count on in production. The bigger problem is that LangChain/Python is the least set up to take advantage of strong schemas even when you do have it. Agree about pillaging for prompts though. | |||||||||||||||||
| |||||||||||||||||
| ▲ | majormajor 12 hours ago | parent | prev [-] | ||||||||||||||||
IME you could get reliable JSON or other easily-parsable output formats out of OpenAI's going back at least to GPT3.5 or 4 in early 2023. I think that was a bit after LangChain's release but I don't recall hitting problems that I needed to add a layer around in order to do "agent"-y things ("dispatch this to this specialized other prompt-plus-chatgpt-api-call, get back structured data, dispatch it to a different specialized prompt-plus-chatgpt-api-call") before it was a buzzword. | |||||||||||||||||
| |||||||||||||||||