Project:Chinese Fortune-telling LLM專案:中文命理 LLM

Project:Chinese Fortune-telling LLM專案:中文命理 LLM

專案:中文命理 LLM

LINK IS HERE! Give it a try

Project Overview

Fortune-Telling LineBot is a modular and innovative LINE(a famous social app like Whatsapp here in Taiwan) chatbot that integrates large language models to deliver personalized fortune-telling experiences. The project leverages LLM and the LINE Messaging API to create an engaging, interactive platform where users can receive fortune predictions, astrological insights, and playful responses through a conversational interface. Its primary goal is to combine the mystical allure of fortune-telling with cutting-edge AI technology, offering users a unique blend of entertainment and personalization.

What makes this project stand out is its seamless integration of LLM with the LINE platform, enabling dynamic and context-aware responses that adapt to user inputs. The project uses fine-tuned traditional Chinese LLM to generate creative, tailored predictions and suggestions, making it a fun and engaging tool for users seeking a modern take on traditional Chinese fortune-telling.

Motivation

I created Fortune-Telling LineBot to explore the intersection of AI LLM and cultural practices, inspired by my fascination with how technology can breathe new life into traditional activities like fortune-telling. As a developer, I saw an opportunity to combine the power of LLMs with the accessibility of LINE, a platform widely used in Taiwan, to create a fun and interactive experience that appeals to both tech enthusiasts and casual users. The challenge of crafting a bot that delivers creative, context-aware responses while maintaining a mystical tone was both intellectually stimulating and rewarding.

On a personal level, I wanted to build a project that sparks joy and curiosity, much like the excitement of reading a horoscope or consulting a fortune-teller. Professionally, the project serves as a proof-of-concept for integrating LLMs into real-time chatbot applications, showcasing their potential for creating engaging, scalable, and customizable user experiences. The modular design reflects my commitment to making the project accessible to other developers who want to experiment with LLMs or build their own chatbot applications.

Unique Features

  • Personalized Fortune-Telling: Users can input their name, birth date, their specific questions, and the bot generates unique fortune predictions powered by LLM, offering an engaging and mystical experience.
  • Asynchronous Processing: Built with FastAPI, the bot handles multiple user requests concurrently, ensuring responsiveness even during high traffic, which enhances user satisfaction.
  • Customizable Prompts: Developers can modify LLM prompts to tailor the tone and style of predictions, enabling culturally specific or themed fortune-telling experiences.

Technical Skills

LineBot-LLM-Fortune-Telling is built using a robust and modern technical stack to ensure scalability, performance, and ease of development. The core technologies include:

  • Python with FastAPI: The backend is powered by FastAPI, a high-performance web framework for building asynchronous APIs. FastAPI was chosen for its speed, support for non-blocking operations, and automatic generation of API documentation, which simplifies development and debugging.
  • LINE Messaging API: The bot integrates with the LINE platform via its Messaging API, enabling seamless communication with users on one of Asia’s most popular messaging platforms. This API supports rich message types, including text and multimedia, enhancing user interaction.
  • Large Language Models (LLMs): The project leverages LLMs (e.g., models from Hugging Face or OpenAI) for generating fortune-telling responses. These models were selected for their ability to produce human-like text and adapt to creative prompts, ensuring engaging and varied outputs.
  • Docker: The project includes Docker support for containerized deployment, making it easy to deploy on cloud platforms like AWS, GCP, or Zeabur, ensuring portability and scalability.

Future Directions and Ambition

LineBot-LLM-Fortune-Telling has the potential to redefine how users interact with AI-driven entertainment applications, particularly in the realm of cultural and personalized experiences. By making fortune-telling accessible through a popular messaging platform, the project can reach a wide audience, from casual users seeking daily insights to event organizers looking to add interactive elements to their gatherings. Its scalability allows it to be adapted for other domains, such as educational chatbots, customer service agents, or even storytelling platforms, broadening its impact beyond entertainment.

Future improvements include:

  • Multilingual Expansion: Expanding support for additional languages to promote Chinese traditional fortune-telling globally, making cultural practices like Chinese zodiac predictions more accessible and engaging through AI-driven storytelling.

  • Multi-Platform Deployment: Deploying the bot on additional messaging platforms (e.g., WhatsApp, Telegram) to increase accessibility and convenience for users worldwide, ensuring a broader reach.

  • Model Optimization and Data Collection: Continuously refining the LLM’s knowledge by collecting more culturally relevant data, enabling fine-tuning to improve the accuracy and authenticity of fortune-telling responses.

