Skip to content

smalldan1022/chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatbot

An chatbot project on JTCG

📋 Table of Contents

🤖 About

This is a chatbot project developed for JTCG. The chatbot is designed to provide automated conversational capabilities for customer support.

✨ Features

  • Multi Agents System: Understands and responds to user queries with multi-Agents
  • Multi-turn Conversations: Maintains context across multiple interactions
  • Customizable Responses: Easy to configure and extend response patterns
  • Reasoning and Flexible: Give you the answers with the reasons and can generate flexible content

📋 Prerequisites

Before you begin, ensure you have the following installed:

🚀 Installation

  1. Clone the repository

    git clone https://github.com/smalldan1022/chatbot.git
    cd chatbot
  2. Create a virtual environment (recommended)

    conda create -n YOUR_ENV_NAME python=3.11
  3. Install dependencies

    poetry install
  4. Set up environment variables

    # Set up your own OpenAI API Key
    # at the root of the folder
    vim .env
    
    (Inside the .env)
    OPENAI_API_KEY=xxxxxxx

💬 Usage

Running the Chatbot

  1. Start the application

    # interactive mode
    chatbot -i
    
    # interactive mode without other display
    chatbot -d -i
  2. Access the chatbot

    # or at the root folder
    python src/chatbot/main.py

Basic Example

# Example of using the chatbot
from chatbot import ChatBot

chatbot = ChatBot()
response = chatbot.process_single_user_message("Hello, how are you?")
print(response)

⚙️ Configuration

  • The Agent

    The agent can be configured through the config.yaml files:

  • The Prompt

    The prompt can be configured through the config.yaml files:

  • The Orchestrator Route

    The orchestrator route can be configured through the config.yaml files:

Development Guidelines

  • Follow PEP 8 style guide for Python code
  • Write unit tests for new features
  • Update documentation as needed
  • Keep commits atomic and well-described

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

👤 Contact

smalldan1022

🙏 Acknowledgments

  • Thanks for JTCG team's project support

⭐ If you find this project useful, please consider giving it a star on GitHub!

About

An chatbot project on JTCG

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages