Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
schorndorfer committed Nov 13, 2023
1 parent 6a68d41 commit ec6437d
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 11 deletions.
Binary file added _images/gitignore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions _sources/setting-up-openai.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@
" * Don't add it to a github repository\n",
" * Be careful about emailing, sharing via dropbox, one drive, etc.\n",
"\n",
" ```{figure} ./images/gitignore.png\n",
" ---\n",
" width: 600px\n",
" name: gitignore\n",
" ---\n",
" [use .gitignore file](https://github.com/rs-kellogg/krs-llm-cookbook/tree/main)\n",
" ```\n",
"\n",
"<video width=\"99%\" height=\"600\" controls muted markdown=\"1\">\n",
" <source src=\"_images/openai-api-create-api-key.mp4\" type=\"video/mp4\" markdown=\"1\" >\n",
"</video>\n",
Expand Down
2 changes: 1 addition & 1 deletion analyze-text.html
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ <h1>Text Analysis<a class="headerlink" href="#text-analysis" title="Permalink to
<figure class="align-default" id="arxiv-fp-fn-example">
<a class="reference internal image-reference" href="_images/arxiv-fp-fn-example.png"><img alt="_images/arxiv-fp-fn-example.png" src="_images/arxiv-fp-fn-example.png" style="width: 600px;" /></a>
<figcaption>
<p><span class="caption-number">Fig. 7 </span><span class="caption-text"><a class="reference external" href="https://arxiv.org/abs/2310.08102">Paper</a></span><a class="headerlink" href="#arxiv-fp-fn-example" title="Permalink to this image">#</a></p>
<p><span class="caption-number">Fig. 8 </span><span class="caption-text"><a class="reference external" href="https://arxiv.org/abs/2310.08102">Paper</a></span><a class="headerlink" href="#arxiv-fp-fn-example" title="Permalink to this image">#</a></p>
</figcaption>
</figure>
<div class="tip admonition">
Expand Down
7 changes: 5 additions & 2 deletions objects.inv
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
# Project: Python
# Version:
# The remainder of this file is compressed using zlib.
xڥVM��0��W�C U��^JX�e!KC����D�"�$��$��;�W�$4Y�b��7�� ��3����C,>Vr�� �X�F���pP��?�V�N�F����kآ���[��~��|-j��u�`#���Y:k݈Ke�}W�g���16BĂ�Bg���\��0���`���W؂�ч�O>L�E8�L3`��T"9aPc�O{KF�*���t�UZ�+)m21tA+��`n�*&��n&�V��LNa֒�w�[�:����\����>'�����e�he
<,�ў��/Y�b��BZ���bh�����ÙF������C �F0��|��T)C�� �W�ze^t~�B�-�%�2��"�S=�񾕿�߅�:F����j�?���G�r�+紒��eO�����f��u2�Ӵ��7�䡣п ��m�w����]��t0��� C9$���G�xa��(�F�55�����Z���ٲ�?A����Ӂۖ���A���ګ�'�cm�\��;����@�D�܋��ʼG��=�0n�,��m��R�M����_�;<��>O�F��hƬ��y��m.���#iu���dc�S�r��c�I]�S^֧d������";�l����w�^=P�� Q�"ڳw��2<z��;�=�8���x�2EH�{X�b�;7�>1��b!m�ƫ�l�Z�fq�4l�����N9,��n��z������J=F.
xڥVM��0��W�C �B������B��6���D�"�$$�I��w䯵��x�ò�y��x3 ��3����C̾dVr���+c��6y�T`�����x��il�v��x��o���.�%B��6S0�MT�̝��D��2���ѳ{��!b���3���\0�0���b���W؀���?�>L�E85O3`���v�:4��d�KF�(�����SZ�+)mmbh�.
��,�*FR�S+E�MJaҒ �u�{�-����T����>%��zv��e�he2<��Ў��~�BŲ� i��6����fHB�ɇ �8o U�*�@�`$��|��P�� o
��Ta�Džë�R�4��� !OrɆ
�L�6���NL�n�߇�:F�,h j�?���GHY�sZI�z{�v����&�< u����5�7�T补�r�+�(6ۏm@�
i/`89�rHH$G�O���r�(_��4����[cu����m�5�+R��6�UT���� ��<�_k��z�� ]D�i�ݢt�H�Hx��#�k��������^�[�/j��x����Sx����T|5�.jLzY̻��Sa�g�I����F�L��x7�X��fS^��$������"��l�������z�0�v,8DY�h/����3�E�#�4[��?2�G�(B��ü�3ޥy�r?3�����j��J����fc���Rt���a���@���_�#�&^i
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

20 changes: 13 additions & 7 deletions setting-up-openai.html
Original file line number Diff line number Diff line change
Expand Up @@ -463,15 +463,21 @@ <h2>API<a class="headerlink" href="#api" title="Permalink to this heading">#</a>
<div class="sd-card-body docutils">
<div class="sd-card-title sd-font-weight-bold docutils">
Steps</div>
<ul class="simple">
<ul>
<li><p class="sd-card-text">Create API key</p></li>
<li><p class="sd-card-text">Save to disk</p></li>
<li><p class="sd-card-text"><font color='purple'><strong>Keep it safe!</strong></font></p>
<ul>
<ul class="simple">
<li><p class="sd-card-text">Don’t put it in your source code</p></li>
<li><p class="sd-card-text">Don’t add it to a github repository</p></li>
<li><p class="sd-card-text">Be careful about emailing, sharing via dropbox, one drive, etc.</p></li>
</ul>
<figure class="align-default" id="gitignore">
<a class="reference internal image-reference" href="_images/gitignore.png"><img alt="_images/gitignore.png" src="_images/gitignore.png" style="width: 600px;" /></a>
<figcaption>
<p><span class="caption-number">Fig. 7 </span><span class="caption-text"><a class="reference external" href="https://github.com/rs-kellogg/krs-llm-cookbook/tree/main">use .gitignore file</a></span><a class="headerlink" href="#gitignore" title="Permalink to this image">#</a></p>
</figcaption>
</figure>
</li>
</ul>
<video width="99%" height="600" controls muted markdown="1">
Expand Down Expand Up @@ -530,7 +536,7 @@ <h2>API<a class="headerlink" href="#api" title="Permalink to this heading">#</a>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>ChatCompletion(id=&#39;chatcmpl-8KaIVDTnx7KrS3ixglkPLtCy5HarP&#39;, choices=[Choice(finish_reason=&#39;length&#39;, index=0, message=ChatCompletionMessage(content=&quot;As a lion tamer with extensive knowledge in zoology and large cat psychology, being in the same room as a lion is a profound mix of exhilaration, respect, and careful calculation. Each interaction with a lion, regardless of my expertise, requires a high degree of awareness and understanding of lion behavior.\n\nHere are a few aspects of the experience:\n\n1. **Respect for Power**: Being in close proximity to such a formidable predator is an immediate reminder of their strength, agility, and potential for danger. Lions are apex predators with powerful jaws, large teeth, and muscular bodies capable of great force.\n\n2. **Understanding Behaviors**: My background in large cat psychology allows me to interpret the lion&#39;s body language, sounds, and movements. I’m constantly observing signs of agitation, relaxation, curiosity, or playfulness, which dictate how I interact with the animal.\n\n3. **Safety Measures**: Although I have a close relationship with the lions under my care, safety is always a priority. This would involve having protocols in place, such as barriers or escape routes, and never becoming complacent, no matter how well I think I understand the individual animal.\n\n4. **Bonding and Trust**: Building a relationship with a lion relies on trust and positive reinforcement. Lions, like&quot;, role=&#39;assistant&#39;, function_call=None, tool_calls=None))], created=1699916779, model=&#39;gpt-4-1106-preview&#39;, object=&#39;chat.completion&#39;, system_fingerprint=&#39;fp_a24b4d720c&#39;, usage=CompletionUsage(completion_tokens=256, prompt_tokens=53, total_tokens=309))
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>ChatCompletion(id=&#39;chatcmpl-8Kb4SwlV6xYrKhC1QrpIALDyXoH6D&#39;, choices=[Choice(finish_reason=&#39;length&#39;, index=0, message=ChatCompletionMessage(content=&quot;As a lion tamer with extensive knowledge in zoology and large cat psychology, being in the same room as a lion is a profound mix of exhilaration, respect, and careful calculation. Each interaction with a lion, regardless of my expertise, requires a high degree of awareness and understanding of lion behavior.\n\nHere are a few aspects of the experience:\n\n1. **Respect for Power**: Being in close proximity to such a formidable predator is an immediate reminder of their strength, agility, and potential for danger. Lions are apex predators with powerful jaws, large teeth, and muscular bodies capable of great bursts of speed.\n\n2. **Heightened Senses**: Engaging with lions means being hyper-vigilant. Observing every subtle movement, twitch of the ear, flick of the tail, and understanding these cues as communication about the lion&#39;s mood and intentions. As a zoologist, I rely on my knowledge of lion behavior to stay safe and to understand their state of mind.\n\n3. **Communication**: Lions communicate through vocalizations, body language, and even scent-marking. As an expert, interpreting these signals is crucial. I would continually monitor the dynamics of their behavior, adjusting my own behavior and cues to maintain a position of respectful dominance and control.\n\n4. **&quot;, role=&#39;assistant&#39;, function_call=None, tool_calls=None))], created=1699919752, model=&#39;gpt-4-1106-preview&#39;, object=&#39;chat.completion&#39;, system_fingerprint=&#39;fp_a24b4d720c&#39;, usage=CompletionUsage(completion_tokens=256, prompt_tokens=53, total_tokens=309))
</pre></div>
</div>
</div>
Expand All @@ -555,13 +561,13 @@ <h2>API<a class="headerlink" href="#api" title="Permalink to this heading">#</a>

Here are a few aspects of the experience:

1. **Respect for Power**: Being in close proximity to such a formidable predator is an immediate reminder of their strength, agility, and potential for danger. Lions are apex predators with powerful jaws, large teeth, and muscular bodies capable of great force.
1. **Respect for Power**: Being in close proximity to such a formidable predator is an immediate reminder of their strength, agility, and potential for danger. Lions are apex predators with powerful jaws, large teeth, and muscular bodies capable of great bursts of speed.

2. **Understanding Behaviors**: My background in large cat psychology allows me to interpret the lion’s body language, sounds, and movements. I’m constantly observing signs of agitation, relaxation, curiosity, or playfulness, which dictate how I interact with the animal.
2. **Heightened Senses**: Engaging with lions means being hyper-vigilant. Observing every subtle movement, twitch of the ear, flick of the tail, and understanding these cues as communication about the lion’s mood and intentions. As a zoologist, I rely on my knowledge of lion behavior to stay safe and to understand their state of mind.

3. **Safety Measures**: Although I have a close relationship with the lions under my care, safety is always a priority. This would involve having protocols in place, such as barriers or escape routes, and never becoming complacent, no matter how well I think I understand the individual animal.
3. **Communication**: Lions communicate through vocalizations, body language, and even scent-marking. As an expert, interpreting these signals is crucial. I would continually monitor the dynamics of their behavior, adjusting my own behavior and cues to maintain a position of respectful dominance and control.

4. **Bonding and Trust**: Building a relationship with a lion relies on trust and positive reinforcement. Lions, like</span></p>
4. **</span></p>
<div class="admonition-usage-https-platform-openai-com-usage admonition">
<p class="admonition-title"><a class="reference external" href="https://platform.openai.com/usage">Usage</a></p>
<figure class="align-default" id="openai-billing">
Expand Down

0 comments on commit ec6437d

Please sign in to comment.