Giter Site home page Giter Site logo

mydroidandi / commbase Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 230.99 MB

๐Ÿค–โœจ Dialog-first platform for developing interactive AI-Powered assistant-like applications on Linux

License: GNU General Public License v3.0

Python 64.91% Shell 35.09%
ai assistant droid bash linux python debian machine-learning robotics ubuntu data-science nlp iot arduino jarvis flask-socketio development-framework framework language-models huggingface-transformers

commbase's Introduction

Python Package using Conda Python Version flake8 Lint json-lint Shell Linter

Commbase Commbase

Commbase

๐Ÿค–โœจ Dialog-first platform for developing interactive AI-Powered assistant-like applications on Linux

Introduction

Commbase, short for Communicative Commands Base, is a comprehensive platform designed to empower computers and computer-based devices with cutting-edge conversational AI capabilities. While it includes a flexible and extensible โœจ development framework โœจ at its core, Commbase goes beyond mere development tools. It serves as both a module and library bundler, incorporating third-party Language Models (LLMs, etc.) to enable advanced features such as "distributed AIs" or "multi-agent systems" (MAS). Commbase adapts across a diverse range of devices, from computers to smart appliances, robots, vehicles, Iron Man-like suits, starships, and beyond, ensuring universal accessibility and functionality. Operating effortlessly on either a single machine or a pair of machines in a client-server architecture, Commbase offers unparalleled adaptability and scalability.

Links and Resources

Features

Feature Insights

Topic Features
โš™๏ธ Control & Accessibility Offers multiple methods to start and stop Commbase, including init systems, cron jobs, terminal commands, or voice commands. Provides a terminal-based interface and option for custom UIs.
๐Ÿ–ฅ๏ธ Multi-pane Support Facilitates multitasking and organization within Commbase by providing a versatile workspace with options for navigating between different functionalities.
๐Ÿ“ Logging & Recording Enables transparent monitoring of system activity, troubleshooting, and security maintenance through the recording of terminal and voice commands, along with secure access control.
๐Ÿ”ง Configuration Simplifies customization of Commbase to meet specific user needs and preferences by offering easy-to-adjust centralized configuration files for built-in options.
๐Ÿค– Advanced Capabilities Demonstrates sophistication and cutting-edge AI functionalities by integrating Language Models and advanced assistant capabilities such as language understanding and vision.

Detailed Feature Overview

Topic Features
๐Ÿ› ๏ธ Installation & Setup * Detailed installation steps, structure, and contribution guidelines are available on the GitHub repository, ensuring secure and transparent setup processes.
๐Ÿ’ป Commands & Interfaces * Help option to see available built-in commands for terminal use or development.
* Built-in commands support both voice and terminal command calls.
โš™๏ธ Control & Accessibility * Easy to start and stop using init systems, cron jobs, terminal commands, or voice commands.
* Terminal-based interface, with the option to create custom UIs.
๐Ÿ”€ Navigation * Seamlessly switch among windows using keybindings to access dashboards, server connections, etc.
๐Ÿ–ฅ๏ธ Multi-pane Support * Multiple panes are provided, covering functionalities like the chat room, STT engine (Speech-to-Text), server pane, client pane, and additional options.
๐Ÿ“‚ Custom Applications * Load custom terminal applications and seamlessly switch back to the chat room in the same pane.
๐ŸŽจ Personalization * Customizable application, user, and assistant names.
๐Ÿ“ Logging & Recording * Terminal and voice command recorder-transmitter area easy to install even in other hosts for remote control through networks, with enabled secure access control and logging.
๐Ÿ”ง Configuration * Effortlessly adjust and customize your settings with our platform's centralized configuration files. No code is required to configure built-in options.
๐Ÿ—ฃ๏ธ STT & TTS Engines * The STT Engine operates in Whisper reactive mode by default, with the ability to switch to Whisper proactive mode at any time.
* TTS Engines are dedicated for text-to-speech functionalities, so projects can effectively speak in various languages, enhancing accessibility and global reach.
๐ŸŒ Internationalization * Support to global audiences with seamless internationalization.
* Tailor your user experience by modifying i18n files to customize voice commands.
๐Ÿ“œ Custom Scripting * Effortlessly create custom server-side command scripts with a single file catalog database (scalable to any RDBMS), our up-to-date well-documented API, and JSON simplicity.
* Write command scripts in any programming language.
โ™ป๏ธ Reusable Functions * Access to a comprehensive library of reusable functions to enhance custom command scripts with streamlined efficiency and tailored functionalities.
๐Ÿค– Advanced Capabilities * LLMs (Large Language Models), SLMs (Small Language Models), and other Language Models integration.
* Enhanced assistant capabilities with advanced language understanding, including additional features like vision.
๐Ÿ“Š Activity Management * Efficiently manage your system's activity and user interactions by seamlessly integrating Commbase logs with custom app logs.
* Logs include customizable backups of past assistant-user conversations.
๐Ÿ›ก๏ธ Platform Stability * The use of Linux enhances the stability, reliability, and security of our software, ensuring robust and flexible performance in various environments.

