Skip to main content

LangChain

Langchain orchestrates the LLM pipelines by connecting LLM models to external sources and provides abstractions and tools to interface between user input and output.

nextjs-fastapi-your-chat

Chat with any website using FastAPI, Next.js, and LangChain for seamless integration.

Pipeline Components

  • LLM Models
  • Sources
  • Abstractions
  • Tools

LLM models and components are linked into a pipeline "chain," making it easy for developers to rapidly prototype robust applications

LLM Models

  • OpenAI
  • HuggingFace Hub

Sources

  • Google
  • Wikipedia
  • Notion
  • Wolfram

Abstractions

  • Chains
  • Agents

Tools

Provide an interface for input and output.

LangChain Modules

  1. Model I/O
  2. Data Connection
  3. Memory
  4. Chains
  5. Agents
  6. Callbacks

Problem

Problems solved by LangChain.

  • Most LLMs are not up to date
  • Do not have specific domain knowledge
  • Manual interface is not efficient