Skip to main content

Controller-Embedded Language Interactions - facilitates the entire lifecycle of document processing, from pre-processing and embedding to post-monitoring and quality assessment.

Project description

PyPI version Tests Documentation Status License: MIT Python Versions Poetry

CELI Logo

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

  1. Introduction
  2. Quick Start
  3. CELI Overview
  4. What is CELI?
  5. Discord Server
  6. Documentation
  7. Contributing
  8. 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.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

celi_framework-0.3.7.tar.gz (18.9 MB view details)

Uploaded Source

Built Distribution

celi_framework-0.3.7-py3-none-any.whl (19.0 MB view details)

Uploaded Python 3

File details

Details for the file celi_framework-0.3.7.tar.gz.

File metadata

  • Download URL: celi_framework-0.3.7.tar.gz
  • Upload date:
  • Size: 18.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for celi_framework-0.3.7.tar.gz
Algorithm Hash digest
SHA256 335d89420d981d18803a5b9d80a8100a118b9ec51869c8f5c96e7cc40b7c54e0
MD5 cb10a8aaf869793c383efa9848f0fe4e
BLAKE2b-256 0380dff1784194ff7973382dbdb977251a89651be43658319f3719101e3bbef9

See more details on using hashes here.

File details

Details for the file celi_framework-0.3.7-py3-none-any.whl.

File metadata

File hashes

Hashes for celi_framework-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b5037da9233d9aff09d2a5f73bac19d7071c824c0e5a1b0a19da97d24cfa3df1
MD5 911a1e5fc288f66af1ea2066250a1f78
BLAKE2b-256 8389dae1451e4eb92f21b0f0144b7fde9c52a725b13f2d0de2cb1160ec4f904b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page