Bundles

Bundles in Commbase refer to packaged collections of software components, applications, dependencies, or data that are bundled together for ease of distribution, installation, or deployment in various computing environments.

In the context of Commbase, users are allowed to modify existing bundles or create custom ones. This flexibility allows users to tailor the functionality and features to their specific needs, whether by adjusting configurations, integrating custom plugins or extensions, or creating entirely new functionalities within the software framework.

commbase-data-exchange

commbase-data-exchange

An application for exchanging JSON data over HTTP and WebSocket connections, allowing clients to save and retrieve JSON data in real-time. More Info

commbase-genai-llm-google-gemini-p

commbase-genai-llm-google-gemini-p

This app allows you to chat with Gemini, a powerful large language model. Ask questions, get creative writing inspiration, or receive help with tasks. More Info

commbase-genai-llm-meta-llama-p

commbase-genai-llm-meta-llama-p

This app allows you to interact with Llama, a large language model known for its factual language understanding and reasoning abilities. Ask questions, get help with research, or gain insights from complex information. More Info

commbase-genai-llm-openai-gpt-p

commbase-genai-llm-openai-gpt-p

An app designed to facilitate seamless interaction with the powerful OpenAI's GPT language model. This app empowers users to engage in natural language conversations with the model. More Info

commbase-genai-slm-ollama-phi3-mini-memory

commbase-genai-slm-ollama-phi3-mini-memory

Interacts with the Commbase platform by generating AI-driven responses using the Ollama API with the Phi3 mini model from Microsoft. This is a midweight implementation with session or short-term memory for language generation. More Info

commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone

commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone

Interacts with the Commbase platform by generating AI-driven responses using the Ollama API with the Phi3 mini model from Microsoft. This is a heavyweight implementation with memory for language generation, featuring remote RAG and Pinecone for persistent memory. More Info

commbase-genai-slm-ollama-phi3-mini-nomemory

commbase-genai-slm-ollama-phi3-mini-nomemory

Interacts with the Commbase platform by generating AI-driven responses using the Ollama API with the Phi3 mini model from Microsoft. This is a lightweight implementation without memory for language generation. More Info

commbase-recorder-transmitter-b

commbase-recorder-transmitter-b

commbase-recorder-transmitter-b is a voice recorder and recording transmitter for Commbase. It also supports sending the recorded audio file to a remote host using scp when the recording is stopped with another key press. More Info

commbase-recorder-transmitter-s

commbase-recorder-transmitter-s

commbase-recorder-transmitter-s is a voice recorder and recording transmitter for Commbase. It also supports sending the recorded audio file to a remote host using scp when the recording is stopped with another key press. More Info

commbase-stt-whisper-proactive-p

commbase-stt-whisper-proactive-p

This is an OpenAI's Whisper-based proactive ASR (Automatic Speech Recognition) engine designed to convert spoken language into written text without requiring an internet connection, making it a reliable and secure solution for any application that needs speech-to-text functionality. More Info

commbase-stt-whisper-reactive-p

commbase-stt-whisper-reactive-p

This is an OpenAI's Whisper-based reactive ASR (Automatic Speech Recognition) engine designed to convert spoken language into written text without requiring an internet connection, making it a reliable and secure solution for any application that needs speech-to-text functionality. More Info

commbase-text-translator-phi3-mini

commbase-text-translator-phi3-mini

Translates text from one language to another using the Ollama API with a specific Phi3 mini language model from Microsoft. More Info

commbase-tts-gTTS

commbase-tts-gTTS

A Commbase-ready TTS executable using gTTS (Google Text-to-Speech), a Python library and CLI tool to interface with Google Translate text-to-speech API. More Info

commbase-tts-gTTS

commbase-tts-pyttsx3

commbase-tts-pyttsx3 is a Python application that utilizes text-to-speech capabilities to read out the content of a file or any input text provided. It uses the pyttsx3 library for text-to-speech functionality. This application supports multiple languages, allowing you to generate speech in various languages. More Info

