langchain-perplexity
An integration package connecting Perplexity and LangChain
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, carries no known vulnerabilities, has low install friction, and integrates cleanly into LangChain workflows. Install it if you're already using LangChain and want to add Perplexity as a model provider—it's the standard way to do so. No concerns about maintenance or licensing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later and a Perplexity API key or account to authenticate requests.
- Low friction install with just two runtime dependencies.
- Actively maintained with a recent release 66 days ago and an active repository.
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-06-09 (66 days) · last repo commit 2026-08-14 · 144,266 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 363,655 downloads/mo, #7,218 on PyPI
Alternatives
Verify before relying
pip install langchain-perplexity
from langchain_perplexity import ChatPerplexity
model = ChatPerplexity()
response = model.invoke("What is the capital of France?")- Whether Perplexity API credentials or account setup is required before the package can be used
- What specific Perplexity models are supported and whether model selection is configurable
- Whether the package handles rate limiting or quota management for Perplexity API calls
What it is and what it does
langchain-perplexity is a bridge package that connects Perplexity AI models to the LangChain framework. It wraps Perplexity's API behind LangChain's standard model interface, allowing you to use Perplexity as a language model provider in chains, agents, and other LangChain constructs without writing custom API integration code.
The package depends on langchain-core (LangChain's base abstractions) and perplexityai (the Perplexity client library). It's designed for developers building AI applications with LangChain who want to leverage Perplexity's models as one option among many supported providers. The package is actively maintained, supports Python 3.10 through 3.14, and carries a permissive MIT license.
Use it for
- Use it to swap Perplexity models into an existing LangChain application without rewriting integration code.
- Use it to build multi-model LangChain agents that can route queries to Perplexity or other providers.
- Use it to prototype AI workflows with Perplexity models before committing to a specific provider.
- Use it to add Perplexity's search-augmented capabilities to LangChain RAG or question-answering pipelines.
- Use it in LangChain-based chatbots or assistants that need to call Perplexity as a reasoning or generation step.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, carries no known vulnerabilities, has low install friction, and integrates cleanly into LangChain workflows. Install it if you're already using LangChain and want to add Perplexity as a model provider—it's the standard way to do so. No concerns about maintenance or licensing.
Install
langchain-perplexity on PyPI
Before you install
Low friction install with just two runtime dependencies. Actively maintained with a recent release 66 days ago and an active repository.
Requires Python 3.10 or later and a Perplexity API key or account to authenticate requests.
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 langchain-perplexity
from langchain_perplexity import ChatPerplexity
model = ChatPerplexity()
response = model.invoke("What is the capital of France?")
Verify before relying
- Whether Perplexity API credentials or account setup is required before the package can be used
- What specific Perplexity models are supported and whether model selection is configurable
- Whether the package handles rate limiting or quota management for Perplexity API calls
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0.0,>=3.10.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packageslangchain-coreperplexityai |
| Maintenance | Actively maintained 66 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 363,655 / month, #7,218 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering :: Artificial Intelligence |
Evidence: langchain_perplexity-1.4.0-py3-none-any.whl
Tags
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 › “langchain perplexity integration”
- langchain-perplexityIntegrates Perplexity AI models into LangChain applications, enabling…
- perplexityaiProvides a Python client library for the Perplexity REST API,…
- langchain-xaiConnects xAI's language models to LangChain applications through…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
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.
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.
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.
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.
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.
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.
See also langchain-deepseek · langchain-ollama · langchain-openai · langchain-text-splitters · langchain-mistralai · langchain-groq · langchain-community · langchain-anthropic · langchain-xai · langchain-tests