Skip to content

Commit

Permalink
Increment of love
Browse files Browse the repository at this point in the history
  • Loading branch information
CoralineAda committed Jun 18, 2024
1 parent 20b255e commit c9184ab
Show file tree
Hide file tree
Showing 36 changed files with 113 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .yardoc/checksums
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ app/models/category.rb 4ede7ab2744889bf9e0775446fa5b2b14a252202
app/models/codebook.rb b8791cb6f173f1d951eb4d8145ed1e926b033145
app/models/identity.rb 84e38a50267551f6267ef55b8ac8ef1ba7de46fe
app/models/question.rb 71032e5a85fc6b23609178c529ec4664ea8d8086
lib/clients/open_ai.rb 77fc266843659ed66009ad36bd4d215e57896b2a
lib/clients/open_ai.rb 96ae938372b3a0b552fc366c0e1a0de062ecda67
app/models/experiences.rb 561f0d4c155663936598ecba32afc40893314b4d
app/models/reflects_on.rb a07d70ecef386a1e8eb537345fd07dd16d85ce72
app/jobs/application_job.rb 2d7aea448b6f7b6a9c182cd5369df41b5f338a7c
Expand Down
Binary file modified .yardoc/objects/root.dat
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/ApplicationCable.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ <h2>Defined Under Namespace</h2>
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/ApplicationCable/Channel.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/ApplicationCable/Connection.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/ApplicationController.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ <h2>Direct Known Subclasses</h2>
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/ApplicationHelper.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ <h3 class="signature first" id="title-instance_method">
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/ApplicationJob.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/ApplicationMailer.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/ApplicationRecord.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ <h2>Direct Known Subclasses</h2>
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/CategorizedAs.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ <h2>Overview</h2><div class="docstring">
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Category.html
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ <h3 class="signature " id="histogram-class_method">
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/CategoryExtractorJob.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ <h3 class="signature first" id="perform-instance_method">
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
86 changes: 74 additions & 12 deletions doc/Clients/OpenAi.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,19 @@

</div>

<h2>Overview</h2><div class="docstring">
<div class="discussion">

<p>A wrapper class for the OpenAI API.</p>


</div>
</div>
<div class="tags">


</div>




Expand All @@ -117,7 +128,7 @@ <h2>
<li class="public ">
<span class="summary_signature">

<a href="#request-class_method" title="request (class method)">.<strong>request</strong>(prompt) &#x21d2; Object </a>
<a href="#request-class_method" title="request (class method)">.<strong>request</strong>(prompt) &#x21d2; String </a>



Expand All @@ -131,7 +142,9 @@ <h2>



<span class="summary_desc"><div class='inline'></div></span>
<span class="summary_desc"><div class='inline'>
<p>Sends a prompt to the configured model and returns the relevant portion of the response.</p>
</div></span>

</li>

Expand All @@ -148,33 +161,82 @@ <h2>Class Method Details</h2>
<div class="method_details first">
<h3 class="signature first" id="request-class_method">

.<strong>request</strong>(prompt) &#x21d2; <tt>Object</tt>
.<strong>request</strong>(prompt) &#x21d2; <tt>String</tt>





</h3><table class="source_code">
</h3><div class="docstring">
<div class="discussion">

<p>Sends a prompt to the configured model and returns the relevant portion of the response.</p>


</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">

<li>

<span class='name'>prompt</span>


<span class='type'>(<tt>String</tt>)</span>



&mdash;
<div class='inline'>
<p>the text of the prompt to send to the model.</p>
</div>

</li>

</ul>

<p class="tag_title">Returns:</p>
<ul class="return">

<li>


<span class='type'>(<tt>String</tt>)</span>



&mdash;
<div class='inline'>
<p>the JSON response returned by the API.</p>
</div>

</li>

</ul>

</div><table class="source_code">
<tr>
<td>
<pre class="lines">


3
4
5
6
7
8
9
10
11
12
13
14</pre>
14
15
16
17
18
19</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/clients/open_ai.rb', line 3</span>
<pre class="code"><span class="info file"># File 'lib/clients/open_ai.rb', line 8</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_prompt'>prompt</span><span class='rparen'>)</span>
<span class='id identifier rubyid_client'>client</span> <span class='op'>=</span> <span class='const'>OpenAI</span><span class='op'>::</span><span class='const'>Client</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
Expand All @@ -198,7 +260,7 @@ <h3 class="signature first" id="request-class_method">
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Code.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ <h3 class="signature first" id="histogram-class_method">
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Codebook.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ <h3 class="signature first" id="category_query-class_method">
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/CodebooksController.html
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ <h3 class="signature " id="show-instance_method">
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Experiences.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/ExportToGraphJob.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ <h3 class="signature first" id="perform-instance_method">
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/IdentifiesWith.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Identity.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ <h3 class="signature first" id="histogram-class_method">
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Keyword.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ <h3 class="signature first" id="from-class_method">
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/KeywordExtractorJob.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ <h3 class="signature first" id="perform-instance_method">
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Persona.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ <h3 class="signature first" id="categories-instance_method">
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Question.html
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ <h3 class="signature " id="field-instance_method">
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/QuestionsController.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ <h3 class="signature " id="show-instance_method">
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/ReflectsOn.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/ResponsesHelper.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:25 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/StaticController.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ <h3 class="signature first" id="about-instance_method">
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/SurveyResponse.html
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ <h3 class="signature " id="to_graph-instance_method">
</div>

<div id="footer">
Generated on Sun Jun 16 23:14:05 2024 by
Generated on Sun Jun 16 23:22:26 2024 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.36 (ruby-3.2.2).
</div>
Expand Down
Loading

0 comments on commit c9184ab

Please sign in to comment.