Skip to content

achimoraites/simple-question-answering-ml-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Question Answering ML System

This is a question and answering system that scrapes paragraphs from web pages, indexes them using Elasticsearch, and leverages the power of semantic search and natural language understanding to provide relevant answers to user queries.

Features

  • Web scraping using Beautiful Soup
  • Document indexing with Elasticsearch
  • Semantic Search with result sources
  • Extractive Question Answering
qa-ml-system-demo.mp4

Setup

This project built using Python 3.10.4

python -m venv venv

# Linux / MacOS
source venv/bin/activate

# Windows
.\venv\Scripts\activate


pip install -r requirements.txt
docker-compose up -d build

Kibana link http://localhost:5601 The Flask application should be accessible at http://localhost:5001.

Elastic Search

The first time you will need to add the index for storing the documents

python /data-import/create_index.py

To import some sample pages you can run

python /data-import/webpages.py