LangChain vs LlamaIndex
Side by side: what each one is for, what it costs, and how each is moving.
At a glance. The same facts, in the same order.
| Fact | FrameworkLangChainAn open-source framework for building applications with language models, with integrations for models, tools and data sources. | FrameworkLlamaIndexAn open-source framework for connecting language models to your own data, focused on retrieval and document agents. |
|---|---|---|
| Who it is for | For software developers who build applications and agents on top of AI language models. It is a code library that connects models, tools and many third-party services. | For software developers who build AI applications and agents that work with their own documents and data. It is an open-source code library; the maker also sells a hosted document-reading service. |
| Made by | LangChain | LlamaIndex |
| Price | Free and open source under the MIT licence; you pay your model provider separately. The maker's hosted product, LangSmith, has a free plan and a Plus plan at $39 per seat a month. | Free and open source under the MIT licence; you pay your model provider separately. The maker's hosted LlamaParse service has a free allowance, then charges by use. |
| Runs on | Python, JavaScript | Python |
| First released | 2022 | 2022 |
| Heat this month | 48, rising in 1 of 3 sources | 50, rising in 1 of 3 sources |
Signals. Each source measured the same way for every topic.
npm downloads
Downloads per week. Latest full week, and the change over four weeks.
| Topic | Latest week | Four-week change | Recent weeks |
|---|---|---|---|
| LangChain | 3,617,657 | +26% | |
| LlamaIndex | 164,192 | +32% |
PyPI downloads
Downloads per week, mirrors excluded. Latest full week, and the change over four weeks.
| Topic | Latest week | Four-week change | Recent weeks |
|---|---|---|---|
| LangChain | 36,831,431 | -1% | |
| LlamaIndex | 388,970 | -26% |
GitHub forks
New forks per week. Latest full week, and the change over four weeks.
| Topic | Latest week | Four-week change | Recent weeks |
|---|---|---|---|
| LangChain | 91 | -13% | |
| LlamaIndex | 81 | 0% |
Wikipedia views
Article views per week. Latest full week, and the change over four weeks.
| Topic | Latest week | Four-week change | Recent weeks |
|---|---|---|---|
| LangChain | 1,271 | -7% | |
| LlamaIndex | 140 | -19% |
Hacker News stories
Stories mentioning the phrase, per week. Latest full week, and the change over four weeks.
| Topic | Latest week | Four-week change | Recent weeks |
|---|---|---|---|
| LangChain | 3 | ||
| LlamaIndex | 2 |
Each small line is drawn on its own scale, so compare the figures, not the heights. A source that is missing for a topic was not measured for it; that is not zero.
Questions and answers. LangChain vs LlamaIndex, in short.
What is the difference between LangChain and LlamaIndex?
LangChain: An open-source framework for building applications with language models, with integrations for models, tools and data sources. LlamaIndex: An open-source framework for connecting language models to your own data, focused on retrieval and document agents.
How much do LangChain and LlamaIndex cost?
LangChain: Free and open source under the MIT licence; you pay your model provider separately. The maker's hosted product, LangSmith, has a free plan and a Plus plan at $39 per seat a month. LlamaIndex: Free and open source under the MIT licence; you pay your model provider separately. The maker's hosted LlamaParse service has a free allowance, then charges by use. Prices come from each maker’s own pages and change; the official sites have the last word.
Who makes LangChain and LlamaIndex?
LangChain is made by LangChain. LlamaIndex is made by LlamaIndex.
What do LangChain and LlamaIndex run on?
LangChain runs on Python, JavaScript. LlamaIndex runs on Python.
Which is getting more attention, LangChain or LlamaIndex?
This month, LangChain has a heat of 48 and LlamaIndex has a heat of 50. Attention to LlamaIndex is growing faster. Heat runs from 0 to 100 and measures how fast attention is growing, not quality; 50 means no change.