Skip to main content

Get Started

Run locally

make run

Run docker compose

docker compose up

After running the above command, you can access the application at http://localhost:8071

Login:

login

Account: admin
Password: admin

Chat User Interface

Include features:

  • Prompt: Instruction chatbot for generate answer
  • Config: Config model
  • Chat box: Chat with chatbot
  • Services button: Redirect to services page (Ingest, Kibana, Mongo Express)
  • Version: Note for update version

ui_new

Citation

citation

Ingest PDF:

Currently, we support only PDF file format.

ingest

MongoDB & Express

Ingest data to MongoDB

poetry run python src/ingest_database.py --mongodb-host "mongodb://localhost:27017/" --data-path "static/pdf/"

View data store in MongoDB

mongo_express

Elasticsearch & Kibana

Ingest data to Elasticsearch engine

poetry run python src/ingest_search.py --mongodb-host "mongodb://localhost:27017/" --es-host "http://localhost:9200/" --index_name "document"

View data store in Elasticsearch engine

kibana

Cache Chat History

For generating question takes a long time 97(s)/question, we use Redis to cache chat history

redis_pre

Quickly generate question 0.5(s)/question

redis_after