Skip to main content
Ctrl+K

🦜🔗 LangChain 0.0.107

Getting Started

  • Quickstart Guide

Modules

  • Prompt Templates
    • Getting Started
    • Key Concepts
    • How-To Guides
      • Create a custom prompt template
      • Create a custom example selector
      • Provide few shot examples to a prompt
      • Prompt Serialization
      • Example Selectors
    • Reference
      • PromptTemplates
      • Example Selector
  • LLMs
    • Getting Started
    • Key Concepts
    • How-To Guides
      • Generic Functionality
        • Custom LLM
        • Fake LLM
        • LLM Caching
        • LLM Serialization
        • Token Usage Tracking
      • Integrations
        • AI21
        • Aleph Alpha
        • Anthropic
        • Azure OpenAI LLM Example
        • Banana
        • CerebriumAI LLM Example
        • Cohere
        • DeepInfra LLM Example
        • ForefrontAI LLM Example
        • GooseAI LLM Example
        • Hugging Face Hub
        • Manifest
        • Modal
        • OpenAI
        • Petals LLM Example
        • PromptLayer OpenAI
        • Self-Hosted Models via Runhouse
        • StochasticAI
        • Writer
      • Async API for LLM
      • Streaming with LLMs
    • Reference
  • Document Loaders
    • Key Concepts
    • How To Guides
      • CoNLL-U
      • Airbyte JSON
      • AZLyrics
      • College Confidential
      • Copy Paste
      • CSV Loader
      • Directory Loader
      • Email
      • EverNote
      • Facebook Chat
      • GCS Directory
      • GCS File Storage
      • GitBook
      • Google Drive
      • Gutenberg
      • Hacker News
      • HTML
      • iFixit
      • Images
      • IMSDb
      • Markdown
      • Microsoft Word
      • Notebook
      • Notion
      • Obsidian
      • Online PDF
      • PDF
      • PowerPoint
      • ReadTheDocs Documentation
      • Roam
      • s3 Directory
      • s3 File
      • Subtitle Files
      • Telegram
      • Unstructured File Loader
      • URL
      • Web Base
      • Word Documents
      • YouTube
  • Utils
    • Key Concepts
    • Generic Utilities
      • Bash
      • Bing Search
      • Google Search
      • Google Serper API
      • IFTTT WebHooks
      • Python REPL
      • Requests
      • SearxNG Search API
      • SerpAPI
      • Wolfram Alpha
    • Reference
      • Python REPL
      • SerpAPI
      • SearxNG Search
      • Docstore
      • Text Splitter
      • Embeddings
      • VectorStores
  • Indexes
    • Getting Started
    • Key Concepts
    • How To Guides
      • Embeddings
      • Hypothetical Document Embeddings
      • Text Splitter
      • VectorStores
      • AtlasDB
      • Chroma
      • Deep Lake
      • ElasticSearch
      • FAISS
      • Milvus
      • OpenSearch
      • Pinecone
      • Qdrant
      • Weaviate
      • Analyze Document
      • Chat Vector DB
      • Graph QA
      • Question Answering with Sources
      • Question Answering
      • Summarization
      • Vector DB Question/Answering
      • VectorDB Question Answering with Sources
      • Vector DB Text Generation
  • Chains
    • Getting Started
    • How-To Guides
      • Generic Chains
        • Loading from LangChainHub
        • LLM Chain
        • Sequential Chains
        • Serialization
        • Transformation Chain
      • Utility Chains
        • API Chains
        • Self-Critique Chain with Constitutional AI
        • BashChain
        • LLMCheckerChain
        • LLM Math
        • LLMRequestsChain
        • LLMSummarizationCheckerChain
        • Moderation
        • PAL
        • SQLite example
      • Async API for Chain
    • Key Concepts
    • Reference
  • Agents
    • Getting Started
    • Key Concepts
    • How-To Guides
      • Agents and Vectorstores
      • Async API for Agent
      • Custom Agent
      • Defining Custom Tools
      • Intermediate Steps
      • Loading from LangChainHub
      • Max Iterations
      • Multi Input Tools
      • Search Tools
      • Serialization
      • CSV Agent
      • JSON Agent
      • OpenAPI Agent
      • Pandas Dataframe Agent
      • Python Agent
      • SQL Database Agent
      • Vectorstore Agent
      • MRKL
      • MRKL Chat
      • ReAct
      • Self Ask With Search
    • Reference
  • Memory
    • Getting Started
    • Key Concepts
    • How-To Guides
      • ConversationBufferMemory
      • ConversationBufferWindowMemory
      • Entity Memory
      • Conversation Knowledge Graph Memory
      • ConversationSummaryMemory
      • ConversationSummaryBufferMemory
      • Adding Memory To an LLMChain
      • Adding Memory to a Multi-Input Chain
      • Adding Memory to an Agent
      • ChatGPT Clone
      • Conversation Agent
      • Conversational Memory Customization
      • Custom Memory
      • Multiple Memory
  • Chat
    • Getting Started
    • Key Concepts
    • How-To Guides
      • Agent
      • Chat Vector DB
      • Few Shot Examples
      • Memory
      • PromptLayer ChatOpenAI
      • Streaming
      • Vector DB Question/Answering
      • VectorDB Question Answering with Sources

Use Cases

  • Agents
  • Chatbots
  • Generate Examples
  • Data Augmented Generation
  • Question Answering
  • Summarization
  • Evaluation
    • Data Augmented Question Answering
    • Using Hugging Face Datasets
    • Question Answering
  • Model Comparison

Reference

  • Installation
  • Integrations
  • API References
    • Prompts
      • PromptTemplates
      • Example Selector
    • Utilities
      • Python REPL
      • SerpAPI
      • SearxNG Search
      • Docstore
      • Text Splitter
      • Embeddings
      • VectorStores
    • Chains
    • Agents

Ecosystem

  • LangChain Ecosystem
    • AI21 Labs
    • AtlasDB
    • Banana
    • CerebriumAI
    • Chroma
    • Cohere
    • DeepInfra
    • Deep Lake
    • ForefrontAI
    • Google Search Wrapper
    • Google Serper Wrapper
    • GooseAI
    • Graphsignal
    • Hazy Research
    • Helicone
    • Hugging Face
    • Modal
    • NLPCloud
    • OpenAI
    • OpenSearch
    • Petals
    • Pinecone
    • PromptLayer
    • Runhouse
    • SearxNG Search API
    • SerpAPI
    • StochasticAI
    • Unstructured
    • Weaviate
    • Wolfram Alpha Wrapper
    • Writer

Additional Resources

  • LangChainHub
  • Glossary
  • LangChain Gallery
  • Deployments
  • Tracing
  • Discord
  • 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.

GPT Index

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.

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.

previous

Glossary

next

Deployments

Contents
  • Open Source
    • Misc. Colab Notebooks
  • Proprietary

By Harrison Chase

© Copyright 2022, Harrison Chase.