$npx skillfedfor your agent

llama-index-llms-langchain

llama-index llms langchain integration

With conditionsPyPI Artificial IntelligenceReleased Mar 2026151.7K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — llama_index_llms_langchain-0.8.0-py3-none-any.whl
v0.8.0 · released 2026-03-12 · Python <4.0,>=3.10 · 2 runtime deps: langchain, llama-index-core

Yes, if you are already using both LlamaIndex and LangChain and want to use a LangChain LLM provider within LlamaIndex. The low install friction, active maintenance, MIT license, and zero known vulnerabilities make it a straightforward choice. Install it only if you have a specific LangChain provider you need to integrate; if LlamaIndex has a direct integration for your model, that is likely simpler.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later
  • Low friction installation with only two runtime dependencies.
  • The package is actively maintained with a recent release.

License · maintenance · safety

MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

last release 2026-03-12 (155 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 151,694 downloads/mo, #10,924 on PyPI

Verify before relying

pip install llama-index-llms-langchain

from langchain.llms import OpenAI
from llama_index.llms.langchain import LangChainLLM

llm = LangChainLLM(llm=OpenAI())
response_gen = llm.stream_complete("Hi this is")
for delta in response_gen:
    print(delta.delta, end="")
  • Whether all LangChain LLM implementations are fully compatible with LlamaIndex's streaming and completion interfaces
  • Performance characteristics when using LangChain providers compared to native LlamaIndex integrations
Same gist for agents: .md · .json

What it is and what it does

This package provides a wrapper that lets you use any LangChain-compatible language model as a LlamaIndex LLM. It acts as an adapter layer, translating between LlamaIndex's LLM interface and LangChain's model implementations. You instantiate a LangChain model (such as OpenAI) and wrap it with LangChainLLM, then use it directly in LlamaIndex workflows for indexing, querying, and response generation.

The integration supports both standard completion and streaming responses. It depends on langchain and llama-index-core. This is useful when you want to leverage LlamaIndex's retrieval and indexing capabilities while using a specific LangChain provider or model that may not have a direct LlamaIndex integration.

Use it for

  • Use LangChain's OpenAI wrapper within LlamaIndex to build RAG pipelines with specific model configurations
  • Integrate a custom or lesser-known LangChain LLM provider into LlamaIndex without writing your own adapter
  • Stream responses from LangChain models through LlamaIndex's completion API for real-time output
  • Combine LlamaIndex's document indexing with a LangChain LLM you already have configured in another project

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are already using both LlamaIndex and LangChain and want to use a LangChain LLM provider within LlamaIndex.

The low install friction, active maintenance, MIT license, and zero known vulnerabilities make it a straightforward choice. Install it only if you have a specific LangChain provider you need to integrate; if LlamaIndex has a direct integration for your model, that is likely simpler.

Install

llama-index-llms-langchain on PyPI

Before you install

Low friction installation with only two runtime dependencies. The package is actively maintained with a recent release.

Requires Python 3.10 or later

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

Quickstart

pip install llama-index-llms-langchain

from langchain.llms import OpenAI
from llama_index.llms.langchain import LangChainLLM

llm = LangChainLLM(llm=OpenAI())
response_gen = llm.stream_complete("Hi this is")
for delta in response_gen:
    print(delta.delta, end="")

Verify before relying

  • Whether all LangChain LLM implementations are fully compatible with LlamaIndex's streaming and completion interfaces
  • Performance characteristics when using LangChain providers compared to native LlamaIndex integrations

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <4.0,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
langchainllama-index-core
MaintenanceActively maintained 155 days since the last release
First released
Downloads151,694 / month, #10,924 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: llama_index_llms_langchain-0.8.0-py3-none-any.whl

Tags

Capabilities
llama index langchain integrationuse langchain llms with llamaindexlangchain llm adapterllamaindex llm providerlangchain integration llamaindexbridge langchain and llamaindex
Topics
llm-integrationrag-framework

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “use langchain llms with llamaindex”

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also llama-index-embeddings-langchain · llama-index-llms-litellm · llama-index-llms-openai-like · llama-index-llms-gemini · llama-cpp-python · llama-index-llms-openai · llama-index-llms-azure-openai · llama-index-agent-openai · llama-index-llms-vertex · llama-index-llms-bedrock