Skip to content

Latest commit

 

History

History
188 lines (168 loc) · 5.59 KB

design_doc.md

File metadata and controls

188 lines (168 loc) · 5.59 KB

⬆️

Requirements

  • Test Driven Development
  • Must be fully containerised
  • Containers must have resource limits
  • Must be be able to fit on less than 4gb ram
  • Every prompt and output should be less than 4k tokens
  • Must be entirely local
  • Must have a strong static typing and linting
  • Must be an MVP
  • Must fulfil all the basic requirements of an ACE Framework

Technologies Used

Language

Communication

Orchestration

UI

  • HTMX for server side rendering
    • Jinja for html templating
  • DaisyUI for components

LLM

RAG

Observability

Storage

System Design

architecture.png

Core

Model Provider

This will serve the llm models to each of the layers and security layer in future iterations

  • MVP
    • Serve model inference over an api
    • Multiple specialest models
  • Future
    • Scaling to larger models based on spec decisions
    • Kubernetes to allow multiple models running asynchronously

Layers

LLM Layers

  • MVP
    • LLM inference
    • Modular
    • Stop function
      • Can be passed one layer down
      • Option to pass several layers down
    • Compression through summarisation
    • Send commands downstream and inputs upstream
    • Conditional input types based on layer type
    • Output as JSON
  • Future
    • Request more function
  • Aspirational

    • High level guidance and alignment
  • Global Strategy

    • Long term strategic roadmaps
  • Agent Model

    • Self awareness, grounding the agent in its physical limitations
    • MVP
      • Memory interface
  • Executive Function

    • Practical project roadmaps considering mission and limitations
  • Cognitive Control

    • Task switcher
  • Task Prosecution

    • The executor of the agent

Busses

Acts as queuing and communication between the layers

  • MVP
    • Queue system
  • Future
    • Backpressure
    • Distributed messages
  • Southbound

    • The control bus, sending down commands and directives
  • Northbound

    • The reporting bus, letting higher layers know of state

IO

Input

All the sensory information of the machine

  • MVP
    • System Telemetry
      • Hardware & Software Statistics
      • Metrics
    • Basic World State
      • Datetime
      • Basic Info From Internet (Should work fully offline though)
    • Stdout
    • File Access
    • User Input (Text)
    • Basic Memory
    • Task Observation
  • Future
    • API Calls
    • Opened Internet Access
      • BASHR Loop for research
    • Complex Memory
      • Short Term
        • Summarised for details
      • Long Term
        • Through Sparse Priming Representations(SPR)
      • Factual
        • Fact Database
      • Episodic
    • Vision
    • Auditory
    • Other Sensors?

Output

All the physical actions of the machine

  • MVP
    • Function calling
      • Code
      • Files
    • Memory
    • AI Models
  • Future
    • API calls
    • Motors
    • Audio
    • Imagery
    • 3D models

Logging

System state and outputs throughout its lifecycle

  • MVP
    • JSON Logger
    • Different log levels with verbosity toggles
    • Error Logs on each component
  • Future
    • Centralisation
    • Dashboards

ACE Controls

Security Layer

Acts as the vetting layer, ensuring that all outputs are valid and safe

  • MVP
    • Structure validation
    • Safety validation
    • Logging of outputs
    • User auth
      • Access control
  • Future
    • Alignment checks

UI

The way the user interacts with the ACE

  • MVP
    • User inputs
    • Agent status and activations
    • Deep dive into outputs
  • Future
    • Statistics