Building applications with LLMs through composability
Project description
🦜🍎️ LangChain Core
Quick Install
pip install langchain-core
What is it?
LangChain Core contains the base abstractions that power the the LangChain ecosystem.
These abstractions are designed to be as modular and simple as possible.
The benefit of having these abstractions is that any provider can implement the required interface and then easily be used in the rest of the LangChain ecosystem.
For full documentation see the API reference.
⛰️ Why build on top of LangChain Core?
The LangChain ecosystem is built on top of langchain-core
. Some of the benefits:
- Modularity: We've designed Core around abstractions that are independent of each other, and not tied to any specific model provider.
- Stability: We are committed to a stable versioning scheme, and will communicate any breaking changes with advance notice and version bumps.
- Battle-tested: Core components have the largest install base in the LLM ecosystem, and are used in production by many companies.
1️⃣ Core Interface: Runnables
The concept of a Runnable
is central to LangChain Core – it is the interface that most LangChain Core components implement, giving them
- A common invocation interface (
invoke()
,batch()
,stream()
, etc.) - Built-in utilities for retries, fallbacks, schemas and runtime configurability
- Easy deployment with LangGraph
For more check out the Runnable
docs. Examples of components that implement the interface include: Chat Models, Tools, Retrievers, and Output Parsers.
📕 Releases & Versioning
As langchain-core
contains the base abstractions and runtime for the whole LangChain ecosystem, we will communicate any breaking changes with advance notice and version bumps. The exception for this is anything in langchain_core.beta
. The reason for langchain_core.beta
is that given the rate of change of the field, being able to move quickly is still a priority, and this module is our attempt to do so.
Minor version increases will occur for:
- Breaking changes for any public interfaces NOT in
langchain_core.beta
Patch version increases will occur for:
- Bug fixes
- New features
- Any changes to private interfaces
- Any changes to
langchain_core.beta
💁 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 the Contributing Guide.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file langchain_core-0.3.76.tar.gz
.
File metadata
- Download URL: langchain_core-0.3.76.tar.gz
- Upload date:
- Size: 573.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
71136a122dd1abae2c289c5809d035cf12b5f2bb682d8a4c1078cd94feae7419
|
|
MD5 |
c3758005a43c730bb09941f9240a1be0
|
|
BLAKE2b-256 |
4f4d5e2ea7754ee0a1f524c412801c6ba9ad49318ecb58b0d524903c3d9efe0a
|
File details
Details for the file langchain_core-0.3.76-py3-none-any.whl
.
File metadata
- Download URL: langchain_core-0.3.76-py3-none-any.whl
- Upload date:
- Size: 447.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
46e0eb48c7ac532432d51f8ca1ece1804c82afe9ae3dcf027b867edadf82b3ec
|
|
MD5 |
ef43ea8f29c3b80e4f504c6349faf9e1
|
|
BLAKE2b-256 |
77b5501c0ffcb09c734457ceaa86bc7b1dd37b6a261147bd653add03b838aacb
|