

Your corpus may be a mix of text files, PDF documents, HTML web pages, images, and more. Suppose you have a large corpus of text on economics that you'd like to build an NLP app over. LangChain’s Document Loaders and Utils modules facilitate connecting to sources of data and computation, respectively. To that end, LangChain provides prompt templates that you can use to format inputs and a lot of other utilities. Even in a ChatGPT session, the answer is only as helpful as the prompt. Prompts are at the core of any NLP application. Which can then be used to generate a response. You may need to read in user input which is then used to construct the prompt. However, as the name LangChain suggests, you can chain together LLM calls depending on specific tasks.įor example, you may need to get data from a specific URL, summarize the returned text, and answer questions using the generated summary. It is essentially a wrapper around a large language model that helps use the functionality and capability of a specific large language model.Īs mentioned, LLM is the fundamental unit in LangChain. LLM is the fundamental component of LangChain. Next let's take a look at some of the modules in LangChain: Agents that solve specific like math and reasoning puzzles.Apps that query databases to fetch info and then process them.

Summarization and Question answering over specific domains.Interesting applications you can build using LangChain include (but are not limited to): LangChain Github Star History | Generated on You can connect to various data and computation sources, and build applications that perform NLP tasks on domain-specific data sources, private repositories, and much more.Īs of writing this article (in March 2023), the LangChain GitHub repository has over 14,000 stars with more than 270 contributors from across the world. LangChain, created by Harrison Chase, is a Python library that provides out-of-the-box support to build NLP applications using LLMs. We’ll also get our feet wet by building a simple question-answering app with LangChain. In this guide, we’ll explore what LangChain is and what you can build with it.
