Skip to main content
Ctrl+K

🦜🔗 LangChain 0.0.149

Getting Started

  • Quickstart Guide

Modules

  • Models
    • LLMs
      • Getting Started
      • Generic Functionality
        • How to use the async API for LLMs
        • How to write a custom LLM wrapper
        • How (and why) to use the fake LLM
        • How to cache LLM calls
        • How to serialize LLM classes
        • How to stream LLM and Chat Model responses
        • How to track token usage
      • Integrations
        • AI21
        • Aleph Alpha
        • Anthropic
        • Azure OpenAI
        • Banana
        • CerebriumAI
        • Cohere
        • DeepInfra
        • ForefrontAI
        • GooseAI
        • GPT4All
        • Hugging Face Hub
        • Hugging Face Local Pipelines
        • Llama-cpp
        • Manifest
        • Modal
        • NLP Cloud
        • OpenAI
        • Petals
        • PredictionGuard
        • PromptLayer OpenAI
        • Replicate
        • Runhouse
        • SageMakerEndpoint
        • StochasticAI
        • Writer
      • Reference
    • Chat Models
      • Getting Started
      • How-To Guides
        • How to use few shot examples
        • How to stream responses
      • Integrations
        • Azure
        • OpenAI
        • PromptLayer ChatOpenAI
    • Text Embedding Models
      • Aleph Alpha
      • AzureOpenAI
      • Cohere
      • Fake Embeddings
      • Hugging Face Hub
      • InstructEmbeddings
      • Jina
      • Llama-cpp
      • OpenAI
      • SageMaker Endpoint Embeddings
      • Self Hosted Embeddings
      • Sentence Transformers Embeddings
      • TensorflowHub
  • Prompts
    • Prompt Templates
      • Getting Started
      • How-To Guides
        • How to create a custom prompt template
        • How to create a prompt template that uses few shot examples
        • How to work with partial Prompt Templates
        • How to serialize prompts
      • Reference
        • PromptTemplates
        • Example Selector
        • Output Parsers
    • Chat Prompt Template
    • Example Selectors
      • How to create a custom example selector
      • LengthBased ExampleSelector
      • Maximal Marginal Relevance ExampleSelector
      • NGram Overlap ExampleSelector
      • Similarity ExampleSelector
    • Output Parsers
      • Output Parsers
      • CommaSeparatedListOutputParser
      • OutputFixingParser
      • PydanticOutputParser
      • RetryOutputParser
      • Structured Output Parser
  • Indexes
    • Getting Started
    • Document Loaders
      • CoNLL-U
      • Airbyte JSON
      • Apify Dataset
      • AZLyrics
      • Azure Blob Storage Container
      • Azure Blob Storage File
      • BigQuery Loader
      • Bilibili
      • Blackboard
      • Blockchain Document Loader
      • ChatGPT Data Loader
      • College Confidential
      • Confluence
      • Copy Paste
      • CSV Loader
      • DataFrame Loader
      • Diffbot
      • Directory Loader
      • Discord
      • DuckDB Loader
      • Email
      • EPubs
      • EverNote
      • Facebook Chat
      • Figma
      • GCS Directory
      • GCS File Storage
      • Git
      • GitBook
      • Google Drive
      • Gutenberg
      • Hacker News
      • HTML
      • HuggingFace dataset loader
      • iFixit
      • Images
      • Image captions
      • IMSDb
      • Markdown
      • Notebook
      • Notion
      • Notion DB Loader
      • Obsidian
      • PDF
      • PowerPoint
      • ReadTheDocs Documentation
      • Roam
      • s3 Directory
      • s3 File
      • Sitemap Loader
      • Slack (Local Exported Zipfile)
      • Subtitle Files
      • Telegram
      • Twitter
      • Unstructured File Loader
      • URL
      • Web Base
      • WhatsApp Chat
      • Word Documents
      • YouTube
    • Text Splitters
      • Getting Started
      • Character Text Splitter
      • Hugging Face Length Function
      • Latex Text Splitter
      • Markdown Text Splitter
      • NLTK Text Splitter
      • Python Code Text Splitter
      • RecursiveCharacterTextSplitter
      • Spacy Text Splitter
      • tiktoken (OpenAI) Length Function
      • TiktokenText Splitter
    • Vectorstores
      • Getting Started
      • AnalyticDB
      • Annoy
      • AtlasDB
      • Chroma
      • Deep Lake
      • ElasticSearch
      • FAISS
      • Milvus
      • MyScale
      • OpenSearch
      • PGVector
      • Pinecone
      • Qdrant
      • Redis
      • SupabaseVectorStore
      • Weaviate
      • Zilliz
    • Retrievers
      • ChatGPT Plugin Retriever
      • Contextual Compression Retriever
      • Databerry
      • ElasticSearch BM25
      • Metal
      • Pinecone Hybrid Search
      • SVM Retriever
      • TF-IDF Retriever
      • Time Weighted VectorStore Retriever
      • VectorStore Retriever
      • Weaviate Hybrid Search
  • Memory
    • Getting Started
    • How-To Guides
      • ConversationBufferMemory
      • ConversationBufferWindowMemory
      • Entity Memory
      • Conversation Knowledge Graph Memory
      • ConversationSummaryMemory
      • ConversationSummaryBufferMemory
      • ConversationTokenBufferMemory
      • VectorStore-Backed Memory
      • How to add Memory to an LLMChain
      • How to add memory to a Multi-Input Chain
      • How to add Memory to an Agent
      • Adding Message Memory backed by a database to an Agent
      • How to customize conversational memory
      • How to create a custom Memory class
      • Motörhead Memory
      • How to use multiple memory classes in the same chain
      • Postgres Chat Message History
      • Redis Chat Message History
  • Chains
    • Getting Started
    • How-To Guides
      • Async API for Chain
      • Loading from LangChainHub
      • LLM Chain
      • Sequential Chains
      • Serialization
      • Transformation Chain
      • Analyze Document
      • Chat Over Documents with Chat History
      • Graph QA
      • Hypothetical Document Embeddings
      • Question Answering with Sources
      • Question Answering
      • Summarization
      • Retrieval Question/Answering
      • Retrieval Question Answering with Sources
      • Vector DB Text Generation
      • API Chains
      • Self-Critique Chain with Constitutional AI
      • BashChain
      • LLMCheckerChain
      • LLM Math
      • LLMRequestsChain
      • LLMSummarizationCheckerChain
      • Moderation
      • OpenAPI Chain
      • PAL
      • SQL Chain example
    • Reference
  • Agents
    • Getting Started
    • Tools
      • Getting Started
      • Defining Custom Tools
      • Multi-Input Tools
      • Tool Input Schema
      • Apify
      • Arxiv API
      • Bash
      • Bing Search
      • ChatGPT Plugins
      • DuckDuckGo Search
      • Google Places
      • Google Search
      • Google Serper API
      • Gradio Tools
      • Human as a tool
      • IFTTT WebHooks
      • OpenWeatherMap API
      • Python REPL
      • Requests
      • Search Tools
      • SearxNG Search API
      • SerpAPI
      • Wikipedia API
      • Wolfram Alpha
      • Zapier Natural Language Actions API
    • Agents
      • Agent Types
      • Custom Agent
      • Custom LLM Agent
      • Custom LLM Agent (with a ChatModel)
      • Custom MRKL Agent
      • Custom MultiAction Agent
      • Custom Agent with Tool Retrieval
      • Conversation Agent (for Chat Models)
      • Conversation Agent
      • MRKL
      • MRKL Chat
      • ReAct
      • Self Ask With Search
    • Toolkits
      • CSV Agent
      • Jira
      • JSON Agent
      • OpenAPI agents
      • Natural Language APIs
      • Pandas Dataframe Agent
      • PowerBI Dataset Agent
      • Python Agent
      • SQL Database Agent
      • Vectorstore Agent
    • Agent Executors
      • How to combine agents and vectorstores
      • How to use the async API for Agents
      • How to create ChatGPT Clone
      • How to access intermediate steps
      • How to cap the max number of iterations
      • How to use a timeout for the agent
      • How to add SharedMemory to an Agent and its Tools

