█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

LangChain

आपस में जुड़ने वाले और बदले जा सकने वाले components से agents और LLM ऐप बनाएं

App Frameworksओपन सोर्स
ताज़ा
1.4.0
अपडेट किया गया
3 सित॰ 2026
भाषा
Python
लाइसेंस
MIT
कवरेज
6 stories
$uv add langchain

नया क्या है

1.4.03 सित॰ 2026

Adds the langchain.mcp namespace and its MCPAdapter class, which discovers the tools an MCP server exposes and adapts them into LangChain tools for create_agent. Built on FastMCP and shipped in beta.

ताज़ा खबरें

सभी 6 ↓
संक्षेप में

LangChain क्या है?

LangChain आपस में जुड़ने वाले और बदले जा सकने वाले components से agents और LLM ऐप बनाएं. यह App Orchestration टूल्स की App Frameworks श्रेणी में आता है; ओपन सोर्स है, Python में लिखा गया है और MIT लाइसेंस के तहत है। शुरू करने के लिए: langChain इंस्टॉल करें.

अपडेट किया गया Markdown वर्शन ↗

सारांश

LangChain एक ओपन सोर्स framework है, जो बड़े भाषा मॉडल (LLM) से चलने वाले agents और applications बनाने के लिए है। यह models, embeddings, vector stores, retrievers और tools पर एक स्टैंडर्ड interface देता है, ताकि आप इन हिस्सों को chains और agents में जोड़ सकें, और हर एक के लिए provider-specific glue code लिखना न पड़े।

यह उन developers के लिए है जो LLM को अपने डेटा और बाहरी सिस्टम से जोड़ना चाहते हैं, बिना किसी एक model vendor से बंधे। सभी providers में abstractions एक जैसे हैं, इसलिए ज़रूरत बदलने पर आप एक model को दूसरे से बदल सकते हैं। तेज़ शुरुआत के लिए आप high level पर काम कर सकते हैं, या fine-grained control के लिए lower-level components तक जा सकते हैं।

LLM orchestration की दुनिया में एक app framework के रूप में, LangChain एक बड़े ecosystem के बीच में है: controllable agent workflows के लिए LangGraph, higher-level agent patterns के लिए Deep Agents, evaluation और debugging के लिए LangSmith, और JavaScript तथा TypeScript प्रोजेक्ट्स के लिए LangChain.js।

यह क्या करता है

  • chat models, embeddings, vector stores और retrievers पर स्टैंडर्ड interface, ताकि आप अपना ऐप दोबारा लिखे बिना providers बदल सकें
  • model providers, tools, vector stores और retrievers के लिए third-party integrations की एक बड़ी library
  • रीयल-टाइम डेटा augmentation: LLM को internal और external डेटा स्रोतों से जोड़ें
  • तेज़ prototyping और iteration के लिए मॉड्यूलर, component-based डिज़ाइन
  • लचीली abstraction layers, high-level chains से लेकर low-level components तक
  • agent orchestration के लिए LangGraph, और evals, observability तथा debugging के लिए LangSmith के साथ काम करता है

शुरू करें

पैकेज इंस्टॉल करें, फिर एक chat model initialize करके उसे call करें। README के उदाहरण में एक hosted model का इस्तेमाल है, इसलिए आपको उस provider की API key अपने environment में सेट करनी होगी।

LangChain इंस्टॉल करें

अपने Python प्रोजेक्ट में पैकेज जोड़ें। README में uv का इस्तेमाल किया गया है।

bashbash
uv add langchain

Model initialize करें और उसे invoke करें

provider:name स्ट्रिंग से model लोड करने के लिए init_chat_model का इस्तेमाल करें, फिर अपने prompt के साथ invoke को call करें।

pythonpython
from langchain.chat_models import init_chat_model

model = init_chat_model("openai:gpt-5.5")
result = model.invoke("Hello, world!")

Agents के साथ आगे बढ़ें

agent orchestration और controllable workflows के लिए LangGraph देखें; agents को develop, debug और deploy करने के लिए LangSmith देखें। JS/TS के लिए इसका समकक्ष LangChain.js उपलब्ध है।

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • LangChain के retrievers और vector store integrations का इस्तेमाल करके एक retrieval-augmented chatbot बनाएं, जो आपके अपने documents से जवाब दे
  • एक ही interface के पीछे अलग-अलग model providers का prototype बनाएं और उनकी तुलना करें, ताकि किसी task के लिए सबसे उपयुक्त विकल्प मिल सके
  • LLM को बाहरी tools और डेटा स्रोतों से जोड़ें, ताकि एक ऐसा agent बने जो कार्रवाई करता है
  • LangSmith integration के ज़रिए evaluation और observability के साथ एक production LLM ऐप खड़ा करें

LangChain in the news

  1. 29 सित॰ 2026उल्लेखनीयSam Witteveen — 'Using Jev In Your Agent Harness'
  2. 3 सित॰ 2026प्रमुखLangChain 1.4.0 — a built-in MCP adapter for agent tools
  3. 5 मई 2026प्रमुखCopilotKit Raises $27M for AG-UI — Agent-to-UI Protocol Now Backed by Google, Microsoft, Amazon, Oracle
  4. 21 अप्रैल 2026उल्लेखनीयBuild Interactive Agents With Generative UI — Free DeepLearning.AI Short Course by CopilotKit
  5. 15 अप्रैल 2026प्रमुखAnthropic MCP Design Flaw Enables RCE Across 150M+ Downloads
  6. 10 मार्च 2026उल्लेखनीयDeerFlow 2.0 — open-source SuperAgent harness

से AI/TLDR रिलीज़ फ़ीड — हर आइटम प्रकाशित होने पर स्रोत से सत्यापित होता है।

How LangChain compares

LangChain alongside other open-source app frameworks tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
LangChain★ 150kआपस में जुड़ने वाले और बदले जा सकने वाले components से agents और LLM ऐप बनाएं
LlamaIndex★ 53.1kरिट्रीवल और एजेंट्स के ज़रिए भाषा मॉडल को अपने डेटा से जोड़ें
Haystack★ 27.2kप्रोडक्शन RAG पाइपलाइन और LLM एजेंट बनाने के लिए ओपन सोर्स Python फ़्रेमवर्क
Jina★ 21.9kgRPC, HTTP और WebSockets पर संवाद करने वाली AI सर्विस बनाएं और चलाएं
RocketRide★ 19.9kएक ओपन सोर्स, MIT लाइसेंस वाला AI मेटा-हार्नेस, जो C++ रनटाइम पर चलता है: VS Code, CLI, Python और TypeScript SDK, या इसके बिल्ट-इन MCP सर्वर से AI एजेंट और RAG पाइपलाइन बनाएं, टेस्ट करें और चलाएं
LLM★ 12.9kकमांड लाइन से दर्जनों लैंग्वेज मॉडल इस्तेमाल करें, और हर एक को SQLite में लॉग करें
Prompt Flow★ 11.3kलिंक्ड flows के साथ production-quality LLM ऐप्स बनाएँ, टेस्ट करें और शिप करें
Rig★ 9.4kRust में मॉड्यूलर और स्केलेबल LLM ऐप्लिकेशन बनाएं