Skip to content

Commit

Permalink
Fix data augmentation examples (#624)
Browse files Browse the repository at this point in the history
Fix data augmentation examples in Blog 7: Gorilla OpenFunctions v2.
  • Loading branch information
az1326 authored Sep 9, 2024
1 parent 7056b28 commit bc421d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions blogs/7_open_functions_v2.html
Original file line number Diff line number Diff line change
Expand Up @@ -374,15 +374,15 @@ <h4 id="data_composition"> OpenFunctions Data Composition & Training &#127829</h
</li>
<li style="margin-bottom: 5px;"><strong>Parallel Functions Transformation:</strong> To handle a more complex case where multiple functions will be selected to answer the user's request, we change the original question to ask for multiple outputs.
<pre style="white-space:pre-wrap; width:100%; overflow-x: auto; background-color: #f4f4f4; color: #333;">
<span style="color: #333;">query</span> + [{'name': <span style="color: #d14;">'func1'</span>, 'description': <span style="color: #d14;">'order takeout'</span>}] -> <span style="color: #333;">ans1</span> =>
<span style="color: #333;">query</span> + [{'name': <span style="color: #d14;">'func1'</span>, 'description': <span style="color: #d14;">'order takeout'</span>}, {'name': <span style="color: #d14;">'func2'</span>, 'description': <span style="color: #d14;">'get weather'</span>}] -> [<span style="color: #333;">ans1</span>]
<span style="color: #333;">query1</span> + [{'name': <span style="color: #d14;">'func1'</span>, 'description': <span style="color: #d14;">'order takeout'</span>}] -> <span style="color: #333;">ans1</span> =>
<span style="color: #333;">query2</span> + [{'name': <span style="color: #d14;">'func1'</span>, 'description': <span style="color: #d14;">'order takeout'</span>}] -> [<span style="color: #333;">ans1</span>, <span style="color: #333;">ans2</span>]
</pre>

</li>
<li style="margin-bottom: 5px;"><strong>Multiple Functions Transformation:</strong> Transform the original function with multiple function calls included in the training, so that the model can learn to choose which function call to use.
<pre style="white-space:pre-wrap; width:100%; overflow-x: auto; background-color: #f4f4f4; color: #333;">
<span style="color: #333;">query1</span> + [{'name': <span style="color: #d14;">'func1'</span>, 'description': <span style="color: #d14;">'order takeout'</span>}] -> <span style="color: #333;">ans1</span> =>
<span style="color: #333;">query2</span> + [{'name': <span style="color: #d14;">'func1'</span>, 'description': <span style="color: #d14;">'order takeout'</span>}] -> [<span style="color: #333;">ans1</span>, <span style="color: #333;">ans2</span>]
<span style="color: #333;">query</span> + [{'name': <span style="color: #d14;">'func1'</span>, 'description': <span style="color: #d14;">'order takeout'</span>}] -> <span style="color: #333;">ans1</span> =>
<span style="color: #333;">query</span> + [{'name': <span style="color: #d14;">'func1'</span>, 'description': <span style="color: #d14;">'order takeout'</span>}, {'name': <span style="color: #d14;">'func2'</span>, 'description': <span style="color: #d14;">'get weather'</span>}] -> [<span style="color: #333;">ans1</span>]
</pre>

</li>
Expand Down

0 comments on commit bc421d2

Please sign in to comment.