Use Cases

  • Personal Assistants (Agents)
  • Autonomous Agents
  • Agent Simulations
  • Question Answering over Docs
  • Chatbots
  • Querying Tabular Data
  • Code Understanding
  • Interacting with APIs
  • Summarization
  • Extraction
  • Evaluation
    • Agent Benchmarking: Search + Calculator
    • Agent VectorDB Question Answering Benchmarking
    • Benchmarking Template
    • Data Augmented Question Answering
    • Using Hugging Face Datasets
    • LLM Math
    • Evaluating an OpenAPI Chain
    • Question Answering Benchmarking: Paul Graham Essay
    • Question Answering Benchmarking: State of the Union Address
    • QA Generation
    • Question Answering
    • SQL Question Answering Benchmarking: Chinook

Reference

  • Installation
  • Integrations
  • API References
    • Models
      • LLMs
      • Chat Models
      • Embeddings
    • Prompts
      • PromptTemplates
      • Example Selector
      • Output Parsers
    • Indexes
      • Docstore
      • Text Splitter
      • Document Loaders
      • Vector Stores
      • Retrievers
      • Document Compressors
      • Document Transformers
    • Memory
    • Chains
    • Agents
      • Agents
      • Tools
      • Agent Toolkits
    • Utilities
    • Experimental Modules

Ecosystem

  • LangChain Ecosystem
    • AI21 Labs
    • Aim
    • AnalyticDB
    • Apify
    • AtlasDB
    • Banana
    • CerebriumAI
    • Chroma
    • ClearML Integration
    • Cohere
    • Comet
    • Databerry
    • DeepInfra
    • Deep Lake
    • ForefrontAI
    • Google Search Wrapper
    • Google Serper Wrapper
    • GooseAI
    • GPT4All
    • Graphsignal
    • Hazy Research
    • Helicone
    • Hugging Face
    • Jina
    • Llama.cpp
    • Milvus
    • Modal
    • MyScale
    • NLPCloud
    • OpenAI
    • OpenSearch
    • Petals
    • PGVector
    • Pinecone
    • Prediction Guard
    • PromptLayer
    • Qdrant
    • Replicate
    • Runhouse
    • RWKV-4
    • SearxNG Search API
    • SerpAPI
    • StochasticAI
    • Unstructured
    • Weights & Biases
    • Weaviate
    • Wolfram Alpha Wrapper
    • Writer
    • Yeager.ai
    • Zilliz

