QA Bot to provide answers based on a given context. 🚀
https://drive.google.com/file/d/10u4fYrbESEjL3-q4fgWz7Pry9y1I3j4N/view?usp=sharing
- pip3 install -r requirements.txt
- export OPENAI_API_KEY="{OPENAI_API_KEY}"
- fastapi run
- Server run on 0.0.0.0:8000
- Docs are at on 0.0.0.0:8000/docs
POST /bot/qa
{
"document_path": "{absolute_document_path}",
"document_type": "{pdf|json}",
"questions": [
"{question_1}",
"{question_2}",
"{question_3}"
....
]
}
{
"result": {
"{question}": "{answer}",
}
}
- Python3 and pip3 are pre-requisities that are assumed to be present in the os already
- libmagic and tesseract are pre-requisities that are assumed to be present in the os already
- Python3.12 was used for the developement and testing