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 automates knowledge work by integrating LLM controllers into task workflows. It offers:

  • 🧠 Intelligent Automation: Empowers users to strategically integrate LLMs into complex projects.
  • 🔄 Dynamic Adaptability: Adjusts strategies in real-time based on context and feedback.
  • 🛠️ Versatile Application: From code generation to data analysis, CELI tackles diverse knowledge tasks.
  • 📈 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 software development workflows or streamlining complex data processing pipelines, 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.5.tar.gz (18.9 MB view hashes)

Uploaded Source

Built Distribution

celi_framework-0.3.5-py3-none-any.whl (19.0 MB view hashes)

Uploaded Python 3

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