Giter Site home page Giter Site logo

thuan00 / uet-qa Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 357 KB

Undergraduate thesis project

Home Page: https://www.overleaf.com/read/czdvtqwcpfpt

License: Apache License 2.0

Python 100.00%
machine-learning natural-language-processing question-answering

uet-qa's Introduction

UETQA

About

UETQA is my undergraduate thesis project, a question answering or search system that can support UET students and staffs. It is capable of comprehending the text to extract the answers.

It relies on the knowledge base of school's regulation documents and FAQs collection to draw answers. As the knowledge base expands, it should be able to answer a wider variety of questions.

To learn more about my work:

Installation

On a new python or conda virtual environment is recommended

git clone <this repo>
cd uetqa
pip install -e .

OS: Linux preferably. The project is not built to run on Windows.

Data

i recommend trying the new embedding model https://huggingface.co/intfloat/multilingual-e5-large, its significantly better

To run the demo

You 'll need Elasticsearch at port 9200, with index.

Here is my suggested commands to run the demo:

# run Elasticsearch
docker run --name uetqa-es -p 9200:9200 -e "discovery.type=single-node" elasticsearch:7.9.2

# prepare the index
python scripts/data/index_docs_es.py --input_dir data/kb/json/ \
  --dense_model_path ncthuan/vi-distilled-msmarco-MiniLM-L12-cos-v5 \
  --embedding_dim 384 \
  --max_seq_len 384 \
  --index_name uetqa-demo

# run the app
INDEX_NAME=uetqa-demo EMBEDDING_DIM=384 \
EMBEDDING_MODEL=ncthuan/vi-distilled-msmarco-MiniLM-L12-cos-v5 \
READER_MODEL=ncthuan/xlm-l-uetqa \
streamlit run scripts/demo.py --theme.base light

The app will be available at port 8501

uet-qa's People

Contributors

thuan00 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.