SMU Research Data Repository (RDR)
2 files

ACKS: Codes and slides for Generate Your L(AI)brary Hackathon

Download all (2.3 MB)
posted on 2023-09-19, 09:27 authored by Arjun GUPTA, Kaiyue SHI, Ka Lun WONG, Xin HUA


The SMU Library Assistant Chatbot aims to improve the nature of SMU Library's 'Ask Library' chat with limited hours and fully human-operated to 24/7 with full automation.

Main Capabilities

  1. Open AI GPT-3.5 Integration: Users can communicate with the bot and it will act as ChatGPT.
  2. /lksbot: Talk to the bot's alternate version, which is finetuned on the FAQs of SMU Library website. Start your prompt with /lksbot
  3. /libsearch: Talk to the alternate version of the bot that performs a search in the SMU Database using Primo API and retrieves data structured by ChatGPT. Start your prompt with /libsearch
  4. /lks or /kgc: Retrieve the occupancy level in the respective libraries.


  • See tele-bot.ipynb for telegram integration of all models mentioned above.
  • Replace API keys in their respective placeholders.

Areas for Improvement

  • The bot can be finetuned on the conversation history of the Ask Library chat which will complement the FAQs finetuning and improve the conversation. Hope to reduce hallucinations and more contextualize the conversation to SMU Libraries. The raw data wasn't uploaded due to privacy concerns.
  • Improve the Primo API search area for the bot as the current level of this part is very basic.


Confidential or personally identifiable information

  • I confirm that the uploaded data has no confidential or personally identifiable information.

Usage metrics

    SMU Libraries