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
+18
Original file line number
Diff line number
Diff line change
@@ -235,6 +235,24 @@ ans =
235
235
236
236
You can extract the arguments and write the data to a table, for example.
237
237
238
+
### Obtaining embeddings
239
+
240
+
You can extract embeddings from your text with OpenAI using the function`extractOpenAIEmbeddings` as follows:
241
+
```matlab
242
+
exampleText = "Here is an example!";
243
+
emb = extractOpenAIEmbeddings(exampleText);
244
+
```
245
+
246
+
The resulting embedding is a vector that captures the semantics of your text and can be used on tasks such as retrieval augmented generation and clustering.
247
+
248
+
```
249
+
>> size(emb)
250
+
251
+
ans =
252
+
253
+
1 1536
254
+
```
255
+
238
256
## Examples
239
257
To learn how to use this in your workflows, see [Examples](/examples/).
0 commit comments