🧬LangChain
Also known as LangChain Framework, LangChain.js
A free kit of code for making AI apps from chains of steps.
Think of it like
Think of it like a toy train set. Each car does one job, and you hook the cars into a line.
Example
Emma builds a ticket tagger in LangChain. A prompt template, a model and an output parser are joined in one chain. It gives back a clean label.
Why it matters
It has a huge set of ready links to models, data stores and tools. So a first version is quick to build.
Definition
Example code
python
chain = prompt | model | parser
result = chain.invoke({"ticket": "My card was charged twice."})Common mistake
Key takeaways
- 1Chains of steps. Output feeds input.
- 2Many providers. One common way.
- 3Python and JavaScript. Both supported.