Skip to content

dimatrubca/ai-chatbot-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Chatbot-API

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

Usage

  • 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.

Another Project components

Backend repository: https://github.com/Victor0120/ServerPBL
Frontend repository: https://github.com/encodedemotions/pbl

Screenshots


[Fig. 1 Example questions-answers ]


[Fig. 2 Document with answer highlighted ]

Project demo video: link

About

Rest API for document based question answering

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages