API for document based question answering build with FastAPI, exposed by Haystack AI framework, adjusted and configured for e-learning AIChatbot web application.
To serve the API, adjust the values in api/config.py and run:
uvicorn api.app:app -host 0.0.0.0:8000 --port 8000
You will find the Swagger API documentation at http://127.0.0.1:8000/docs
- Create a new document question answering model
- Load a document for a specific model (supported formats: .pdf / .txt)
- Query the doc-qa model
- Create a new faq question answering model
- Load a predefined question-answer
- Query the faq-qa model
- Delete a model by id
To use the API you have to have elasticsearch installed.
Backend repository: https://github.com/Victor0120/ServerPBL
Frontend repository: https://github.com/encodedemotions/pbl

[Fig. 1 Example questions-answers ]

[Fig. 2 Document with answer highlighted ]
Project demo video: link