Dev / Lead / Ai Integrator (Freelance Between Contracts)
CurrentRECENT TECHNICAL HIGHLIGHTSCreated/trained the full stack of multi-agent NLP ML/AI “Conversational therapist/personal coach/VA”. 2018-current: Designed, coded, trained https://EmpathyBot.net, a natural language processing model initially using a home-brewed pattern-recognition system, pre-LLMs. Built interface for users to easily assist in training the model by critiquing its responses via multi-choice dropdowns for each part of the ML's response. Next, created an API in Python/Flask to integrate NLTK to increase sentiment accuracy. Added Telegram bot. Added multi-model auto-switching between Claude 3 Opus, 3.5 Sonnet, and GPT-4o APIs, as needed. Four-agent prompt-chain functionality: (a) "Compressor" reduces size of longer user queries to decrease cost. (b) "Abuse Detector" determines how far user query is from bot's intended knowledge domain and acts accordingly, which can include banning a user's IP address. (c) "Coach" processes user input and writes a draft response.(d) "Editor" analyzes potential output for accuracy and kicks it back to "Coach" if needed. - Currently: (a) Replacing last ASP code with Flask to remove dependence on MS IIS and (b) Incorporating Retrieval-Augmented Generation (RAG).Automated POS data processing (@ State Park Grocery, TX): Challenge: Process 1000s of XML & PDF files (unpredictable structure) from POS system. Solution 2023: Built a Python app to fully automate reading the files, copying data into a database, data analysis, moving completed files, saving the store hours a day of data entry.Automated invoice processing (@ AdhereHealth): Challenge: hundreds-per-day PDF invoices with inconsistent structure, previously processed manually. Solution: Built Python app to fully automate image pre-processing, text detection (regions), text recognition (OCR), restructuring (assign coordinates to recognized text regions), processing, SQL-in-Python to write to database... see resume at https://oceanmedia.net/bio-scott-swain for full.