Git Product home page Git Product logo

vulcan's Introduction

Vulcan

Making a Signal Messenger-enabled chatbot, powered by LLMs on commodity hardware

Structure:

flowchart TD
    Middleware --> C[LLM Handler]
    Middleware --> D[Signal Messenger API]
    Middleware --> E[Emotional State Machine]
    Middleware --> F[NLP]
    Middleware --> G[sampleMessages]
    C --> J[Llama 13b 8-bit quantized model]

At the core of this project are dockerized deployments of the Signal Messenger API, and Llama.cpp server. The middleware is custom code to glue it all together.

Chatbot Personality:

The "personality" is defined by prompt injection in the LLM handler file. Currently Vulcan is set to act as a robotic pirate.
image

Emotional State:

The emotional state is managed by a state machine (defined below).

  • If he gets a rude message, it'll have a chance to get 'Angry' or 'Sad'.
  • If he recieves a compliment, his mood improves.
  • If he gets too many boring messages in a row, he gets "bored" and asks a question. image

Can I use this for my own projects?:

Absolutely! You'll probably need to make changes to the configuration though

Sample Messages:

image image image

Next steps:

  • State machine to simulate "moods"
  • Personality tuning
    • Allow high reputation conversational partners to influence the personality
  • Proper logging of messages
  • Fine-grained control of which Signal chats to respond to
    • Reply to new chats by default, on wakeword
  • Memory
    • Short term/conversational memory
    • Long term/database memory

vulcan's People

Contributors

decafsunrise avatar

Watchers

 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.