These enhancements will ensure the project remains a dynamic and culturally significant tool, inspiring users and developers to explore the creative possibilities of AI in preserving and modernizing traditional practices.

For more technical details, please visit the below github repo:

linebot-llm-fortune-telling Github Repo

連結在這裡,歡迎試玩

專案概覽

Fortune-Telling LineBot 是一個模組化且創新的 LINE 聊天機器人,整合大型語言模型,提供個人化的命理解讀體驗。專案使用 LLM 與 LINE Messaging API 建立具互動性的服務,使用者可透過對話取得運勢預測、星座洞察與趣味回覆。核心目標是把命理的神祕魅力與尖端 AI 技術結合,兼具娛樂性與個人化。

本專案的特色是將 LLM 與 LINE 平台無縫整合,產生可依使用者輸入調整、兼具脈絡的動態回覆。系統使用微調過的繁體中文 LLM,生成富創意且量身打造的預測與建議,讓想以現代方式體驗傳統中式命理的使用者,能獲得有趣、引人投入的互動。

動機

我打造 Fortune-Telling LineBot,是為了探索 AI 大型語言模型與文化實踐的交集。我一直很著迷於科技如何為算命等傳統活動注入新生命;身為開發者,我看見了結合 LLM 能力與 LINE 普及性的機會。LINE 在台灣廣泛使用,因此很適合打造同時吸引科技愛好者與一般使用者的趣味互動體驗。如何在保有神祕語氣的同時,做出有創意、理解上下文的回覆,也是很有挑戰且令人滿足的工作。

就個人而言,我希望做出能帶來快樂與好奇心的專案,就像閱讀星座運勢或請命理師解讀時的期待感。就專業而言,這是把 LLM 整合到即時聊天機器人應用的概念驗證,展示它們在建立具吸引力、可擴展且可客製化使用者體驗上的潛力。模組化設計也反映我的理念:讓想嘗試 LLM 或打造聊天機器人的其他開發者都能容易使用。

特色

  • 個人化命理解讀: 使用者輸入姓名、出生日期與想問的問題後,機器人便以 LLM 產生專屬運勢預測,帶來有趣且帶點神祕感的體驗。
  • 非同步處理: 以 FastAPI 建置,可同時處理多個使用者請求,即使流量高時仍保持即時回應,提升使用滿意度。
  • 可客製提示詞: 開發者可調整 LLM 提示詞,改變預測的語氣與風格,支援具特定文化或主題的命理解讀體驗。

技術能力

LineBot-LLM-Fortune-Telling 使用穩健且現代的技術堆疊,確保可擴展性、效能與開發便利性:

  • Python 與 FastAPI: 後端採高效能 Web 框架 FastAPI,支援非阻塞操作與自動 API 文件產生,可簡化開發與除錯。
  • LINE Messaging API: 透過 Messaging API 整合 LINE,在亞洲最受歡迎的通訊平台之一與使用者順暢互動;API 支援文字、多媒體等豐富訊息型態。
  • 大型語言模型(LLM): 使用 Hugging Face 或 OpenAI 等模型產生命理解讀。這些模型能產生自然語言並適應創意提示,確保回覆有趣且多樣。
  • Docker: 專案提供容器化部署支援,可輕易部署至 AWS、GCP、Zeabur 等雲端平台,兼具可攜性與擴展性。

未來方向與企圖

LineBot-LLM-Fortune-Telling 有潛力重新定義使用者與 AI 娛樂應用的互動方式,特別是在文化與個人化體驗領域。透過熱門通訊平台提供命理解讀,從尋找每日指引的一般使用者,到希望替活動增加互動元素的主辦人,都能觸及。它的擴展性也可套用至教育聊天機器人、客服代理人甚至故事敘事平台,使影響力不限於娛樂。

未來改進包括:

  • 多語言擴展: 支援更多語言,以 AI 敘事向全球推廣中華傳統命理,讓生肖預測等文化實踐更容易接觸且更有互動感。
  • 多平台部署: 部署至 WhatsApp、Telegram 等其他通訊平台,提升全球使用者的可及性與便利性。
  • 模型最佳化與資料蒐集: 持續蒐集更多與文化相關的資料、精進 LLM 知識並進行微調,提升命理解讀回覆的準確度與真實感。

這些強化會讓專案持續成為具有活力與文化意義的工具,也鼓勵使用者與開發者探索 AI 保存、現代化傳統文化的創意可能。

更多技術細節請參考以下 GitHub 儲存庫:

linebot-llm-fortune-telling GitHub 儲存庫