Skip to content

daviddhc20120601/chat-with-pdf

 
 

Repository files navigation

preview demo video

img.png img_1.png

Step 1 Cloud resources

1.1 create ecs with security group 8501 open

img_2.png img_3.png

need to create/ select if you have vpc setup

img_4.png

create security group

img_5.png img_6.png img_7.png img_8.png img_9.png img_10.png

1.2 create adbpg with fastann enabled

img_11.png img_12.png=

this will take a around 10-15 mins,

get the public access endpoint:

img_14.png img_15.png

create admin account

img_16.png eg: username: aigcpostgres ,password: alibabacloud666 img_17.png

create a database with name: aigcpostgres

img_18.png img_19.png For more information about DMS, please refer to here.

add whitelist ip to 0.0.0.0/0

img_20.png img_21.png

Step 2 env init

img_22.png

apt update && apt install git -y && apt install unzip -y && apt install docker-compose -y && apt install postgresql -y img_23.png

Step 3 install packages

git clone https://github.com/daviddhc20120601/chat-with-pdf.git && cd chat-with-pdf/ img_24.png

Step 4 run the docker

cp .devops/Dockerfile . && docker build . -t haidonggpt/front:1.0 && docker run -d -p 8501:8501 haidonggpt/front:1.0 img_25.png

Step 5 insert you token and start using

img_26.png

5.1 chatgpt token:

steps

5.2 adbpg host name:gp-gs5inp2dl746742muo-master.gpdbmaster.singapore.rds.aliyuncs.com

img_27.png

5.3 port: 5432

img_28.png

5.4 database name: aigcpostgres

img_29.png

5.5 adb pg username: aigcpostgres

5.6 adb pg password: alibabacloud666

step 6 my token and credentials are invalidated and revoked,they are just a demo purpose to show you what are they look like. Do not try to use it , it is a waste of time

About

A chatbot powered by ChatGPT that allows one to query a pdf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.3%
  • Dockerfile 6.0%
  • Shell 2.7%