diff --git a/.gitignore b/.gitignore index 510c487..a122aef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,14 @@ *.env *.asv +*.mltbx *.mat !tests/recordings/*.mat startup.m papers_to_read.csv data/* examples/data/* -examples/mlx-scripts/data/* +toolbox/examples/data/* +toolbox/examples/html/* ._* .nfs* .DS_Store diff --git a/images/toolboxPackaging.png b/images/toolboxPackaging.png new file mode 100644 index 0000000..59a3356 Binary files /dev/null and b/images/toolboxPackaging.png differ diff --git a/toolbox/demos.xml b/toolbox/demos.xml new file mode 100644 index 0000000..3610e9c --- /dev/null +++ b/toolbox/demos.xml @@ -0,0 +1,95 @@ + + + LLMs with MATLAB® + toolbox + HelpIcon.DEMOS + + Connect MATLAB® to the OpenAI® Chat Completions API (which powers ChatGPT™), OpenAI Images API (which powers DALL·E™), Azure® OpenAI Service, and both local and nonlocal Ollama™ models. + + + + + other + AnalyzeScientificPapersUsingFunctionCalls + examples/html/AnalyzeScientificPapersUsingFunctionCalls.html + + + + other + AnalyzeSentimentinTextUsingChatGPTinJSONMode + examples/html/AnalyzeSentimentinTextUsingChatGPTinJSONMode.html + + + + other + AnalyzeTextDataUsingParallelFunctionCallwithChatGPT + examples/html/AnalyzeTextDataUsingParallelFunctionCallwithChatGPT.html + + + + other + CreateSimpleChatBot + examples/html/CreateSimpleChatBot.html + + + + other + CreateSimpleOllamaChatBot + examples/html/CreateSimpleOllamaChatBot.html + + + + other + DescribeImagesUsingChatGPT + examples/html/DescribeImagesUsingChatGPT.html + + + + other + InformationRetrievalUsingOpenAIDocumentEmbedding + examples/html/InformationRetrievalUsingOpenAIDocumentEmbedding.html + + + + other + ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode + examples/html/ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode.html + + + + other + ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode + examples/html/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.html + + + + other + RetrievalAugmentedGenerationUsingChatGPTandMATLAB + examples/html/RetrievalAugmentedGenerationUsingChatGPTandMATLAB.html + + + + other + RetrievalAugmentedGenerationUsingOllamaAndMATLAB + examples/html/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.html + + + + other + SummarizeLargeDocumentsUsingChatGPTandMATLAB + examples/html/SummarizeLargeDocumentsUsingChatGPTandMATLAB.html + + + + other + UsingDALLEToEditImages + examples/html/UsingDALLEToEditImages.html + + + + other + UsingDALLEToGenerateImages + examples/html/UsingDALLEToGenerateImages.html + + + \ No newline at end of file diff --git a/toolboxPackaging.prj b/toolboxPackaging.prj new file mode 100644 index 0000000..3acc0fe --- /dev/null +++ b/toolboxPackaging.prj @@ -0,0 +1,223 @@ + + + LLMs with MATLAB® + MathWorks Text Analytics Toolbox Team + + The MathWorks, Inc. + Large Language Models (LLMs) with MATLAB + Connect MATLAB® to the OpenAI® Chat Completions API (which powers ChatGPT™), OpenAI Images API (which powers DALL·E™), Azure® OpenAI Service, and both local and nonlocal Ollama™ models. + ${PROJECT_ROOT}/images/toolboxPackaging.png + 3.3.0 + ${PROJECT_ROOT}/LLMs with MATLAB®.mltbx + + + + + e1d578f3-4375-4f36-9e04-62c18dbd533f + + true + <?xml version="1.0" encoding="utf-8"?> +<examples> + <exampleCategory name="examples"> + <example name="AnalyzeScientificPapersUsingFunctionCalls" type="html"> + <file type="source">/examples/html/AnalyzeScientificPapersUsingFunctionCalls.html</file> + <file type="main">/examples/AnalyzeScientificPapersUsingFunctionCalls.mlx</file> + <file type="thumbnail"/> + </example> + <example name="AnalyzeSentimentinTextUsingChatGPTinJSONMode" type="html"> + <file type="source">/examples/html/AnalyzeSentimentinTextUsingChatGPTinJSONMode.html</file> + <file type="main">/examples/AnalyzeSentimentinTextUsingChatGPTinJSONMode.mlx</file> + <file type="thumbnail"/> + </example> + <example name="AnalyzeTextDataUsingParallelFunctionCallwithChatGPT" type="html"> + <file type="source">/examples/html/AnalyzeTextDataUsingParallelFunctionCallwithChatGPT.html</file> + <file type="main">/examples/AnalyzeTextDataUsingParallelFunctionCallwithChatGPT.mlx</file> + <file type="thumbnail"/> + </example> + <example name="CreateSimpleChatBot" type="html"> + <file type="source">/examples/html/CreateSimpleChatBot.html</file> + <file type="main">/examples/CreateSimpleChatBot.mlx</file> + <file type="thumbnail"/> + </example> + <example name="CreateSimpleOllamaChatBot" type="html"> + <file type="source">/examples/html/CreateSimpleOllamaChatBot.html</file> + <file type="main">/examples/CreateSimpleOllamaChatBot.mlx</file> + <file type="thumbnail"/> + </example> + <example name="DescribeImagesUsingChatGPT" type="html"> + <file type="source">/examples/html/DescribeImagesUsingChatGPT.html</file> + <file type="main">/examples/DescribeImagesUsingChatGPT.mlx</file> + <file type="thumbnail"/> + </example> + <example name="InformationRetrievalUsingOpenAIDocumentEmbedding" type="html"> + <file type="source">/examples/html/InformationRetrievalUsingOpenAIDocumentEmbedding.html</file> + <file type="main">/examples/InformationRetrievalUsingOpenAIDocumentEmbedding.mlx</file> + <file type="thumbnail"/> + </example> + <example name="ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode" type="html"> + <file type="source">/examples/html/ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode.html</file> + <file type="main">/examples/ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode.mlx</file> + <file type="thumbnail"/> + </example> + <example name="ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode" type="html"> + <file type="source">/examples/html/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.html</file> + <file type="main">/examples/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.mlx</file> + <file type="thumbnail"/> + </example> + <example name="RetrievalAugmentedGenerationUsingChatGPTandMATLAB" type="html"> + <file type="source">/examples/html/RetrievalAugmentedGenerationUsingChatGPTandMATLAB.html</file> + <file type="main">/examples/RetrievalAugmentedGenerationUsingChatGPTandMATLAB.mlx</file> + <file type="thumbnail"/> + </example> + <example name="RetrievalAugmentedGenerationUsingOllamaAndMATLAB" type="html"> + <file type="source">/examples/html/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.html</file> + <file type="main">/examples/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.mlx</file> + <file type="thumbnail"/> + </example> + <example name="SummarizeLargeDocumentsUsingChatGPTandMATLAB" type="html"> + <file type="source">/examples/html/SummarizeLargeDocumentsUsingChatGPTandMATLAB.html</file> + <file type="main">/examples/SummarizeLargeDocumentsUsingChatGPTandMATLAB.mlx</file> + <file type="thumbnail"/> + </example> + <example name="UsingDALLEToEditImages" type="html"> + <file type="source">/examples/html/UsingDALLEToEditImages.html</file> + <file type="main">/examples/UsingDALLEToEditImages.mlx</file> + <file type="thumbnail"/> + </example> + <example name="UsingDALLEToGenerateImages" type="html"> + <file type="source">/examples/html/UsingDALLEToGenerateImages.html</file> + <file type="main">/examples/UsingDALLEToGenerateImages.mlx</file> + <file type="thumbnail"/> + </example> + </exampleCategory> +</examples> + + + + + + + + true + + + + R2024a + latest + false + true + true + true + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${PROJECT_ROOT}/toolbox + + + ${PROJECT_ROOT}/toolbox/+llms + ${PROJECT_ROOT}/toolbox/._azureChat.m + ${PROJECT_ROOT}/toolbox/._messageHistory.m + ${PROJECT_ROOT}/toolbox/._ollamaChat.m + ${PROJECT_ROOT}/toolbox/._openAIChat.m + ${PROJECT_ROOT}/toolbox/azureChat.m + ${PROJECT_ROOT}/toolbox/demos.xml + ${PROJECT_ROOT}/toolbox/examples + ${PROJECT_ROOT}/toolbox/extractOpenAIEmbeddings.m + ${PROJECT_ROOT}/toolbox/messageHistory.m + ${PROJECT_ROOT}/toolbox/ollamaChat.m + ${PROJECT_ROOT}/toolbox/openAIChat.m + ${PROJECT_ROOT}/toolbox/openAIFunction.m + ${PROJECT_ROOT}/toolbox/openAIImages.m + ${PROJECT_ROOT}/toolbox/openAIMessages.m + + + + ${PROJECT_ROOT}/papers_to_read.csv + + + + /System/Volumes/Data/mathworks/devel/sandbox/ccreutzi/llms-with-matlab/LLMs with MATLAB®.mltbx + + + + /System/Volumes/Data/mathworks/devel/jobarchive/Btext/.zfs/snapshot/Btext.2703056.pass.ja1/current/build/matlab + + + + + + + + + true + + + + + true + + + + + true + + + + + true + + + + + true + true + false + false + false + false + false + false + 14.5 + true + false + maci64 + true + + + \ No newline at end of file