Skip to content

Releases: AS-AIGC/AS-FAQ-Bot

AS-FAQ Bot v1.0

26 Feb 14:23
8ac2c2b

Choose a tag to compare

AS-FAQ-Bot Release Notes

Version v1.0

Release Date: [2025-02-26]

Overview

AS-FAQ-Bot is a versatile chatbot solution designed to answer user queries efficiently using two distinct approaches: a Retrieval-Augmented Generation (RAG) system and an in-context learning-based Line Chatbot. This v1.0 release marks the official debut of a robust FAQ system featuring a web interface and Line platform integration, leveraging AI to provide accurate and user-friendly responses based on predefined datasets.`

`### Features

  • Dual Solutions:
    • RAG-based chatbot with AS-FAQ-RAG (backend) and AS-FAQ-Web-ChatBot (web frontend).
    • In-context learning chatbot with AS-FAQ-Line-Chatbot (Line platform webhook).
  • User-Friendly Design: Intuitive web and Line interfaces for seamless interaction.

Prerequisites

Ensure the following dependencies are set up before installation:

  • Python 3.7 or higher
  • Line Developer Account (for Line Chatbot)
  • Access to AI service APIs (e.g., Google Generative AI or equivalent)`

`### Known Issues

  • Line Chatbot may experience delays under high traffic.
  • RAG response quality depends on the completeness of the FAQ data in the data folder.

Future Improvements

  • Optimize performance for high-concurrency scenarios.
  • Enhance RAG accuracy with advanced retrieval techniques.

Contributing

Contributions are welcome! Please read our Contributing Guidelines before submitting a pull request.

License

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

AS-FAQ Bot v0.1

25 Feb 03:55

Choose a tag to compare

AS-FAQ-Bot Release Notes

Version v0.1

Release Date: [2024-06-24]

Overview

AS-FAQ-Bot is a chatbot built on Generative AI, designed to answer user queries using a predefined dataset from the Academia Sinica administrative services and regulations. This release includes the initial implementation of the chatbot with key functionalities such as Line platform integration, data extraction from multiple sources, and AI-powered responses.

Features

  • Line Platform Integration: Processes and responds to user messages via Line.
  • Generative AI: Uses Google's Generative AI to generate relevant answers.
  • Data Extraction: Supports extracting data from URLs and PDFs.
  • Logging System: Logs user input and bot responses for debugging and improvements.

Prerequisites

Ensure the following dependencies are set up before installation:

  • Python 3.7 or higher
  • Line Developer Account
  • Google Cloud Account with Generative AI API enabled

Installation

  1. Clone the repository:

    git clone https://github.com/AS-AIGC/AS-FAQ-Bot.git
    cd AS-FAQ-Bot
    
  2. Create and activate a virtual environment:

    python3 -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
    
  3. Install the dependencies:

    pip install -r requirements.txt
    

Configuration

Line Bot Configuration

  1. Create a new channel in the Line Developers Console.
  2. Retrieve your Channel Secret and Channel Access Token.

Google Generative AI Configuration

  1. Set up a project in the Google Cloud Console.
  2. Enable the Generative AI API.
  3. Retrieve your API key.

Environment Variables

Create a .env file in the root directory and configure the following:

LINE_TOKEN=your_line_channel_access_token
LINE_SECRET=your_line_channel_secret
GOOGLE_KEY=your_google_api_key
GEMINI_PROMPT=your_system_instruction
DATABASE=your_database_url
GENERATION_CONFIG=your_generation_config
SAFETY_SETTINGS=your_safety_settings

Usage

  1. Start the application:

    python app.py
    
  2. Set up the webhook:

    • Go to the Line Developers Console and set your webhook URL to point to your server where the bot is running.
  3. Interact with the bot:

    • Open Line and send a message to the bot. It will respond using Google Generative AI.

Known Issues

  • Performance may vary depending on the quality of the data sources.
  • Requires a stable internet connection for API interactions.

Future Improvements

  • Implement user authentication and access control.
  • Enhance response accuracy using a fine-tuned dataset.
  • Add support for additional messaging platforms.

Contributing

Contributions are welcome! Please read our Contributing Guidelines before submitting a pull request.

License

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

Acknowledgements

  • Line Bot SDK for Python
  • Google Generative AI

Contact & Support
For issues, suggestions, or contributions, please visit the GitHub repository: https://github.com/AS-AIGC/AS-FAQ-Bot.