Treat Prompts Like Code: What LangChain Gets Right
The first app I built with an LLM in it was an email tool. Pick a template, fill in the blanks, done. Or let the model write the whole email for you. The template part was easy. The LLM part needed real engineering. I wrote my own system to keep the structure of a prompt separate from the user’s data, so a prompt change didn’t mean touching five places. I wrote the glue between model calls. And I had to think about what happens when people send weird input to the model. ...