libcommbase

libcommbase

libcommbase is a core collection of libraries that provides foundational functionalities to Commbase and offers functionalities to Commbase-based applications. It centralizes common functions that can be shared across multiple conversational AI-powered assistant projects. More Info

Usage

Commbase

INSTALL Commbase and then run the next command in a terminal to start the program:

commbase start

Commbase will be ready to receive Commbase voice commands and Commbase terminal commands to assist you.

For more terminal options, run:

commbase -h

Check out the User's Guide for a complete list of options.

Installation

For information on how to install Commbase, follow the steps in the file INSTALL.

User's Guide

For information on how to set up, use, and program Commbase read the User's Guide.

Structure

This project is coded and organized like this:

/path/to/my/commbase/app
โ”œโ”€โ”€ assets  # Stores different types of assets, such as images, fonts, and ASCII art
โ”‚   โ”œโ”€โ”€ ascii
โ”‚   โ”œโ”€โ”€ docs  # Stores the Commbase User's Guide
โ”‚   โ”‚   โ””โ”€โ”€ images
โ”‚   โ”œโ”€โ”€ fonts
โ”‚   โ”œโ”€โ”€ icons
โ”‚   โ””โ”€โ”€ images
โ”œโ”€โ”€ bundles  # External software bundle and external asset bundle
โ”‚   โ”œโ”€โ”€ commbase-data-exchange
โ”‚   โ”‚   โ”œโ”€โ”€ client
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ templates
โ”‚   โ”‚   โ”œโ”€โ”€ examples
โ”‚   โ”‚   โ””โ”€โ”€ server
โ”‚   โ”‚       โ”œโ”€โ”€ client_data
โ”‚   โ”‚       โ””โ”€โ”€ templates
โ”‚   โ”œโ”€โ”€ commbase-genai-llm-google-gemini-p
โ”‚   โ”‚   โ””โ”€โ”€ examples
โ”‚   โ”œโ”€โ”€ commbase-genai-llm-meta-llama-p
โ”‚   โ”‚   โ””โ”€โ”€ examples
โ”‚   โ”œโ”€โ”€ commbase-genai-llm-openai-gpt-p
โ”‚   โ”‚   โ””โ”€โ”€ examples
โ”‚   โ”œโ”€โ”€ commbase-genai-slm-ollama-phi3-mini-memory
โ”‚   โ”‚   โ””โ”€โ”€ examples
โ”‚   โ”œโ”€โ”€ commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone
โ”‚   โ”‚   โ”œโ”€โ”€ examples
โ”‚   โ”‚   โ””โ”€โ”€ resources
โ”‚   โ”‚       โ””โ”€โ”€ src
โ”‚   โ”œโ”€โ”€ commbase-genai-slm-ollama-phi3-mini-nomemory
โ”‚   โ”‚   โ””โ”€โ”€ examples
โ”‚   โ”œโ”€โ”€ commbase-recorder-transmitter-b
โ”‚   โ”‚   โ””โ”€โ”€ examples
โ”‚   โ”œโ”€โ”€ commbase-recorder-transmitter-s
โ”‚   โ”‚   โ””โ”€โ”€ examples
โ”‚   โ”œโ”€โ”€ commbase-stt-whisper-proactive-p
โ”‚   โ”‚   โ””โ”€โ”€ examples
โ”‚   โ”œโ”€โ”€ commbase-stt-whisper-reactive-p
โ”‚   โ”‚   โ”œโ”€โ”€ client_data
โ”‚   โ”‚   โ””โ”€โ”€ examples
โ”‚   โ”œโ”€โ”€ commbase-text-translator-phi3-mini
โ”‚   โ”‚   โ””โ”€โ”€ examples
โ”‚   โ”œโ”€โ”€ commbase-tts-gTTS
โ”‚   โ”‚   โ””โ”€โ”€ examples
โ”‚   โ”œโ”€โ”€ commbase-tts-pyttsx3
โ”‚   โ””โ”€โ”€ libcommbase
โ”‚       โ”œโ”€โ”€ examples
โ”‚       โ”œโ”€โ”€ libcommbase
โ”‚       โ”‚   โ”œโ”€โ”€ interactive
โ”‚       โ”‚   โ””โ”€โ”€ routines
โ”‚       โ””โ”€โ”€ resources
โ”‚           โ”œโ”€โ”€ bundles
โ”‚           โ”‚   โ””โ”€โ”€ sounds
โ”‚           โ””โ”€โ”€ i18n
โ”‚               โ”œโ”€โ”€ control_patterns
โ”‚               โ”‚   โ””โ”€โ”€ openai_whisper_models
โ”‚               โ”‚       โ”œโ”€โ”€ base
โ”‚               โ”‚       โ””โ”€โ”€ ...
โ”‚               โ”œโ”€โ”€ discourses
โ”‚               โ”œโ”€โ”€ log_messages
โ”‚               โ””โ”€โ”€ skill_patterns
โ”‚                   โ””โ”€โ”€ openai_whisper_models
โ”‚                       โ”œโ”€โ”€ base
โ”‚                       โ””โ”€โ”€ ...
โ”œโ”€โ”€ certificates  # Stores the security certificates
โ”œโ”€โ”€ config  # Stores the configuration file
โ”œโ”€โ”€ data  # Stores the voice recognition model results and other data files
โ”œโ”€โ”€ env  # Stores the environment file
โ”œโ”€โ”€ history  # Stores the Commbase commands history
โ”œโ”€โ”€ i18n  # Stores resources related to localization and internationalization
โ”‚   โ”œโ”€โ”€ discourses
โ”‚   โ””โ”€โ”€ log_messages
โ”œโ”€โ”€ log  # Stores the log messages
โ”œโ”€โ”€ screenshots  # Stores the image commbase.png
โ”œโ”€โ”€ scripts  # Stores the scripts for deploying and configuring Commbase, and a few utils
โ”‚   โ”œโ”€โ”€ configuration
โ”‚   โ”‚   โ”œโ”€โ”€ install_commbase_executable
โ”‚   โ”‚   โ””โ”€โ”€ reset_commbase.conf
โ”‚   โ”œโ”€โ”€ deployment
โ”‚   โ””โ”€โ”€ utilities
โ”‚       โ”œโ”€โ”€ back-up
โ”‚       โ””โ”€โ”€ bundles
โ”‚           โ””โ”€โ”€ vu-meter
โ”œโ”€โ”€ src  # This directory contains user/dev-generated source code
โ”‚   โ”œโ”€โ”€ client
โ”‚   โ”‚   โ”œโ”€โ”€ assets  # Stores different types of assets, such as images, fonts, and ASCII art
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ascii
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ docs  # Stores your app User's Guide
โ”‚   โ”‚   โ”œโ”€โ”€ bundles
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ audiobooks
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ Robinson_Crusoe
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ terminal-chat-gpt
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”‚   โ”œโ”€โ”€ config
โ”‚   โ”‚   โ”œโ”€โ”€ i18n
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ discourses
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ log_messages
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ skill_patterns
โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ openai_whisper_models
โ”‚   โ”‚   โ”‚           โ”œโ”€โ”€ base
โ”‚   โ”‚   โ”‚           โ””โ”€โ”€ ...
โ”‚   โ”‚   โ”œโ”€โ”€ log
โ”‚   โ”‚   โ””โ”€โ”€ serial_communication
โ”‚   โ”‚       โ”œโ”€โ”€ arduino
โ”‚   โ”‚       โ”‚   โ”œโ”€โ”€ arduino_0
โ”‚   โ”‚       โ”‚   โ”‚   โ”œโ”€โ”€ commbase_hardware_notifications
โ”‚   โ”‚       โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ sentiment_component
โ”‚   โ”‚       โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ speech_to_text_engine_component
โ”‚   โ”‚       โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”‚       โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”‚       โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”‚       โ””โ”€โ”€ ...
โ”‚   โ”œโ”€โ”€ server
โ”‚   โ”‚   โ””โ”€โ”€ skills_db
โ”‚   โ”‚       โ”œโ”€โ”€ arduino
โ”‚   โ”‚       โ”œโ”€โ”€ bash
โ”‚   โ”‚       โ”‚   โ”œโ”€โ”€ f
โ”‚   โ”‚       โ”‚   โ”‚   โ”œโ”€โ”€ firefox
โ”‚   โ”‚       โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”‚       โ”‚   โ””โ”€โ”€ o
โ”‚   โ”‚       โ”‚       โ”œโ”€โ”€ openai
โ”‚   โ”‚       โ”‚       โ””โ”€โ”€ ...
โ”‚   โ”‚       โ”œโ”€โ”€ c++
โ”‚   โ”‚       โ”œโ”€โ”€ java
โ”‚   โ”‚       โ”œโ”€โ”€ multi-lang
โ”‚   โ”‚       โ”œโ”€โ”€ nodejs
โ”‚   โ”‚       โ”œโ”€โ”€ python
โ”‚   โ”‚       โ”œโ”€โ”€ rust
โ”‚   โ”‚       โ””โ”€โ”€ ...
โ”‚   โ””โ”€โ”€ tests
โ”œโ”€โ”€ tests  # Stores the Commbase tests
โ””โ”€โ”€ user  # Stores chat conversations, assistant's memories, and other user workspace files
    โ”œโ”€โ”€ analysis_zone
    โ”œโ”€โ”€ conversation_logs
    โ”œโ”€โ”€ knowledge_base
    โ”œโ”€โ”€ memory_store
    โ”‚   โ”œโ”€โ”€ commbase-genai-slm-ollama-phi3-mini-memory-remote-rag-pinecone
    โ”‚   โ”‚   โ”œโ”€โ”€ build
    โ”‚   โ”‚   โ””โ”€โ”€ src
    โ”‚   โ””โ”€โ”€ ...
    โ””โ”€โ”€ ...

