Giter Site home page Giter Site logo

everyoneisgross / bbbot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 14 KB

bbBOT is a felixble persona based branching binary sentiment chatbot.

License: MIT License

Python 100.00%
ai-alignment chatbot-framework openai openai-chatgpt python-ai tree-structure

bbbot's Introduction

bbBOT

Binary Branching Tree Logic Framework for Persona-Based Sentiment Reflection

bbBOT uses OpenAI API to generate responses from multiple chatbots with unique personas. The chatbots form a binary branching tree logic network, where the path of the conversation is determined by the sentiment detected in each chatbot's response. Each node in the network represents a chatbot, and the conversation flows from one chatbot to another based on whether the sentiment of a chatbot's response is positive or negative. The tree structure ends with two summary bots that summarize the conversation so far.

DreamShaper_v7_flexible_persona_based_branching_binary_sentime_1

Features

Supports any number of chatbots. Each chatbot can have a unique persona. Sentiment analysis of chatbot responses to guide the flow of conversation. Summary bots that provide a running summary of the conversation. Conversation history that is passed to each bot, allowing context-aware responses. Output stored in JSON format for further analysis.

How it Works

The chatbots are represented as nodes in a binary tree. Each chatbot (node) has two branches: one for a positive response (next_node_positive) and one for a negative response (next_node_negative). The sentiment of a chatbot's response, determined using NLTK's sentiment analysis, guides the path of the conversation.

If a chatbot's response has a positive sentiment, the conversation moves to the next_node_positive. If the response has a negative sentiment, it moves to the next_node_negative. The conversation continues to flow through the network of chatbots until it reaches one of two summary bots.

The summary bots summarize the conversation so far. They also serve as end nodes in the tree structure.

Usage

You will be prompted to input your query and the number of chatbots. You can then customize the name, character role, and temperature for each chatbot and the summary bots. If you leave these inputs blank, default values will be used.

Once all inputs are provided, the conversation starts with the first chatbot and progresses through the network based on the sentiment of each response. The conversation ends with a summary from one of the summary bots.

The responses from each chatbot, along with the keywords and sentiment, are saved to a JSON file for further analysis.

bbbot's People

Contributors

everyoneisgross 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.