This package has been deprecated

Author message:

This fork is no longer maintained.

@readme/langchain
TypeScript icon, indicating that this package has built-in type declarations

0.0.181-beta.0 • Public • Published

🦜️🔗 LangChain.js

⚡ Building applications with LLMs through composability ⚡

CI npm License: MIT Twitter Open in Dev Containers

Looking for the Python version? Check out LangChain.

To help you ship LangChain apps to production faster, check out LangSmith. LangSmith is a unified developer platform for building, testing, and monitoring LLM applications. Fill out this form to get off the waitlist or speak with our sales team

Quick Install

yarn add langchain

import { OpenAI } from "langchain/llms/openai";

Supported Environments

LangChain is written in TypeScript and can be used in:

  • Node.js (ESM and CommonJS) - 18.x, 19.x, 20.x
  • Cloudflare Workers
  • Vercel / Next.js (Browser, Serverless and Edge functions)
  • Supabase Edge Functions
  • Browser
  • Deno

🤔 What is this?

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

This library is aimed at assisting in the development of those types of applications.

📖 Full Documentation

For full documentation of prompts, chains, agents and more, please see here.

Relationship with Python LangChain

This is built to integrate as seamlessly as possible with the LangChain Python package. Specifically, this means all objects (prompts, LLMs, chains, etc) are designed in a way where they can be serialized and shared between languages.

The LangChainHub is a central place for the serialized versions of these prompts, chains, and agents.

💁 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 infra, or better documentation.

Check out our contributing guidelines for instructions on how to contribute.

Package Sidebar

Install

npm i @readme/langchain

Weekly Downloads

1

Version

0.0.181-beta.0

License

MIT

Unpacked Size

7.53 MB

Total Files

2369

Last publish

Collaborators

  • dannobytes
  • dashron
  • domharrington
  • gkoberger
  • gratcliff
  • iliast
  • jonursenbach
  • kanadgupta
  • mjcuva
  • rafegoldberg