Metadata-Version: 2.1
Name: langchain
Version: 0.0.252
Summary: Building applications with LLMs through composability
Home-page: https://www.github.com/hwchase17/langchain
License: MIT
Requires-Python: >=3.8.1,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Provides-Extra: all
Provides-Extra: azure
Provides-Extra: clarifai
Provides-Extra: cohere
Provides-Extra: docarray
Provides-Extra: embeddings
Provides-Extra: extended-testing
Provides-Extra: javascript
Provides-Extra: llms
Provides-Extra: openai
Provides-Extra: qdrant
Provides-Extra: text-helpers
Requires-Dist: O365 (>=2.0.26,<3.0.0) ; extra == "all"
Requires-Dist: PyYAML (>=5.3)
Requires-Dist: SQLAlchemy (>=1.4,<3)
Requires-Dist: aiohttp (>=3.8.3,<4.0.0)
Requires-Dist: aleph-alpha-client (>=2.15.0,<3.0.0) ; extra == "all"
Requires-Dist: amadeus (>=8.1.0) ; extra == "all"
Requires-Dist: anthropic (>=0.3,<0.4) ; extra == "llms" or extra == "all"
Requires-Dist: arxiv (>=1.4,<2.0) ; extra == "all"
Requires-Dist: async-timeout (>=4.0.0,<5.0.0) ; python_version < "3.11"
Requires-Dist: atlassian-python-api (>=3.36.0,<4.0.0) ; extra == "all" or extra == "extended-testing"
Requires-Dist: awadb (>=0.3.9,<0.4.0) ; extra == "all"
Requires-Dist: azure-ai-formrecognizer (>=3.2.1,<4.0.0) ; extra == "azure" or extra == "all"
Requires-Dist: azure-ai-vision (>=0.11.1b1,<0.12.0) ; extra == "azure" or extra == "all"
Requires-Dist: azure-cognitiveservices-speech (>=1.28.0,<2.0.0) ; extra == "azure" or extra == "all"
Requires-Dist: azure-core (>=1.26.4,<2.0.0) ; extra == "azure"
Requires-Dist: azure-cosmos (>=4.4.0b1,<5.0.0) ; extra == "azure" or extra == "all"
Requires-Dist: azure-identity (>=1.12.0,<2.0.0) ; extra == "azure" or extra == "all"
Requires-Dist: azure-search-documents (==11.4.0b6) ; extra == "azure"
Requires-Dist: beautifulsoup4 (>=4,<5) ; extra == "all" or extra == "extended-testing"
Requires-Dist: bibtexparser (>=1.4.0,<2.0.0) ; extra == "extended-testing"
Requires-Dist: cassio (>=0.0.7,<0.0.8) ; extra == "extended-testing"
Requires-Dist: chardet (>=5.1.0,<6.0.0) ; extra == "text-helpers" or extra == "extended-testing"
Requires-Dist: clarifai (>=9.1.0) ; extra == "llms" or extra == "clarifai" or extra == "all"
Requires-Dist: clickhouse-connect (>=0.5.14,<0.6.0) ; extra == "all"
Requires-Dist: cohere (>=4,<5) ; extra == "llms" or extra == "cohere" or extra == "all"
Requires-Dist: dataclasses-json (>=0.5.7,<0.6.0)
Requires-Dist: deeplake (>=3.6.8,<4.0.0) ; extra == "all"
Requires-Dist: docarray[hnswlib] (>=0.32.0,<0.33.0) ; extra == "docarray" or extra == "all"
Requires-Dist: duckduckgo-search (>=3.8.3,<4.0.0) ; extra == "all"
Requires-Dist: elasticsearch (>=8,<9) ; extra == "all"
Requires-Dist: esprima (>=4.0.1,<5.0.0) ; extra == "javascript" or extra == "all" or extra == "extended-testing"
Requires-Dist: faiss-cpu (>=1,<2) ; extra == "all"
Requires-Dist: feedparser (>=6.0.10,<7.0.0) ; extra == "extended-testing"
Requires-Dist: geopandas (>=0.13.1,<0.14.0) ; extra == "extended-testing"
Requires-Dist: gitpython (>=3.1.32,<4.0.0) ; extra == "extended-testing"
Requires-Dist: google-api-python-client (==2.70.0) ; extra == "all"
Requires-Dist: google-auth (>=2.18.1,<3.0.0) ; extra == "all"
Requires-Dist: google-search-results (>=2,<3) ; extra == "all"
Requires-Dist: gptcache (>=0.1.7) ; extra == "all"
Requires-Dist: gql (>=3.4.1,<4.0.0) ; extra == "extended-testing"
Requires-Dist: html2text (>=2020.1.16,<2021.0.0) ; extra == "all" or extra == "extended-testing"
Requires-Dist: huggingface_hub (>=0,<1) ; extra == "llms" or extra == "all"
Requires-Dist: jina (>=3.14,<4.0) ; extra == "all"
Requires-Dist: jinja2 (>=3,<4) ; extra == "all" or extra == "extended-testing"
Requires-Dist: jq (>=1.4.1,<2.0.0) ; extra == "all" or extra == "extended-testing"
Requires-Dist: lancedb (>=0.1,<0.2) ; extra == "all"
Requires-Dist: langkit (>=0.0.6,<0.1.0) ; extra == "all"
Requires-Dist: langsmith (>=0.0.11,<0.1.0)
Requires-Dist: lark (>=1.1.5,<2.0.0) ; extra == "all"
Requires-Dist: libdeeplake (>=0.0.60,<0.0.61) ; extra == "all"
Requires-Dist: librosa (>=0.10.0.post2,<0.11.0) ; extra == "all"
Requires-Dist: lxml (>=4.9.2,<5.0.0) ; extra == "all" or extra == "extended-testing"
Requires-Dist: manifest-ml (>=0.0.1,<0.0.2) ; extra == "llms" or extra == "all"
Requires-Dist: marqo (>=0.11.0,<0.12.0) ; extra == "all"
Requires-Dist: momento (>=1.5.0,<2.0.0) ; extra == "all"
Requires-Dist: mwparserfromhell (>=0.6.4,<0.7.0) ; extra == "extended-testing"
Requires-Dist: mwxml (>=0.3.3,<0.4.0) ; extra == "extended-testing"
Requires-Dist: nebula3-python (>=3.4.0,<4.0.0) ; extra == "all"
Requires-Dist: neo4j (>=5.8.1,<6.0.0) ; extra == "all"
Requires-Dist: networkx (>=2.6.3,<3.0.0) ; extra == "all"
Requires-Dist: newspaper3k (>=0.2.8,<0.3.0) ; extra == "extended-testing"
Requires-Dist: nlpcloud (>=1,<2) ; extra == "llms" or extra == "all"
Requires-Dist: nltk (>=3,<4) ; extra == "all"
Requires-Dist: nomic (>=1.0.43,<2.0.0) ; extra == "all"
Requires-Dist: numexpr (>=2.8.4,<3.0.0)
Requires-Dist: numpy (>=1,<2)
Requires-Dist: octoai-sdk (>=0.1.1,<0.2.0) ; extra == "all"
Requires-Dist: openai (>=0,<1) ; extra == "llms" or extra == "openai" or extra == "azure" or extra == "all" or extra == "extended-testing" or extra == "extended-testing"
Requires-Dist: openapi-schema-pydantic (>=1.2,<2.0)
Requires-Dist: openllm (>=0.1.19) ; extra == "llms"
Requires-Dist: openlm (>=0.0.5,<0.0.6) ; extra == "llms" or extra == "all"
Requires-Dist: opensearch-py (>=2.0.0,<3.0.0) ; extra == "all"
Requires-Dist: pandas (>=2.0.1,<3.0.0) ; extra == "extended-testing"
Requires-Dist: pdfminer-six (>=20221105,<20221106) ; extra == "all" or extra == "extended-testing"
Requires-Dist: pexpect (>=4.8.0,<5.0.0) ; extra == "all"
Requires-Dist: pgvector (>=0.1.6,<0.2.0) ; extra == "all" or extra == "extended-testing"
Requires-Dist: pinecone-client (>=2,<3) ; extra == "all"
Requires-Dist: pinecone-text (>=0.4.2,<0.5.0) ; extra == "all"
Requires-Dist: psychicapi (>=0.8.0,<0.9.0) ; extra == "extended-testing"
Requires-Dist: psycopg2-binary (>=2.9.5,<3.0.0) ; extra == "all"
Requires-Dist: py-trello (>=0.19.0,<0.20.0) ; extra == "extended-testing"
Requires-Dist: pydantic (>=1,<2)
Requires-Dist: pymongo (>=4.3.3,<5.0.0) ; extra == "all"
Requires-Dist: pymupdf (>=1.22.3,<2.0.0) ; extra == "extended-testing"
Requires-Dist: pyowm (>=3.3.0,<4.0.0) ; extra == "all"
Requires-Dist: pypdf (>=3.4.0,<4.0.0) ; extra == "all" or extra == "extended-testing"
Requires-Dist: pypdfium2 (>=4.10.0,<5.0.0) ; extra == "extended-testing"
Requires-Dist: pyspark (>=3.4.0,<4.0.0) ; extra == "extended-testing"
Requires-Dist: pytesseract (>=0.3.10,<0.4.0) ; extra == "all"
Requires-Dist: python-arango (>=7.5.9,<8.0.0) ; extra == "all"
Requires-Dist: pyvespa (>=0.33.0,<0.34.0) ; extra == "all"
Requires-Dist: qdrant-client (>=1.3.1,<2.0.0) ; (python_full_version >= "3.8.1" and python_version < "3.12") and (extra == "qdrant" or extra == "all")
Requires-Dist: rank-bm25 (>=0.2.2,<0.3.0) ; extra == "extended-testing"
Requires-Dist: rapidfuzz (>=3.1.1,<4.0.0) ; extra == "extended-testing"
Requires-Dist: rdflib (>=6.3.2,<7.0.0) ; extra == "all"
Requires-Dist: redis (>=4,<5) ; extra == "all"
Requires-Dist: requests (>=2,<3)
Requires-Dist: requests-toolbelt (>=1.0.0,<2.0.0) ; extra == "all" or extra == "extended-testing"
Requires-Dist: scikit-learn (>=1.2.2,<2.0.0) ; extra == "extended-testing"
Requires-Dist: sentence-transformers (>=2,<3) ; extra == "embeddings" or extra == "all"
Requires-Dist: singlestoredb (>=0.7.1,<0.8.0) ; extra == "all"
Requires-Dist: spacy (>=3,<4) ; extra == "all"
Requires-Dist: steamship (>=2.16.9,<3.0.0) ; extra == "all"
Requires-Dist: streamlit (>=1.18.0,<2.0.0) ; (python_full_version >= "3.8.1" and python_full_version != "3.9.7" and python_version < "4.0") and (extra == "extended-testing")
Requires-Dist: sympy (>=1.12,<2.0) ; extra == "extended-testing"
Requires-Dist: telethon (>=1.28.5,<2.0.0) ; extra == "extended-testing"
Requires-Dist: tenacity (>=8.1.0,<9.0.0)
Requires-Dist: tensorflow-text (>=2.11.0,<3.0.0) ; (python_version >= "3.10" and python_version < "3.12") and (extra == "all")
Requires-Dist: tigrisdb (>=1.0.0b6,<2.0.0) ; extra == "all"
Requires-Dist: tiktoken (>=0.3.2,<0.4.0) ; (python_version >= "3.9" and python_version < "4.0") and (extra == "openai" or extra == "all")
Requires-Dist: torch (>=1,<3) ; extra == "llms" or extra == "all"
Requires-Dist: tqdm (>=4.48.0) ; extra == "extended-testing"
Requires-Dist: transformers (>=4,<5) ; extra == "llms" or extra == "all"
Requires-Dist: weaviate-client (>=3,<4) ; extra == "all"
Requires-Dist: wikipedia (>=1,<2) ; extra == "all"
Requires-Dist: wolframalpha (==5.0.0) ; extra == "all"
Requires-Dist: xinference (>=0.0.6,<0.0.7) ; extra == "llms" or extra == "all" or extra == "extended-testing"
Requires-Dist: zep-python (>=0.32) ; extra == "extended-testing"
Project-URL: Repository, https://www.github.com/hwchase17/langchain
Description-Content-Type: text/markdown

