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

@ Cepal Hellas Financial Services S.A. | Athens, Sterea Ellada, Greece

Senior Manager Data Engineering

@ Publicis Groupe | Bengaluru, India

Senior Data Modeler

@ Sanofi | Hyderabad

VP, Product Management - Data, AI & ML

@ Datasite | USA - MN - Minneapolis

Supervisão de Business Intelligence (BI)

@ Publicis Groupe | São Paulo, Brazil

Data Manager Advertising (f|m|d) (80-100%) - Zurich - Hybrid Work

@ SMG Swiss Marketplace Group | Zürich, Switzerland