Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

lacie-life/Jellyfish-ChatBot

Repository files navigation

Jellyfish-ChatBot

Author: Nguyen Truong Son and Dinh Bao Minh

A e-commercial chatbot which helps answer product, promtion and related infomations of 6 retailers in Vietnam (Circle-K, Winmart, 7-Eleven, Aeon Mall, Lotte Mart, Top Market)

Jellyfish-Chatbot was built based on streamlit-chat API. NLU module of Jellyfish-Chatbot using Information Extraction module public in [1]. The answer then generated by Chat Completions API.

Information Query Process

Flow chart

  • 1: User sends a question to Jellyfish-Chatbot;
  • 2: Information Extraction module extracts tuple (h,r,t); where h is head entity, t is tail entity and r is relationship between them.
  • 3: Based on (h,r,t) extracted, a suitable Cypher will be used to query data from knowledge graph (KG); KG was created following the paper [1]
  • 4: The Knowledge Graph returns the desired data and sends it to Chat Completions API;
  • 5: Chat Completions API generate appropriate answers;
  • 6: Jellyfish-Chatbot displays the answer content built in Step 5.

Installation

1. Clone the repository

git clone https://github.com/lacie-life/Jellyfish-ChatBot.git

cd Jellyfish-ChatBot

pip install -r requirements.txt

3. Run

streamlit run main.py

References

[1] Minh DinhBao, Viet DangAnh and Loc NguyenThe, “Xây dựng Đồ thị tri thức Thương mại điện tử Tiếng Việt dựa trên Trích xuất thông tin ngữ nghĩa với BERT”, The 26th National Conference on Electronics, Communications and Information Technology, 2023.

About

Simple recommendation chatbot with graph database

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages