E2E-AI-Chatbot

An end-to-end AI chatbot: retrieval-augmented generation wired from data to a deployable service.
Chat interface of the Company Brain Assistant, a Cloudflare sub-project of the E2E-AI-Chatbot repository
/ Overview
N. 01
Ingestion, embeddings, retrieval and a serving layer in one repository.
Role
Author
Year
2023
Stack
Python, RAG
Final Result
N. 02
Runs locally and deploys as a small service; the source is on GitHub.
/ Details
N. 03

E2E-AI-Chatbot 🤖

Pipeline Installation User Interface Model Database Search Contact

Flake8 lint Stargazers MIT License LinkedIn

Pipeline

Current:

Current RAG chatbot pipeline diagram

Next stage:

  • FastAPI & Gradio backend
  • Dockerize packages
  • Add UI ingest upload file
  • Add login page
  • Add docs
  • Nginx for http and https
  • K8s
  • CI/CD cloud (AWS/Azure)

Installation Requirements

  • Minimum CPU 8GiB RAM
  • Uncomment line 8 packages = [{include = “**”}] to use all internal packages (Passing Flake8)
  • Install packages and download GPT4All model by
    1. Run locally
      chmod u+x ./setup.sh
      bash ./setup.sh
      
  • Build MongoDB, Mongo Express, Logstash, Elasticsearch and Kibana
    docker compose -f docker-compose-service.yml up
    poetry run python app.py --host 0.0.0.0 --port 8071
    
    1. Run docker
      docker compose up
      

      User Interface App

      poetry run python app.py --host 0.0.0.0 --port 8071
      

      Run on: http://localhost:8071

  1. Chatbot: Chatbot web interface answering a question

  2. Ingest PDF: Ingest PDF page of the chatbot interface

(back to top)

Model

  1. GPT4ALL: Current best commercially licensable model based on GPT-J and trained by Nomic AI on the latest curated GPT4All dataset.

Database

  1. MongoDB Run on: http://localhost:27017
    poetry run python src/ingest_database.py --mongodb-host "mongodb://localhost:27017/" --data-path "static/pdf/"
    

    Mongo Compass (Windows)

    MongoDB Compass showing the ingested collection

Mongo Express

Run on: http://localhost:8081 Mongo Express browsing the chatbot database

Data Migration

Run on: http://localhost:9600

Data migration service dashboard

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

    Elasticsearch run on: http://localhost:9200

Kibana run on: http://localhost:5601 Kibana dashboard on top of Elasticsearch

Contact

(back to top)

/ More Projects
N. 04
Kilomet homepage: a trail runner on a green mountain slope with the headline "Đồng hành cùng runner trên hành trình chạy bộ"
kilomet.com.vn
/2026
Terminal output of the website-kit new-poc.sh script listing nine modules and creating a repo from github-pages/astro
website-kit
/2026
Close-up of textured black sand with subtle wave-like patterns and small sparkling grains.
Have a project in mind?
Let’s Talk
Email me