You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -30,15 +30,16 @@ If you would like to use it with MATLAB Desktop, proceed with the following step
30
30
addpath('path/to/llms-with-matlab');
31
31
```
32
32
33
-
4. Set up your OpenAI API key. You can either:
34
-
- Pass it directly to the `openAIChat` class, using the nvp `ApiKey`
35
-
- Or set it as an environment variable using [`setenv`](https://www.mathworks.com/help/matlab/ref/setenv.html) or [`loadenv`](https://www.mathworks.com/help/matlab/ref/loadenv.html):
36
-
```matlab
37
-
setenv("OPENAI_API_KEY","your key here")
33
+
4. Set up your OpenAI API key. Create a `.env` file in the project root directory with the following content.
@@ -240,6 +241,7 @@ To learn how to use this in your workflows, see [Examples](/examples/).
240
241
- [ExampleSummarization.mlx](/examples/ExampleSummarization.mlx): Learn to create concise summaries of long texts with ChatGPT. (Requires Text Analytics Toolbox™)
241
242
- [ExampleChatBot.mlx](/examples/ExampleChatBot.mlx): Build a conversational chatbot capable of handling various dialogue scenarios using ChatGPT. (Requires Text Analytics Toolbox)
242
243
- [ExampleFunctionCalling.mlx](/examples/ExampleFunctionCalling.mlx): Learn how to create agents capable of executing MATLAB functions.
244
+
- [ExampleRetrievalAugmentedGeneration.mlx](/examples/ExampleRetrievalAugmentedGeneration.mlx): Learn about retrieval augmented generation with a simple use case. (Requires Text Analytics Toolbox™)
0 commit comments