diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 4420e9a..ba1926d 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -14,20 +14,20 @@ pwd # Note that this script will not remove media files. If an mlx has # fewer plots at some point in the future, there will be file system # cruft. Which doesn't hurt the md display in GitHub or elswehere. -changedMlxFiles=`git diff --cached --name-only --diff-filter=d '*.mlx'` +changedMlxFiles=`git diff --cached --name-only --diff-filter=d 'toolbox/examples/*.mlx'` if [ -n "$changedMlxFiles" ]; then # Keep the line break here, we replace end-of-line with "' '" to get the quotes right matlab -batch "for file = {'${changedMlxFiles// -/' '}'}, export(file{1},replace(erase(file{1},'mlx-scripts'),'.mlx','.md')); end" - tmp=${changedMlxFiles//mlx-scripts\//} +/' '}'}, export(file{1},replace(erase(file{1},'toolbox/'),'.mlx','.md')); end" + tmp=${changedMlxFiles//toolbox\//} mdFiles=${tmp//.mlx/.md} for file in $mdFiles; do if [ -d ${file%.md}_media ]; then git add ${file%.md}_media/ fi perl -pi -e "\$cnt++ if /^#/; " \ - -e "\$_ .= \"\nTo run the code shown on this page, open the MLX file in MATLAB®: [mlx-scripts/$(basename $file .md).mlx](mlx-scripts/$(basename $file .md).mlx) \n\" if /^#/ && \$cnt==1;" \ + -e "\$_ .= \"\nTo run the code shown on this page, open the MLX file in MATLAB®: [$(basename $file .md).mlx](/toolbox/examples/$(basename $file .md).mlx) \n\" if /^#/ && \$cnt==1;" \ $file done git add $mdFiles diff --git a/examples/AnalyzeScientificPapersUsingFunctionCalls.md b/examples/AnalyzeScientificPapersUsingFunctionCalls.md index 72c96f0..59343a2 100644 --- a/examples/AnalyzeScientificPapersUsingFunctionCalls.md +++ b/examples/AnalyzeScientificPapersUsingFunctionCalls.md @@ -1,7 +1,7 @@ # Analyze Scientific Papers Using ChatGPT™ Function Calls -To run the code shown on this page, open the MLX file in MATLAB®: [mlx-scripts/AnalyzeScientificPapersUsingFunctionCalls.mlx](mlx-scripts/AnalyzeScientificPapersUsingFunctionCalls.mlx) +To run the code shown on this page, open the MLX file in MATLAB®: [AnalyzeScientificPapersUsingFunctionCalls.mlx](/toolbox/examples/AnalyzeScientificPapersUsingFunctionCalls.mlx) This example shows how to extract recent scientific papers from ArXiv, summarize them using ChatGPT, and write the results to a CSV file using the `openAIFunction` function. diff --git a/examples/AnalyzeSentimentinTextUsingChatGPTinJSONMode.md b/examples/AnalyzeSentimentinTextUsingChatGPTinJSONMode.md index 303ffe9..9152d51 100644 --- a/examples/AnalyzeSentimentinTextUsingChatGPTinJSONMode.md +++ b/examples/AnalyzeSentimentinTextUsingChatGPTinJSONMode.md @@ -1,7 +1,7 @@ # Analyze Sentiment in Text Using ChatGPT™ in JSON Mode -To run the code shown on this page, open the MLX file in MATLAB®: [mlx-scripts/AnalyzeSentimentinTextUsingChatGPTinJSONMode.mlx](mlx-scripts/AnalyzeSentimentinTextUsingChatGPTinJSONMode.mlx) +To run the code shown on this page, open the MLX file in MATLAB®: [AnalyzeSentimentinTextUsingChatGPTinJSONMode.mlx](/toolbox/examples/AnalyzeSentimentinTextUsingChatGPTinJSONMode.mlx) This example shows how to use ChatGPT for sentiment analysis and output the results in JSON format. diff --git a/examples/AnalyzeTextDataUsingParallelFunctionCallwithChatGPT.md b/examples/AnalyzeTextDataUsingParallelFunctionCallwithChatGPT.md index 2fcfa74..91dafdb 100644 --- a/examples/AnalyzeTextDataUsingParallelFunctionCallwithChatGPT.md +++ b/examples/AnalyzeTextDataUsingParallelFunctionCallwithChatGPT.md @@ -1,7 +1,7 @@ # Analyze Text Data Using Parallel Function Calls with ChatGPT™ -To run the code shown on this page, open the MLX file in MATLAB®: [mlx-scripts/AnalyzeTextDataUsingParallelFunctionCallwithChatGPT.mlx](mlx-scripts/AnalyzeTextDataUsingParallelFunctionCallwithChatGPT.mlx) +To run the code shown on this page, open the MLX file in MATLAB®: [AnalyzeTextDataUsingParallelFunctionCallwithChatGPT.mlx](/toolbox/examples/AnalyzeTextDataUsingParallelFunctionCallwithChatGPT.mlx) This example shows how to detect multiple function calls in a single user prompt and use this to extract information from text data. diff --git a/examples/CreateSimpleChatBot.md b/examples/CreateSimpleChatBot.md index 97bd59a..2b42884 100644 --- a/examples/CreateSimpleChatBot.md +++ b/examples/CreateSimpleChatBot.md @@ -1,7 +1,7 @@ # Create Simple ChatBot -To run the code shown on this page, open the MLX file in MATLAB®: [mlx-scripts/CreateSimpleChatBot.mlx](mlx-scripts/CreateSimpleChatBot.mlx) +To run the code shown on this page, open the MLX file in MATLAB®: [CreateSimpleChatBot.mlx](/toolbox/examples/CreateSimpleChatBot.mlx) This example shows how to create a simple chatbot using the `openAIChat` and `messageHistory` functions. diff --git a/examples/CreateSimpleOllamaChatBot.md b/examples/CreateSimpleOllamaChatBot.md index d2603a8..675be4c 100644 --- a/examples/CreateSimpleOllamaChatBot.md +++ b/examples/CreateSimpleOllamaChatBot.md @@ -1,7 +1,7 @@ # Create Simple ChatBot -To run the code shown on this page, open the MLX file in MATLAB®: [mlx-scripts/CreateSimpleOllamaChatBot.mlx](mlx-scripts/CreateSimpleOllamaChatBot.mlx) +To run the code shown on this page, open the MLX file in MATLAB®: [CreateSimpleOllamaChatBot.mlx](/toolbox/examples/CreateSimpleOllamaChatBot.mlx) This example shows how to create a simple chatbot using the `ollamaChat` and `messageHistory` functions. diff --git a/examples/DescribeImagesUsingChatGPT.md b/examples/DescribeImagesUsingChatGPT.md index edc996f..b3d36d6 100644 --- a/examples/DescribeImagesUsingChatGPT.md +++ b/examples/DescribeImagesUsingChatGPT.md @@ -1,7 +1,7 @@ # Describe Images Using ChatGPT™ -To run the code shown on this page, open the MLX file in MATLAB®: [mlx-scripts/DescribeImagesUsingChatGPT.mlx](mlx-scripts/DescribeImagesUsingChatGPT.mlx) +To run the code shown on this page, open the MLX file in MATLAB®: [DescribeImagesUsingChatGPT.mlx](/toolbox/examples/DescribeImagesUsingChatGPT.mlx) This example shows how to generate image descriptions using the addUserMessageWithImages function. To run this example, you need a valid API key from a paid OpenAI™ API account, and a history of successful payment. diff --git a/examples/InformationRetrievalUsingOpenAIDocumentEmbedding.md b/examples/InformationRetrievalUsingOpenAIDocumentEmbedding.md index 331fe1a..42e8c12 100644 --- a/examples/InformationRetrievalUsingOpenAIDocumentEmbedding.md +++ b/examples/InformationRetrievalUsingOpenAIDocumentEmbedding.md @@ -1,7 +1,7 @@ # Information Retrieval Using OpenAI™ Document Embedding -To run the code shown on this page, open the MLX file in MATLAB®: [mlx-scripts/InformationRetrievalUsingOpenAIDocumentEmbedding.mlx](mlx-scripts/InformationRetrievalUsingOpenAIDocumentEmbedding.mlx) +To run the code shown on this page, open the MLX file in MATLAB®: [InformationRetrievalUsingOpenAIDocumentEmbedding.mlx](/toolbox/examples/InformationRetrievalUsingOpenAIDocumentEmbedding.mlx) This example shows how to find documents to answer queries using the 'text\-embedding\-3\-small' document embedding model. Embeddings are used to represent documents and queries in a high\-dimensional space, allowing for the efficient retrieval of relevant information based on semantic similarity. diff --git a/examples/ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode.md b/examples/ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode.md index f00a247..4d3da4a 100644 --- a/examples/ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode.md +++ b/examples/ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode.md @@ -1,7 +1,7 @@ # Process Generated Text in Real Time by Using Ollama™ in Streaming Mode -To run the code shown on this page, open the MLX file in MATLAB®: [mlx-scripts/ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode.mlx](mlx-scripts/ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode.mlx) +To run the code shown on this page, open the MLX file in MATLAB®: [ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode.mlx](/toolbox/examples/ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode.mlx) This example shows how to process generated text in real time by using Ollama in streaming mode. diff --git a/examples/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.md b/examples/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.md index 85ffdbd..60bc164 100644 --- a/examples/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.md +++ b/examples/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.md @@ -1,7 +1,7 @@ # Process Generated Text in Real Time by Using ChatGPT™ in Streaming Mode -To run the code shown on this page, open the MLX file in MATLAB®: [mlx-scripts/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.mlx](mlx-scripts/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.mlx) +To run the code shown on this page, open the MLX file in MATLAB®: [ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.mlx](/toolbox/examples/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.mlx) This example shows how to process generated text in real time by using ChatGPT in streaming mode. diff --git a/examples/RetrievalAugmentedGenerationUsingChatGPTandMATLAB.md b/examples/RetrievalAugmentedGenerationUsingChatGPTandMATLAB.md index 9479d45..257d613 100644 --- a/examples/RetrievalAugmentedGenerationUsingChatGPTandMATLAB.md +++ b/examples/RetrievalAugmentedGenerationUsingChatGPTandMATLAB.md @@ -1,7 +1,7 @@ # Retrieval\-Augmented Generation Using ChatGPT™ and MATLAB -To run the code shown on this page, open the MLX file in MATLAB®: [mlx-scripts/RetrievalAugmentedGenerationUsingChatGPTandMATLAB.mlx](mlx-scripts/RetrievalAugmentedGenerationUsingChatGPTandMATLAB.mlx) +To run the code shown on this page, open the MLX file in MATLAB®: [RetrievalAugmentedGenerationUsingChatGPTandMATLAB.mlx](/toolbox/examples/RetrievalAugmentedGenerationUsingChatGPTandMATLAB.mlx) This example shows how to use retrieval\-augmented generation to generate answers to queries based on information contained in a document corpus. diff --git a/examples/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.md b/examples/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.md index e711e7e..d27e7a3 100644 --- a/examples/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.md +++ b/examples/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.md @@ -1,7 +1,7 @@ # Retrieval\-Augmented Generation Using Ollama™ and MATLAB -To run the code shown on this page, open the MLX file in MATLAB®: [mlx-scripts/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.mlx](mlx-scripts/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.mlx) +To run the code shown on this page, open the MLX file in MATLAB®: [RetrievalAugmentedGenerationUsingOllamaAndMATLAB.mlx](/toolbox/examples/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.mlx) This example shows how to use retrieval\-augmented generation to generate answers to queries based on information contained in a document corpus. diff --git a/examples/SummarizeLargeDocumentsUsingChatGPTandMATLAB.md b/examples/SummarizeLargeDocumentsUsingChatGPTandMATLAB.md index 2a77c1e..a355a8e 100644 --- a/examples/SummarizeLargeDocumentsUsingChatGPTandMATLAB.md +++ b/examples/SummarizeLargeDocumentsUsingChatGPTandMATLAB.md @@ -1,7 +1,7 @@ # Summarize Large Documents Using ChatGPT™ and MATLAB® -To run the code shown on this page, open the MLX file in MATLAB®: [mlx-scripts/SummarizeLargeDocumentsUsingChatGPTandMATLAB.mlx](mlx-scripts/SummarizeLargeDocumentsUsingChatGPTandMATLAB.mlx) +To run the code shown on this page, open the MLX file in MATLAB®: [SummarizeLargeDocumentsUsingChatGPTandMATLAB.mlx](/toolbox/examples/SummarizeLargeDocumentsUsingChatGPTandMATLAB.mlx) This example shows how to use ChatGPT to summarize documents that are too large to be summarized at once. diff --git a/examples/UsingDALLEToEditImages.md b/examples/UsingDALLEToEditImages.md index 132fb0d..3cc88e9 100644 --- a/examples/UsingDALLEToEditImages.md +++ b/examples/UsingDALLEToEditImages.md @@ -1,7 +1,7 @@ # Using DALL·E™ to Edit Images -To run the code shown on this page, open the MLX file in MATLAB®: [mlx-scripts/UsingDALLEToEditImages.mlx](mlx-scripts/UsingDALLEToEditImages.mlx) +To run the code shown on this page, open the MLX file in MATLAB®: [UsingDALLEToEditImages.mlx](/toolbox/examples/UsingDALLEToEditImages.mlx) This example shows how to generate and edit images using the `openAIImages` object. diff --git a/examples/UsingDALLEToGenerateImages.md b/examples/UsingDALLEToGenerateImages.md index d73243d..44a5d5e 100644 --- a/examples/UsingDALLEToGenerateImages.md +++ b/examples/UsingDALLEToGenerateImages.md @@ -1,7 +1,7 @@ # Using DALL·E™ to generate images -To run the code shown on this page, open the MLX file in MATLAB®: [mlx-scripts/UsingDALLEToGenerateImages.mlx](mlx-scripts/UsingDALLEToGenerateImages.mlx) +To run the code shown on this page, open the MLX file in MATLAB®: [UsingDALLEToGenerateImages.mlx](/toolbox/examples/UsingDALLEToGenerateImages.mlx) This example shows how to generate images using the `openAIImages` object. diff --git a/tests/texampleTests.m b/tests/texampleTests.m index e08a5c9..5b971fd 100644 --- a/tests/texampleTests.m +++ b/tests/texampleTests.m @@ -28,7 +28,7 @@ function setUpAndTearDowns(testCase) end import matlab.unittest.fixtures.CurrentFolderFixture - testCase.applyFixture(CurrentFolderFixture("../examples/mlx-scripts")); + testCase.applyFixture(CurrentFolderFixture("../toolbox/examples")); openAIEnvVar = "OPENAI_KEY"; secretKey = getenv(openAIEnvVar); diff --git a/+llms/+azure/apiVersions.m b/toolbox/+llms/+azure/apiVersions.m similarity index 100% rename from +llms/+azure/apiVersions.m rename to toolbox/+llms/+azure/apiVersions.m diff --git a/+llms/+internal/callAzureChatAPI.m b/toolbox/+llms/+internal/callAzureChatAPI.m similarity index 100% rename from +llms/+internal/callAzureChatAPI.m rename to toolbox/+llms/+internal/callAzureChatAPI.m diff --git a/+llms/+internal/callOllamaChatAPI.m b/toolbox/+llms/+internal/callOllamaChatAPI.m similarity index 100% rename from +llms/+internal/callOllamaChatAPI.m rename to toolbox/+llms/+internal/callOllamaChatAPI.m diff --git a/+llms/+internal/callOpenAIChatAPI.m b/toolbox/+llms/+internal/callOpenAIChatAPI.m similarity index 100% rename from +llms/+internal/callOpenAIChatAPI.m rename to toolbox/+llms/+internal/callOpenAIChatAPI.m diff --git a/+llms/+internal/getApiKeyFromNvpOrEnv.m b/toolbox/+llms/+internal/getApiKeyFromNvpOrEnv.m similarity index 100% rename from +llms/+internal/getApiKeyFromNvpOrEnv.m rename to toolbox/+llms/+internal/getApiKeyFromNvpOrEnv.m diff --git a/+llms/+internal/gptPenalties.m b/toolbox/+llms/+internal/gptPenalties.m similarity index 100% rename from +llms/+internal/gptPenalties.m rename to toolbox/+llms/+internal/gptPenalties.m diff --git a/+llms/+internal/hasTools.m b/toolbox/+llms/+internal/hasTools.m similarity index 100% rename from +llms/+internal/hasTools.m rename to toolbox/+llms/+internal/hasTools.m diff --git a/+llms/+internal/needsAPIKey.m b/toolbox/+llms/+internal/needsAPIKey.m similarity index 100% rename from +llms/+internal/needsAPIKey.m rename to toolbox/+llms/+internal/needsAPIKey.m diff --git a/+llms/+internal/sendRequest.m b/toolbox/+llms/+internal/sendRequest.m similarity index 100% rename from +llms/+internal/sendRequest.m rename to toolbox/+llms/+internal/sendRequest.m diff --git a/+llms/+internal/sendRequestWrapper.m b/toolbox/+llms/+internal/sendRequestWrapper.m similarity index 100% rename from +llms/+internal/sendRequestWrapper.m rename to toolbox/+llms/+internal/sendRequestWrapper.m diff --git a/+llms/+internal/textGenerator.m b/toolbox/+llms/+internal/textGenerator.m similarity index 100% rename from +llms/+internal/textGenerator.m rename to toolbox/+llms/+internal/textGenerator.m diff --git a/+llms/+openai/models.m b/toolbox/+llms/+openai/models.m similarity index 100% rename from +llms/+openai/models.m rename to toolbox/+llms/+openai/models.m diff --git a/+llms/+openai/validateMessageSupported.m b/toolbox/+llms/+openai/validateMessageSupported.m similarity index 100% rename from +llms/+openai/validateMessageSupported.m rename to toolbox/+llms/+openai/validateMessageSupported.m diff --git a/+llms/+openai/validateResponseFormat.m b/toolbox/+llms/+openai/validateResponseFormat.m similarity index 100% rename from +llms/+openai/validateResponseFormat.m rename to toolbox/+llms/+openai/validateResponseFormat.m diff --git a/+llms/+stream/responseStreamer.m b/toolbox/+llms/+stream/responseStreamer.m similarity index 100% rename from +llms/+stream/responseStreamer.m rename to toolbox/+llms/+stream/responseStreamer.m diff --git a/+llms/+utils/errorMessageCatalog.m b/toolbox/+llms/+utils/errorMessageCatalog.m similarity index 100% rename from +llms/+utils/errorMessageCatalog.m rename to toolbox/+llms/+utils/errorMessageCatalog.m diff --git a/+llms/+utils/isUnique.m b/toolbox/+llms/+utils/isUnique.m similarity index 100% rename from +llms/+utils/isUnique.m rename to toolbox/+llms/+utils/isUnique.m diff --git a/+llms/+utils/mustBeNonzeroLengthTextScalar.m b/toolbox/+llms/+utils/mustBeNonzeroLengthTextScalar.m similarity index 100% rename from +llms/+utils/mustBeNonzeroLengthTextScalar.m rename to toolbox/+llms/+utils/mustBeNonzeroLengthTextScalar.m diff --git a/+llms/+utils/mustBeTextOrEmpty.m b/toolbox/+llms/+utils/mustBeTextOrEmpty.m similarity index 100% rename from +llms/+utils/mustBeTextOrEmpty.m rename to toolbox/+llms/+utils/mustBeTextOrEmpty.m diff --git a/+llms/+utils/mustBeValidPenalty.m b/toolbox/+llms/+utils/mustBeValidPenalty.m similarity index 100% rename from +llms/+utils/mustBeValidPenalty.m rename to toolbox/+llms/+utils/mustBeValidPenalty.m diff --git a/+llms/+utils/mustBeValidStop.m b/toolbox/+llms/+utils/mustBeValidStop.m similarity index 100% rename from +llms/+utils/mustBeValidStop.m rename to toolbox/+llms/+utils/mustBeValidStop.m diff --git a/+llms/+utils/mustBeValidTemperature.m b/toolbox/+llms/+utils/mustBeValidTemperature.m similarity index 100% rename from +llms/+utils/mustBeValidTemperature.m rename to toolbox/+llms/+utils/mustBeValidTemperature.m diff --git a/+llms/+utils/mustBeValidTopP.m b/toolbox/+llms/+utils/mustBeValidTopP.m similarity index 100% rename from +llms/+utils/mustBeValidTopP.m rename to toolbox/+llms/+utils/mustBeValidTopP.m diff --git a/azureChat.m b/toolbox/azureChat.m similarity index 100% rename from azureChat.m rename to toolbox/azureChat.m diff --git a/examples/mlx-scripts/AnalyzeScientificPapersUsingFunctionCalls.mlx b/toolbox/examples/AnalyzeScientificPapersUsingFunctionCalls.mlx similarity index 100% rename from examples/mlx-scripts/AnalyzeScientificPapersUsingFunctionCalls.mlx rename to toolbox/examples/AnalyzeScientificPapersUsingFunctionCalls.mlx diff --git a/examples/mlx-scripts/AnalyzeSentimentinTextUsingChatGPTinJSONMode.mlx b/toolbox/examples/AnalyzeSentimentinTextUsingChatGPTinJSONMode.mlx similarity index 100% rename from examples/mlx-scripts/AnalyzeSentimentinTextUsingChatGPTinJSONMode.mlx rename to toolbox/examples/AnalyzeSentimentinTextUsingChatGPTinJSONMode.mlx diff --git a/examples/mlx-scripts/AnalyzeTextDataUsingParallelFunctionCallwithChatGPT.mlx b/toolbox/examples/AnalyzeTextDataUsingParallelFunctionCallwithChatGPT.mlx similarity index 100% rename from examples/mlx-scripts/AnalyzeTextDataUsingParallelFunctionCallwithChatGPT.mlx rename to toolbox/examples/AnalyzeTextDataUsingParallelFunctionCallwithChatGPT.mlx diff --git a/examples/mlx-scripts/CreateSimpleChatBot.mlx b/toolbox/examples/CreateSimpleChatBot.mlx similarity index 100% rename from examples/mlx-scripts/CreateSimpleChatBot.mlx rename to toolbox/examples/CreateSimpleChatBot.mlx diff --git a/examples/mlx-scripts/CreateSimpleOllamaChatBot.mlx b/toolbox/examples/CreateSimpleOllamaChatBot.mlx similarity index 100% rename from examples/mlx-scripts/CreateSimpleOllamaChatBot.mlx rename to toolbox/examples/CreateSimpleOllamaChatBot.mlx diff --git a/examples/mlx-scripts/DescribeImagesUsingChatGPT.mlx b/toolbox/examples/DescribeImagesUsingChatGPT.mlx similarity index 100% rename from examples/mlx-scripts/DescribeImagesUsingChatGPT.mlx rename to toolbox/examples/DescribeImagesUsingChatGPT.mlx diff --git a/examples/mlx-scripts/InformationRetrievalUsingOpenAIDocumentEmbedding.mlx b/toolbox/examples/InformationRetrievalUsingOpenAIDocumentEmbedding.mlx similarity index 100% rename from examples/mlx-scripts/InformationRetrievalUsingOpenAIDocumentEmbedding.mlx rename to toolbox/examples/InformationRetrievalUsingOpenAIDocumentEmbedding.mlx diff --git a/examples/mlx-scripts/ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode.mlx b/toolbox/examples/ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode.mlx similarity index 100% rename from examples/mlx-scripts/ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode.mlx rename to toolbox/examples/ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode.mlx diff --git a/examples/mlx-scripts/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.mlx b/toolbox/examples/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.mlx similarity index 100% rename from examples/mlx-scripts/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.mlx rename to toolbox/examples/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.mlx diff --git a/examples/mlx-scripts/RetrievalAugmentedGenerationUsingChatGPTandMATLAB.mlx b/toolbox/examples/RetrievalAugmentedGenerationUsingChatGPTandMATLAB.mlx similarity index 100% rename from examples/mlx-scripts/RetrievalAugmentedGenerationUsingChatGPTandMATLAB.mlx rename to toolbox/examples/RetrievalAugmentedGenerationUsingChatGPTandMATLAB.mlx diff --git a/examples/mlx-scripts/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.mlx b/toolbox/examples/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.mlx similarity index 100% rename from examples/mlx-scripts/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.mlx rename to toolbox/examples/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.mlx diff --git a/examples/mlx-scripts/SummarizeLargeDocumentsUsingChatGPTandMATLAB.mlx b/toolbox/examples/SummarizeLargeDocumentsUsingChatGPTandMATLAB.mlx similarity index 100% rename from examples/mlx-scripts/SummarizeLargeDocumentsUsingChatGPTandMATLAB.mlx rename to toolbox/examples/SummarizeLargeDocumentsUsingChatGPTandMATLAB.mlx diff --git a/examples/mlx-scripts/UsingDALLEToEditImages.mlx b/toolbox/examples/UsingDALLEToEditImages.mlx similarity index 100% rename from examples/mlx-scripts/UsingDALLEToEditImages.mlx rename to toolbox/examples/UsingDALLEToEditImages.mlx diff --git a/examples/mlx-scripts/UsingDALLEToGenerateImages.mlx b/toolbox/examples/UsingDALLEToGenerateImages.mlx similarity index 100% rename from examples/mlx-scripts/UsingDALLEToGenerateImages.mlx rename to toolbox/examples/UsingDALLEToGenerateImages.mlx diff --git a/toolbox/examples/data/WBD_1.pdf b/toolbox/examples/data/WBD_1.pdf new file mode 100644 index 0000000..dca483b Binary files /dev/null and b/toolbox/examples/data/WBD_1.pdf differ diff --git a/toolbox/examples/data/WBD_2.pdf b/toolbox/examples/data/WBD_2.pdf new file mode 100644 index 0000000..786b61b Binary files /dev/null and b/toolbox/examples/data/WBD_2.pdf differ diff --git a/toolbox/examples/data/WBD_3.pdf b/toolbox/examples/data/WBD_3.pdf new file mode 100644 index 0000000..dca483b Binary files /dev/null and b/toolbox/examples/data/WBD_3.pdf differ diff --git a/toolbox/examples/images/bear.png b/toolbox/examples/images/bear.png new file mode 100644 index 0000000..06e5b46 Binary files /dev/null and b/toolbox/examples/images/bear.png differ diff --git a/toolbox/examples/images/mask_bear.png b/toolbox/examples/images/mask_bear.png new file mode 100644 index 0000000..892df43 Binary files /dev/null and b/toolbox/examples/images/mask_bear.png differ diff --git a/extractOpenAIEmbeddings.m b/toolbox/extractOpenAIEmbeddings.m similarity index 100% rename from extractOpenAIEmbeddings.m rename to toolbox/extractOpenAIEmbeddings.m diff --git a/messageHistory.m b/toolbox/messageHistory.m similarity index 100% rename from messageHistory.m rename to toolbox/messageHistory.m diff --git a/ollamaChat.m b/toolbox/ollamaChat.m similarity index 100% rename from ollamaChat.m rename to toolbox/ollamaChat.m diff --git a/openAIChat.m b/toolbox/openAIChat.m similarity index 100% rename from openAIChat.m rename to toolbox/openAIChat.m diff --git a/openAIFunction.m b/toolbox/openAIFunction.m similarity index 100% rename from openAIFunction.m rename to toolbox/openAIFunction.m diff --git a/openAIImages.m b/toolbox/openAIImages.m similarity index 100% rename from openAIImages.m rename to toolbox/openAIImages.m diff --git a/openAIMessages.m b/toolbox/openAIMessages.m similarity index 100% rename from openAIMessages.m rename to toolbox/openAIMessages.m