🍎️ Aibaba AI Core Foundation
Installation
pip install aibaba_ai_core
Overview
Aibaba AI Core provides fundamental building blocks that serve as the foundation for the entire Aibaba AI ecosystem.
These foundational components are intentionally kept minimal and modular. They include essential abstractions for various components such as language models, document processing, embedding systems, vector databases, retrieval mechanisms, and more.
By establishing these standard interfaces, any provider can implement them and seamlessly integrate with the broader Aibaba AI ecosystem.
For comprehensive documentation, visit the API reference.
1️⃣ Primary Interface: Runnables
Runnables form the backbone of Aibaba AI Core. This interface is implemented by most components, providing:
- Unified execution methods (invoke, batch, stream, etc.)
- Built-in support for error handling, fallbacks, schemas, and runtime configuration
- Integration with Aibaba AI Build for deployment
Learn more in the runnable documentation. Key components implementing this interface include: LLMs, Chat Models, Prompts, Retrievers, Tools, and Output Parsers.
Two approaches to using Aibaba AI Core:
-
Direct (Imperative): Straight function calls like
model.invoke(...) -
Compositional (Declarative): Using Aibaba AI Expression Language (LCEL)
-
Hybrid: Combine both approaches by including custom functions within LCEL sequences
| Capability | Direct Method | Compositional Method |
|---|---|---|
| Code Style | Standard Python | LCEL |
| Tracing | ✅ – Built-in | ✅ – Built-in |
| Parallel | ✅ – Via threads/coroutines | ✅ – Automatic |
| Streaming | ✅ – Through yield | ✅ – Automatic |
| Async | ✅ – Using async/await | ✅ – Automatic |
⚡️ Understanding LCEL
Aibaba AI Expression Language (LCEL) is a declarative approach for combining Aibaba AI Core components into sequences or directed acyclic graphs (DAGs), addressing common LLM integration patterns.
LCEL sequences are automatically optimized for execution, featuring parallel processing, streaming capabilities, tracing, and asynchronous operations.
Explore more in the LCEL documentation.
For complex workflows requiring cycles or recursion, consider LangGraph.
📕 Version Management
Current version: 0.1.x
As the foundational layer of Aibaba AI, we maintain strict version control with advance notifications of changes. The aibaba_ai_core.beta module is exempt from this policy to allow rapid innovation.
Version increment guidelines:
Minor versions (0.x.0):
- Breaking changes to public APIs outside
aibaba_ai_core.beta
Patch versions (0.0.x):
- Bug fixes
- Feature additions
- Internal interface changes
aibaba_ai_core.betamodifications
💁 Community Participation
We actively encourage contributions to this open-source project, whether through new features, infrastructure improvements, or documentation enhancements.
See our Contributing Guide for details.
⛰️ Benefits of Aibaba AI Core
As the foundation for the entire Aibaba AI ecosystem, building on Aibaba AI Core offers several advantages:
- Independent Components: Built around provider-agnostic, standalone abstractions
- Reliable API: Committed to stable versioning with clear communication about changes
- Production-Ready: Extensively tested and widely deployed across the LLM ecosystem
- Open Development: Active community participation and contribution-friendly environment
Metadata
Release files for aibaba_ai_core 0.3.33
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aibaba_ai_core-0.3.33.tar.gz | 324.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aibaba_ai_core-0.3.33-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 736.7 kB
Release files / aibaba_ai_core-0.3.33.tar.gz
| Download URL | aibaba_ai_core-0.3.33.tar.gz |
|---|---|
| Size | 324.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2421baf8452af54f58189030592a54f74b7fad217e0f75382c1ddfd654be9cc3
|
|
BLAKE2b-256 checksum How to use checksums |
7f8baf6e7961a364bb626d41bdc0ec7578c5c058b75550005033ef7624b8cba6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.10.12 Linux/5.15.167.4-microsoft-standard-WSL2
|
Release files / aibaba_ai_core-0.3.33-py3-none-any.whl
| Download URL | aibaba_ai_core-0.3.33-py3-none-any.whl |
|---|---|
| Size | 412.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ed579700eb7f8cd0c62b9a368b776db680e780f12de5c320779d31cb3d15b99
|
|
BLAKE2b-256 checksum How to use checksums |
53213c53273a72961e897ca79fc827a25ce617ee0b5de84b37d606c82d5f5eaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.10.12 Linux/5.15.167.4-microsoft-standard-WSL2
|