Scholar-s-Ally: An extractive/Generative QA solution designed to navigate and distill complex educational materials.
Extractive Question Answering (QA) is a type of question-answering system where the answer to a question is extracted directly from a text or a set of texts. In extractive QA, the answer is a segment of text (such as a phrase or sentence) taken verbatim from a document or documents, rather than being generated or summarized. This method relies on identifying and extracting the most relevant parts of the text that directly answer the posed question.
In generative QA, the answer to a question is not extracted directly from a pre-existing text but is instead generated by the system based on its understanding of the context and the question.
Scholar's Ally. How it works?
- Integrate educational content: chapters of a specific subject at school (pdfs).
- Type a question about it.
- Get the most relevant information from the integrated content and where to find it.
source: https://docs.cloud.deepset.ai/docs
git clone https://github.com/alaeddinehamroun/Scholar-s-Ally.git
cd Scholar-s-Ally
# Make sure you have python3 and pip installed
python3 -m venv .venv
source .venv/bin/activate
# To deactivate the environment run:
# deactivate
pip install --upgrade pip
pip install -r requirements.txt
You can visit the docs of Elasticsearch for more details.
# Make sure that Docker is available in your environment.
python3 src/launch_es.py
or
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.9.2
docker run -d -p 9200:9200 -e "discovery.type=single-node" elasticsearch:7.9.2
cd src/api
uvicorn main:app --reload
- Index: to index your files availables at data/ folder
- Query: enter your question and you'll get the answer
cd src/
python3 -m streamlit run ui/home.py