Skip to content

alvindera97/T

Repository files navigation

T

Simulating meaningful conversations for enhanced understanding of group dynamics.

Contributor Covenant Code of Conduct

This project adheres to the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behaviour to nwokolo.godwin.chidera@gmail.com.

Commitment to Ethical Use

We are committed to ensuring that our project is used for positive and constructive purposes. We have implemented policies and guidelines to prevent and address any misuse.

For more information, please read our Code of Conduct. If you suspect any misuse of our project, please report it immediately here.

Introduction

The T project is designed to simulate human conversation within a web-based group chat. This software aims to enhance understanding of human communication, coordination, and perception in social contexts by generating and managing intelligent conversations around a specified context.

Purpose

The primary goal of this project is to facilitate realistic interaction among participants in a group chat, thereby offering insights into human communication dynamics. It is particularly useful for social event planning, behavioral studies, and software engineering teams looking to beta test interactive communication systems.

Scope

This project is intended for software engineers and beta testers within the confines of controlled group chats. It does not include telemetry and focuses solely on the simulation of group conversations.

Features

  • Context-based conversation simulation: Messages and responses center around the context.
  • Message broadcasting: Users can send context-related messages to the group.
  • Intelligent responses: The system generates contextually relevant replies.
  • Off-topic message limitation: The percentage of messages that are off-topic is configurable.
  • AI-generated content: Automated creation of messages and responses.

System Architecture

The system employs an asynchronous publisher-subscriber design pattern:

  • Publisher: A user who sends messages to the group.
  • Subscriber: A user who responds to messages sent by publishers.

User Roles

  • Publisher (pub): Sends messages to the group.
  • Subscriber (sub): Responds to messages sent by publishers.

Functional Requirements

  • Simulate human interaction around a specific context in a group chat.
  • Manage publisher-subscriber interactions effectively.

Non-functional Requirements

  • Security: Managed by the frameworks and hosting platforms.
  • Performance: Fault tolerance to ensure consistent message streams.
  • Execution: Available on web-based groups, initiated via hosting platform terminals.

System Design

The system design includes sequence and use case diagrams, as well as class diagrams, outlining the flow of messages and interactions between users.

Key Components

  • Message Store: Holds messages sent by users.
  • Message Broker: Manages the distribution of messages.
  • Message Composer: Generates and formats messages.
  • Content Enricher: Adds relevant context to messages.
  • Content Filter: Ensures messages meet specified criteria.
  • Message Normalizer: Standardizes message formats.
  • Recipient Poll: Determines which users receive messages.
  • Message Dispatcher: Sends messages to the appropriate recipients.
  • Smart Proxy: Manages interactions with external APIs.

Data Design

The system involves three primary entities:

  1. Message Object: Represents messages in the group chat.
  2. Message Stream: Managed by Apache Kafka, categorizing messages for processing.
  3. User Object: Represents users in the group.

Programming Languages and Frameworks

  • Languages: Python
  • Frameworks:
    • FastAPI (for API interactions)
    • Apache Kafka (for message streaming)
    • Sphinx (for documentation)
    • Google AI Python SDK for the Gemini API < google-generativeai > (for message generation based on context analysis)

External Libraries and APIs

  • External Messaging API: For messaging features.
  • Apache Kafka Streams API: For building stream processing apps.
  • Google AI Python SDK for the Gemini API: For AI-generated content.

Testing and Quality Assurance

  • Test Plan: Test Driven Development (TDD) approach.
  • Automated Testing: Utilizing unittest and GitHub Actions for CI/CD.
  • User Acceptance Testing: Involving beta testers for real-life scenario testing.
  • Version Control: Managed with Git, following Semantic Versioning.

Deployment and Maintenance

Deployment Plan

  1. Automated testing on push.
  2. If tests pass, publish the latest commit on the hosting platform.

Maintenance Plan

  • Bug fixes and updates: Triggered by dependency updates and user feedback.
  • Versioning: Semantic versioning to indicate the nature of changes.

Future Enhancements

  • Decoupling systems for more complex functionalities.
  • Smarter multimedia generation.
  • Web scraping for additional content enrichment.

Conclusion

This README outlines the creation of a web-based chat application that simulates human conversations around specified contexts. It leverages Python, FastAPI, and Apache Kafka to provide a robust solution for studying and enhancing group communication dynamics.

References

Packages

No packages published