Skip to content

NarendrenSaravanan/question_answers_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QA BOT

QA Bot to provide answers based on a given context. 🚀

DEMO VIDEO

https://drive.google.com/file/d/10u4fYrbESEjL3-q4fgWz7Pry9y1I3j4N/view?usp=sharing

SETUP

  • pip3 install -r requirements.txt
  • export OPENAI_API_KEY="{OPENAI_API_KEY}"

RUN QA BOT

API DOCS

Fetch Answers API

POST /bot/qa

Payload

{
  "document_path": "{absolute_document_path}",
  "document_type": "{pdf|json}",
  "questions": [
    "{question_1}",
    "{question_2}",
    "{question_3}"
    ....
  ]
}

Responses

{
  "result": {
    "{question}": "{answer}",
  }
}

Note:

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published