Controller-Embedded Language Interactions - facilitates the entire lifecycle of document processing, from pre-processing and embedding to post-monitoring and quality assessment.
Project description
CELI: A Framework for Controller-Embedded Language (Model) Interactions
CELI (Controller-Embedded Language (Model) Interactions, pronounced 'Kelly') is a framework that integrates LLM controllers to enhance and automate a wide range of tasks and processes. It offers:
- 🛠️ Versatile Application: Handles diverse tasks such as automated document generation, data pipelines, building robust software, and more.
- 🧠 Intelligent Automation: Empowers users to strategically integrate LLMs into complex projects.
- 🔄 Dynamic Adaptability: Adjusts strategies in real-time based on context and feedback.
- 📈 Scalable Architecture: Efficiently handles projects of all sizes, from quick scripts to enterprise-level applications.
- 🔧 Customizable Core: Allows developers to tailor CELI's capabilities to specific industry needs.
Whether you're automating document generation, streamlining complex data processing pipelines, or hardening software applications, CELI provides a flexible, powerful framework to enhance your productivity.
🔗 Join our Discord | 🔗 Read our Docs
Important: CELI is currently in alpha. For support, join our Discord server or submit an issue on this GitHub repo.
Table of Contents
- Introduction
- Quick Start
- CELI Overview
- What is CELI?
- Discord Server
- Documentation
- Contributing
- License
Quick Start
Prerequisites
- Python 3.10, 3.11 or 3.12
- pip
Installation
pip install celi-framework
Run a Simple Demo (no LLM-setup required):
python -m celi_framework.main \
--job-description=celi_framework.examples.human_eval.job_description.job_description \
--tool-config='{"single_example":"HumanEval/3"}' \
--simulate-live
This example simulates using CELI to solve problem #3 of the HumanEval benchmark programming problem set. It uses
cached versions of the LLM outputs so it doesn't require an API key or make any paid LLM calls on your behalf. The
result will be put in the target/drafts
directory.
Running this demo should take a few minutes. You will be able to see how CELI tackles the problem and the LLM calls it makes, along with the responses.
Explore the Results
Check the output in the target/drafts
directory.
Run the Example Live
The code above uses a cached version of the LLM results. To meaningfully run CELI on anything new, you will need to make new LLM calls, which will require an OpenAI API key (or your own local LLM; see LLM Support).
python -m celi_framework.main \
--job-description=celi_framework.examples.human_eval.job_description.job_description \
--openai-api-key=<Insert your OpenAI API key here> \
Again, you can check your output in the target/drafts
directory.
CELI Overview
Core Modules
Located in the celi_framework.core
package, the following essential core modules facilitate CELI's primary operations:
- Processor: Manages and orchestrates the drafting of documents using language models, acting as the core of the CELI system.
- Monitor: Observes and evaluates the performance of the ProcessRunner, ensuring quality and efficiency in automated tasks.
- Job Description: Manages a comprehensive list of user-defined job descriptions that guide how tasks are executed.
- Tools: Provides mechanisms for CELI to interact with external systems and can be customized to suit specific use cases.
Example Use Cases
For practical applications and demonstrations, explore the celi_framework.examples
package here.
Creating Your Own Project Using CELI
Users extend the CELI framework by defining their own job descriptions and tools. These user-defined modules leverage and extend the functionalities of the core modules. This allows for a high degree of customization and tailoring to specific needs:
- User-Defined Job Descriptions: Users can create unique job descriptions that specify detailed instructions and operational steps, ensuring that automated processes align closely with project requirements.
- Custom Tool Implementations: Developers can implement custom tools by importing core modules and utilizing their functionalities. These tools can be adapted to integrate seamlessly with existing systems or to introduce new capabilities.
For more detailed instructions see the Documentation here.
What is CELI?
CELI (Controller-Embedded Language Interactions) is a framework that automates complex projects using Large Language Models (LLMs). It decomposes projects into sets of tasks and utilizes LLM-directed controller logic for execution. Key features include:
🔄 Dynamic Workflow Management
- Supports complex workflows with nested operations and recursion
- Adapts tasks based on contextual changes or external inputs
⚙️ Integrated Control Logic
- Embeds controller logic within LLM prompts
- Manages multi-layered tasks with reduced manual intervention
🏗️ Task Structuring
- Employs a structured pseudo-code approach
- Enables precise execution of complex operations
🔁 Recursive Task Handling
- Efficiently manages multiple layers of tasks
- Allows for adaptation to operational challenges
🌐 Active Data Management
- Incorporates function calls (e.g. vector or SQL DB calls) within operational prompts
- Facilitates real-time data interactions
📈 Scalable Framework
- Handles a range of project sizes and complexities
- Supports diverse requirements while maintaining performance
💡 LLM-OOP Integration
- Embeds the LLM controller within Object-Oriented Programming (OOP) structures
- Enables direct interaction between OOP functions and the LLM controller
- Facilitates interactions with external systems (APIs, databases, LLM agents)
This architecture distinguishes CELI from traditional agent-based frameworks, offering an integrated approach to automated knowledge work.
Discord Server
Join our Discord server to discuss the project with users, contributors, and project authors.
Documentation
Explore the rest of the documentation to learn more about CELI.
- Getting Started - Learn more about the various ways to run CELI.
- Running CELI - Learn more about the various ways to run CELI.
- New Use Cases - Learn how to apply CELI to your own use case.
- API Reference - If you are into reading API docs directly.
Contributing
If you would like to contribute to the development of CELI, we welcome contributions of all forms. For more information on contributing, see the contributor guidelines.
License
CELI is licensed under the MIT License. Feel free to use, modify, and distribute the framework as per the license terms.
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 celi_framework-0.3.6.tar.gz
.
File metadata
- Download URL: celi_framework-0.3.6.tar.gz
- Upload date:
- Size: 18.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a78f4ad8921385b74dc2a81f282d803a271ab57d1c05f4fb6b250c2b6c02a9f |
|
MD5 | 99b48e083e91e1a8f5ae70b2eae18e81 |
|
BLAKE2b-256 | dc034b6d59de22f583807f728d50e88dd1bf45b4bcca3ab55932d227209f5729 |
File details
Details for the file celi_framework-0.3.6-py3-none-any.whl
.
File metadata
- Download URL: celi_framework-0.3.6-py3-none-any.whl
- Upload date:
- Size: 19.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 411db10f98f24fcdd7cfef7df6751e1113cf69310d0f0d3715e5d391b6b0aad6 |
|
MD5 | 6dad2999091f4cfc1edd34e9a2259566 |
|
BLAKE2b-256 | 7768e49eb15b9cc67131e1d972fb0b0b78f5cd28b7785df4aac439e447f339ff |