Book available on Amazon π
https://www.amazon.com/dp/B0FJ2BRXXB
A practical guide to building Generative AI applications
Inspired from programming-GPTs, and based on the repo LLMs-with-MATLAB
This repo has been developed with MATLAB 24b and Python 3.10.
The code can be executed in MATLAB Online and MATLAB Desktop.
Some parts leverage other dev environments like VSCode and Jupyter.
ββPreface
ββChap 1 - Introducing LLMs
ββChap 2 - OpenAI APIs
ββChap 3 - the Art of Prompting
ββChap 4 - Question Answering
ββChap 5 - Agents and Tools
ββChap 6 - Speech to text and Text to speech
ββChap 7 - Vision
ββChap 8 - Image Generation
ββChap 9 - Appendix
ββUtils
Connect to the official MathWorks repo matlab-deep-learning/llms-with-matlab
Setup your environment with dependencies and API keys.
addpath preface\
setup
edit preface\setup.mlxPay attention to the way LLMs learn.
addpath chap1_Introducing_LLMs\
attentionMake your first query in MATLAB.
edit chap2_OpenAI_APIs\chap2_1_first_query.mLearn to manage messages history.
edit chap2_OpenAI_APIs\chap2_1_messages_history.mlxBuild your first chatbot, inspired by toshiakit/MatGPT
Chain, transform, organize, summarize to process large amount of information with LLMs. Learn all the methods.
Build a tidy bookmarking system.
edit chap3_Art_of_prompting\chap3_1_extract_content.m
edit chap3_Art_of_prompting\chap3_2_translate_articles.m
edit chap3_Art_of_prompting\chap3_3_classify_articles.m
edit chap3_Art_of_prompting\chap3_4_summarize_articles.m
edit chap3_Art_of_prompting\chap3_5_scale_processing.mRetrieve relevant information to augment the response of LLMs.
edit chap4_Question_answering\chap4_rag.mlx
edit chap4_Question_answering\chap4_embeddings.mlxChoose the right tool for the job. Think about it in steps.
edit chap5_Agents\chap5_OpenAI_functions.mlxTranscribe and synthetize information as you go.
Generate a daily tech podcast from your favorite website.
edit chap6_stt_tts\chap6_stt.mlxAnalyze images and videos, detect objects.
Build an Optical Character Recognition app.
edit chap7_Vision\Chap7_Vision.mlx
edit chap7_Vision\Chap7_Detecting_cars.mlx
edit chap7_Vision\Chap7_OCR.mlx
edit chap7_Vision\Chap7_Video_understanding.mlxCreate, edit, vary. Let your creativity run loose.
edit chap8_Image_generation\chap8_Image_generation.mlxLearn more about AI, machine learning, deep learning, natural language processing and transformers.
Run open-source LLMs locally with Ollama.
edit chap9_appendix\Chap9_Ollama.mlxexport README.mlx README.md;








