GithubHelp home page GithubHelp logo

catherine-qi / reco-bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 3.0 2.04 MB

A task-oriented dialogue system that recommends conference events and research papers to users, and answers simple factual questions about conference events

Python 100.00%
information-retrieval

reco-bot's Introduction

ReCo-Bot: A Retrieval-Based QA Dialogue System on Scientific Conferences

An ERSP project, supervised by Professor Hamed Zamani, under the Center of Intelligent Information Retrieval (CIIR) lab at UMass Amherst. ReCo-Bot (or ReCo, for short) is a task-oriented dialogue system that recommends conference events and research papers to users, and answers simple factual questions about conference events (option selection). It can make recommendations based on keywords or userprofiles, which is built off a specified author's works.

The given conference dataset, which was manually extracted, is only of SIGIR 21, so it can only support queries related to that conference as of right now. Currently, we don't have an automatic parser to extract this kind of data from any conference website.

Below are some screenshots of the bot in use via the telgram interface. The left screenshot is of option selection, while the right is of recommendation. Please note that the bot name "ConfRec" was a placeholder name; the actual name should be "ReCo-Bot."

Screenshots of ReCo in use Screenshots of ReCo in use

ReCo Architecture

ReCo follows the Macaw framework, a platform with modular architecture meant for conversational information seeking (CIS) research. The interface is implemented via Macaw, so the communication between the dialogue system and user is aided by Macaw. The high-level architecture of ReCo is shown below:

The high-level architecture of ReCo

Retrieval

Recommendations are made via a dense retrieval model, which employs the SentenceTransformers and Faiss library. A sparse retrieval model, using BM25 as the ranking function, is also used to detect what conference event the user may be referring to for option selection.

Installation

Most dependencies can be installed via the requirements.txt:

pip install -r requirements.txt

You will also need to install MongoDB server.

The parsed arXiv dataset is not posted here due to size. Additionally, if you do not have a GPU, it will take very long to vectorize all the entries in the dataset. We provide the parsed arXiv dataset here (Google Drive) and the pickle files for the dense index and vectors of the arXiv dataset here (Google Drive). Please note that the dataset is around 0.465 GB, while the pickle files are 1 GB each. It took approximately 1 hour to create the pickle files using a 2080ti GPU.

If you install the pickle files, please store the index folder in the same directory that you indicate to be the 'index path' (see live_main.py for more details).

Running

First, run the MongoDB server (mongod.exe). The default interface used is telegram; this can also be changed to standard IO or file IO for development purposes. Then, run the main script:

python3 live_main.py

Acknowledgements

We would like to thank Professor Hamed Zamani in helping to conceptualize this project, and our PhD mentor Chris Samarinas who guided and advised us on project technicalities (as well as helping with code)!

reco-bot's People

Contributors

catherine-qi avatar vedanthchinta avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.