Additional Resources

  • LangChainHub
  • Glossary
  • LangChain Gallery
  • Deployments
  • Tracing
  • Discord
  • YouTube
  • Production Support
  • .rst

LangChain Gallery

Contents

  • Open Source
    • Misc. Colab Notebooks
  • Proprietary

LangChain Gallery#

Lots of people have built some pretty awesome stuff with LangChain. This is a collection of our favorites. If you see any other demos that you think we should highlight, be sure to let us know!

Open Source#

HowDoI.ai

This is an experiment in building a large-language-model-backed chatbot. It can hold a conversation, remember previous comments/questions, and answer all types of queries (history, web search, movie data, weather, news, and more).

YouTube Transcription QA with Sources

An end-to-end example of doing question answering on YouTube transcripts, returning the timestamps as sources to legitimize the answer.

QA Slack Bot

This application is a Slack Bot that uses Langchain and OpenAI’s GPT3 language model to provide domain specific answers. You provide the documents.

ThoughtSource

A central, open resource and community around data and tools related to chain-of-thought reasoning in large language models.

LLM Strategy

This Python package adds a decorator llm_strategy that connects to an LLM (such as OpenAI’s GPT-3) and uses the LLM to “implement” abstract methods in interface classes. It does this by forwarding requests to the LLM and converting the responses back to Python data using Python’s @dataclasses.

Zero-Shot Corporate Lobbyist

A notebook showing how to use GPT to help with the work of a corporate lobbyist.

Dagster Documentation ChatBot

A jupyter notebook demonstrating how you could create a semantic search engine on documents in one of your Google Folders

Google Folder Semantic Search

Build a GitHub support bot with GPT3, LangChain, and Python.

Talk With Wind

Record sounds of anything (birds, wind, fire, train station) and chat with it.

ChatGPT LangChain

This simple application demonstrates a conversational agent implemented with OpenAI GPT-3.5 and LangChain. When necessary, it leverages tools for complex math, searching the internet, and accessing news and weather.

GPT Math Techniques

A Hugging Face spaces project showing off the benefits of using PAL for math problems.

GPT Political Compass

Measure the political compass of GPT.

Notion Database Question-Answering Bot

Open source GitHub project shows how to use LangChain to create a chatbot that can answer questions about an arbitrary Notion database.

LlamaIndex

LlamaIndex (formerly GPT Index) is a project consisting of a set of data structures that are created using GPT-3 and can be traversed using GPT-3 in order to answer queries.

Grover’s Algorithm

Leveraging Qiskit, OpenAI and LangChain to demonstrate Grover’s algorithm

QNimGPT

A chat UI to play Nim, where a player can select an opponent, either a quantum computer or an AI

ReAct TextWorld

Leveraging the ReActTextWorldAgent to play TextWorld with an LLM!

Fact Checker

This repo is a simple demonstration of using LangChain to do fact-checking with prompt chaining.

DocsGPT

Answer questions about the documentation of any project

Misc. Colab Notebooks#

Wolfram Alpha in Conversational Agent

Give ChatGPT a WolframAlpha neural implant

Tool Updates in Agents

Agent improvements (6th Jan 2023)

Conversational Agent with Tools (Langchain AGI)

Langchain AGI (23rd Dec 2022)

Proprietary#

Daimon

A chat-based AI personal assistant with long-term memory about you.

Summarize any file with AI

Summarize not only long docs, interview audio or video files quickly, but also entire websites and YouTube videos. Share or download your generated summaries to collaborate with others, or revisit them at any time! Bonus: @anysummary on Twitter will also summarize any thread it is tagged in.

AI Assisted SQL Query Generator

An app to write SQL using natural language, and execute against real DB.

Clerkie

Stack Tracing QA Bot to help debug complex stack tracing (especially the ones that go multi-function/file deep).

Sales Email Writer

By Raza Habib, this demo utilizes LangChain + SerpAPI + HumanLoop to write sales emails. Give it a company name and a person, this application will use Google Search (via SerpAPI) to get more information on the company and the person, and then write them a sales message.

Question-Answering on a Web Browser

By Zahid Khawaja, this demo utilizes question answering to answer questions about a given website. A followup added this for YouTube videos, and then another followup added it for Wikipedia.

Mynd

A journaling app for self-care that uses AI to uncover insights and patterns over time.

previous

Glossary

next

Deployments

Contents
  • Open Source
    • Misc. Colab Notebooks
  • Proprietary

By Harrison Chase

© Copyright 2023, Harrison Chase.

Last updated on Jun 27, 2023.