Tech Stack

Core technologies directly involved in the application's functionality.

Required in The Default Installation

OpenAI Whisper | Ollama | Microsoft Phi3 | Pinecone | PyAudio | Awk | Git | Jq | SSH | Flask| NumPy | Pandas | Pyttsx3 | FFmpeg | GNU/Linux | Systemd | Bash | Bc | Python | Oh My Tmux | Tmux

Optional

Anaconda | Google Gemini | Meta Llama | OpenAI GPT | Pgvector | PyTorch | TensorFlow | PostgreSQL | Arduino C++ | Nvidia | Dash | Festival

Development

GitHub | Zsh | Bach | Flake8 | Pytest | ShellCheck

Contests

We are proud to participate in the following contests:

BackdropBuild Contest
BackdropBuild Contest
Gemini API Developer Competition
Gemini API Developer Competition

Sponsors

We extend our heartfelt thanks to the following sponsors for their generous support:

BackdropBuild
BackdropBuild

Providing valuable mentorship.

Vercel
Vercel

Contributing deployment resources for testing.

GitHub
GitHub

Providing access to advanced dev tools.

Pinecone
Pinecone

Supplying vector database services.

If you would like to sponsor our project, please reach out to [email protected].

Approach and Philosophy

Our software embraces minimalism, the DRY (Don't Repeat Yourself) principle, and KISS (Keep It Simple, Stupid), ensuring streamlined features and eliminating unnecessary repetition for improved efficiency and simplicity, in line with the Unix philosophy.

We adhere to industry-standard best practices in software engineering for design and architecture, ensuring the development of robust, scalable, and maintainable systems that meet the highest quality standards and user expectations.

The open-source nature of our project empowers developers to extend its capabilities by adding more bundles or writing their own code, fostering a collaborative and adaptable environment beyond voice commands.

Additionally, our modular design facilitates flexible customization and extension of functionalities according to user needs. You can also incorporate your unique serial and wireless hardware into our platform, enabling tailored communication and interaction with devices for enhanced versatility and functionality.

Dialog-First Software Development Paradigm

Our development philosophy is influenced by the emerging paradigm of Dialog-First, as detailed in Esteban Herrera Castro's paper "Dialog-First: The Future of AI Assistants and Voice-Controlled Software and Hardware." This paradigm prioritizes voice commands and conversational interfaces over traditional GUIs and manual controls, aiming to enhance user experience, accessibility, and efficiency.

By focusing on voice-first solutions, we address the limitations of conventional interfaces, making interactions more intuitive and reducing cognitive load. This approach not only improves usability but also supports diverse user needs, including those with disabilities that may find traditional interfaces challenging.

Furthermore, embracing Dialog-First allows our software to seamlessly integrate with various devices, from smartphones to specialized hardware, fostering innovation in fields like smart homes, healthcare, and beyond. This adaptability ensures that our platform remains at the forefront of technological advancements in voice-controlled software and hardware.

Contributing

To contribute to Commbase, follow these steps:

  1. Fork this repository.
  2. Create a branch: git checkout -b <branch_name>.
  3. Make your changes and commit them: git commit -m '<commit_message>'
  4. Push to the original branch: git push origin <project_name>/<location>
  5. Create the pull request.

Alternatively see the GitHub documentation on creating a pull request.

Contributors

Thanks to the following people who have contributed to this project:

Contact

If you want to contact us you can reach us at [email protected].

License

This project uses the following license: GPL-3.0.

commbase's People

Contributors

estebanways avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.