Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 540 Bytes

README.md

File metadata and controls

16 lines (9 loc) · 540 Bytes

ChatPDFAPI

Webservice-REST API for Q&A ChatBot based on PDF files (basic version) Check related Post on Medium

Create Docker Image

docker build -t chatpdfapi:v1 .

run Docker container

docker run -p 8001:8001 -e OPENAI_API_KEY=youropenai_key --name chatpdfapi chatpdfapi:v1

test code

curl -X POST -H "Content-Type: application/json" -d '{"source": "unknown", "question": "what is gpt-4?"}' http://localhost:8001/ask