Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@langchain/community

langchain-ai2.8mMIT1.0.0TypeScript support: included

Third-party integrations for LangChain.js

readme

🦜️🧑‍🤝‍🧑 LangChain Community

CI npm License: MIT Twitter

Quick Install

$ pnpm install @langchain/community

This package, along with the main LangChain package, depends on @langchain/core. If you are using this package with other LangChain packages, you should make sure that all of the packages depend on the same instance of @langchain/core. You can do so by adding appropriate field to your project's package.json like this:

{
  "name": "your-project",
  "version": "0.0.0",
  "dependencies": {
    "@langchain/community": "^0.0.0",
    "@langchain/core": "^0.3.0"
  },
  "resolutions": {
    "@langchain/core": "^0.3.0"
  },
  "overrides": {
    "@langchain/core": "^0.3.0"
  },
  "pnpm": {
    "overrides": {
      "@langchain/core": "^0.3.0"
    }
  }
}

The field you need depends on the package manager you're using, but we recommend adding a field for the common yarn, npm, and pnpm to maximize compatibility.

🤔 What is this?

LangChain Community contains third-party integrations that implement the base interfaces defined in LangChain Core, making them ready-to-use in any LangChain application.

LangChain Stack

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

For detailed information on how to contribute, see here.

changelog

@langchain/community

1.0.0

This release updates the package for compatibility with LangChain v1.0. See the v1.0 release notes for details on what's new.

0.3.57

Patch Changes

  • fd4691f: use keyEncoder instead of insecure cache key getter
  • Updated dependencies [fd4691f]
  • Updated dependencies [2f19cd5]
  • Updated dependencies [d38e9d6]
  • Updated dependencies [3c94076]

0.3.56

Patch Changes

  • 6da726f: feat(@langchain/community): add sagemaker endpoint - embedding support
  • 28dd44f: chore(couchbase): Deprecate CouchbaseVectorStore and create CouchbaseSearchVectorStore
  • 9adccfe: chore(@langchain/community): remove Dria retriever
  • 0a640ad: feat(langchain-community): add custom schema option for neon vector store
  • 940e087: fix(astra): replace deprecated 'namespace' param name
  • 8ac8edd: add support for advanced metadata filters in similarity search
  • e9d1136: create index aurora dsql
  • e0b48fd: fix(community): improve TogetherAI error handling for chat models
  • c10ea3e: allow any chars in delimited identifiers in hanavector
  • 9adccfe: chore(@langchain/community): remove Dria retriever
  • Updated dependencies [41bd944]
  • Updated dependencies [6019a7d]
  • Updated dependencies [54f542c]
  • Updated dependencies [707a768]
  • Updated dependencies [caf5579]
  • Updated dependencies [d60f40f]

0.3.55

Patch Changes

  • f201ab8: bump firebase-admin dependency (#8861)
  • f201ab8: use URL encoding for paths in github document laoder (#8860)

0.3.54

Patch Changes

  • 4a3f5af: Update import_constants.ts (#8747)
  • 8f9c617: postgres indexes getTime returning NaN due to missing alias
  • 4d26533: BM25Retriever: escape regex metacharacters in getTermFrequency to prevent crashes
  • 9f491d6: milvus: Fix upsert operations when autoId is false
  • 9649f20: add jira issue title to metadata for documents
  • 9543ba1: add personalAccessToken to jira loader
  • Updated dependencies [e0bd88c]
  • Updated dependencies [4a3f5af]
  • Updated dependencies [424360b]