Nov. 15, 2023, 5:18 a.m. | Unconventional Coding

Unconventional Coding www.youtube.com

In today's video I create a simple Python + HTMX chatbot that you can upload PDF files to and let it answer questions about it using the new ChatGPT Assistants API of OpenAI

GitHub: https://github.com/unconv/threddy

Support: https://buymeacoffee.com/unconv
Consultations: https://www.buymeacoffee.com/unconv/e/146735
Memberships: https://www.buymeacoffee.com/unconv/membership

00:00 Intro
00:34 Flask boilerplate
01:49 Copy styles and HTML
04:08 Create new_chat endpoint
06:21 Create load_chat endpoint
10:46 Create conversations endpoint
14:16 Create send_message endpoint
17:47 Create get_response endpoint
24:38 Reset form on submit (badly)
26:33 Saving conversations …

api assistants boilerplate chat chatbot chatgpt embeddings files flask html htmx intro new chatgpt openai pdf python questions simple video

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US

Research Engineer

@ Allora Labs | Remote

Ecosystem Manager

@ Allora Labs | Remote

Founding AI Engineer, Agents

@ Occam AI | New York