# 🦜️🔗 LangChain

⚡ Building applications with LLMs through composability ⚡

[![Release Notes](https://img.shields.io/github/release/hwchase17/langchain)](https://github.com/hwchase17/langchain/releases)
[![lint](https://github.com/hwchase17/langchain/actions/workflows/lint.yml/badge.svg)](https://github.com/hwchase17/langchain/actions/workflows/lint.yml)
[![test](https://github.com/hwchase17/langchain/actions/workflows/test.yml/badge.svg)](https://github.com/hwchase17/langchain/actions/workflows/test.yml)
[![Downloads](https://static.pepy.tech/badge/langchain/month)](https://pepy.tech/project/langchain)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Twitter](https://img.shields.io/twitter/url/https/twitter.com/langchainai.svg?style=social&label=Follow%20%40LangChainAI)](https://twitter.com/langchainai)
[![](https://dcbadge.vercel.app/api/server/6adMQxSpJS?compact=true&style=flat)](https://discord.gg/6adMQxSpJS)
[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/hwchase17/langchain)
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/hwchase17/langchain)
[![GitHub star chart](https://img.shields.io/github/stars/hwchase17/langchain?style=social)](https://star-history.com/#hwchase17/langchain)
[![Dependency Status](https://img.shields.io/librariesio/github/hwchase17/langchain)](https://libraries.io/github/hwchase17/langchain)
[![Open Issues](https://img.shields.io/github/issues-raw/hwchase17/langchain)](https://github.com/hwchase17/langchain/issues)


Looking for the JS/TS version? Check out [LangChain.js](https://github.com/hwchase17/langchainjs).

**Production Support:** As you move your LangChains into production, we'd love to offer more hands-on support.
Fill out [this form](https://airtable.com/appwQzlErAS2qiP0L/shrGtGaVBVAz7NcV2) to share more about what you're building, and our team will get in touch.

## Quick Install

`pip install langchain`
or
`pip install langsmith && conda install langchain -c conda-forge`

## 🤔 What is this?

Large language models (LLMs) are emerging as a transformative technology, enabling developers to build applications that they previously could not. However, using these LLMs in isolation is often insufficient for creating a truly powerful app - the real power comes when you can combine them with other sources of computation or knowledge.

This library aims to assist in the development of those types of applications. Common examples of these applications include:

**❓ Question Answering over specific documents**

- [Documentation](https://python.langchain.com/docs/use_cases/question_answering/)
- End-to-end Example: [Question Answering over Notion Database](https://github.com/hwchase17/notion-qa)

**💬 Chatbots**

- [Documentation](https://python.langchain.com/docs/use_cases/chatbots/)
- End-to-end Example: [Chat-LangChain](https://github.com/hwchase17/chat-langchain)

**🤖 Agents**

- [Documentation](https://python.langchain.com/docs/modules/agents/)
- End-to-end Example: [GPT+WolframAlpha](https://huggingface.co/spaces/JavaFXpert/Chat-GPT-LangChain)

## 📖 Documentation

Please see [here](https://python.langchain.com) for full documentation on:

- Getting started (installation, setting up the environment, simple examples)
- How-To examples (demos, integrations, helper functions)
- Reference (full API docs)
- Resources (high-level explanation of core concepts)

## 🚀 What can this help with?

There are six main areas that LangChain is designed to help with.
These are, in increasing order of complexity:

**📃 LLMs and Prompts:**

This includes prompt management, prompt optimization, a generic interface for all LLMs, and common utilities for working with LLMs.

**🔗 Chains:**

Chains go beyond a single LLM call and involve sequences of calls (whether to an LLM or a different utility). LangChain provides a standard interface for chains, lots of integrations with other tools, and end-to-end chains for common applications.

**📚 Data Augmented Generation:**

Data Augmented Generation involves specific types of chains that first interact with an external data source to fetch data for use in the generation step. Examples include summarization of long pieces of text and question/answering over specific data sources.

**🤖 Agents:**

Agents involve an LLM making decisions about which Actions to take, taking that Action, seeing an Observation, and repeating that until done. LangChain provides a standard interface for agents, a selection of agents to choose from, and examples of end-to-end agents.

**🧠 Memory:**

Memory refers to persisting state between calls of a chain/agent. LangChain provides a standard interface for memory, a collection of memory implementations, and examples of chains/agents that use memory.

**🧐 Evaluation:**

[BETA] Generative models are notoriously hard to evaluate with traditional metrics. One new way of evaluating them is using language models themselves to do the evaluation. LangChain provides some prompts/chains for assisting in this.

For more information on these concepts, please see our [full documentation](https://python.langchain.com).

## 💁 Contributing

As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.

For detailed information on how to contribute, see [here](.github/CONTRIBUTING.md).

