This project is a branch of langchain-core on QPython.
What is it?
LangChain Core contains the base abstractions that power the rest of the LangChain ecosystem.
These abstractions are designed to be as modular and simple as possible. Examples of these abstractions include those for language models, document loaders, embedding models, vectorstores, retrievers, and more.
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.
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 LangServe
For more check out the runnable docs. Examples of components that implement the interface include: LLMs, Chat Models, Prompts, Retrievers, Tools, Output Parsers.
You can use LangChain Core objects in two ways:
-
imperative, ie. call them directly, eg.
model.invoke(...) -
declarative, with LangChain Expression Language (LCEL)
-
or a mix of both! eg. one of the steps in your LCEL sequence can be a custom function
| Feature | Imperative | Declarative |
|---|---|---|
| Syntax | All of Python | LCEL |
| Tracing | ✅ – Automatic | ✅ – Automatic |
| Parallel | ✅ – with threads or coroutines | ✅ – Automatic |
| Streaming | ✅ – by yielding | ✅ – Automatic |
| Async | ✅ – by writing async functions | ✅ – Automatic |
⚡️ What is LangChain Expression Language?
LangChain Expression Language (LCEL) is a declarative language for composing LangChain Core runnables into sequences (or DAGs), covering the most common patterns when building with LLMs.
LangChain Core compiles LCEL sequences to an optimized execution plan, with automatic parallelization, streaming, tracing, and async support.
For more check out the LCEL docs.
For more advanced use cases, also check out LangGraph, which is a graph-based runner for cyclic and recursive LLM workflows.
Metadata
Release files for langchain-core-aipy 0.3.47
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langchain_core_aipy-0.3.47.tar.gz | 336.6 kB | Without provenance | Details for langchain_core_aipy-0.3.47.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_core_aipy-0.3.47-py3-none-any.whl | Python 3 | none | any | Details for langchain_core_aipy-0.3.47-py3-none-any.whl |
Total release size: 753.0 kB
Release files / langchain_core_aipy-0.3.47.tar.gz
| Download URL | langchain_core_aipy-0.3.47.tar.gz |
|---|---|
| Size | 336.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
478d88ac22b1a64416bf8b8d34ae9546c73ac39c14fce4eba4c757222f04ca01
|
|
BLAKE2b-256 checksum How to use checksums |
90d5ecdd1fd5602aaf00938eb5fc5877946bb4b2be87651fa8067c8be8a4d08f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.7
|
Release files / langchain_core_aipy-0.3.47-py3-none-any.whl
| Download URL | langchain_core_aipy-0.3.47-py3-none-any.whl |
|---|---|
| Size | 416.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
473538174a2527f5d6d9f2927a74d7d5236acb6c835c3648dc3587cd12ee8f60
|
|
BLAKE2b-256 checksum How to use checksums |
369889988018ac8f85ae8c4ef166ea21ba0a80e468bf3f5dac07f008e5f4c5e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.7
|
Security for langchain-core-aipy 0.3.47
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.