Skip to content

Commit

Permalink
build based on c038343
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Dec 10, 2023
1 parent 426a8a7 commit 33d30d3
Show file tree
Hide file tree
Showing 9 changed files with 4,196 additions and 4,154 deletions.
2 changes: 1 addition & 1 deletion dev/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.9.4","generation_timestamp":"2023-12-09T11:55:41","documenter_version":"1.2.1"}}
{"documenter":{"julia_version":"1.9.4","generation_timestamp":"2023-12-10T14:10:02","documenter_version":"1.2.1"}}
2 changes: 1 addition & 1 deletion dev/examples/readme_examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@
msg.content # 4096-element JSON3.Array{Float64...

msg = aiembed(schema, ["Embed me", "Embed me"]; model="openhermes2.5-mistral")
msg.content # 4096×2 Matrix{Float64}:</code></pre><p>If you&#39;re getting errors, check that Ollama is running - see the <a href="#setup-guide-for-ollama">Setup Guide for Ollama</a> section below.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../getting_started/">« Getting Started</a><a class="docs-footer-nextpage" href="../working_with_aitemplates/">Using AITemplates »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Saturday 9 December 2023 11:55">Saturday 9 December 2023</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
msg.content # 4096×2 Matrix{Float64}:</code></pre><p>If you&#39;re getting errors, check that Ollama is running - see the <a href="#setup-guide-for-ollama">Setup Guide for Ollama</a> section below.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../getting_started/">« Getting Started</a><a class="docs-footer-nextpage" href="../working_with_aitemplates/">Using AITemplates »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Sunday 10 December 2023 14:10">Sunday 10 December 2023</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
34 changes: 23 additions & 11 deletions dev/examples/working_with_aitemplates/index.html

Large diffs are not rendered by default.

8,222 changes: 4,115 additions & 4,107 deletions dev/examples/working_with_ollama/index.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dev/frequently_asked_questions/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dev/getting_started/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
AIMessage(&quot;The capital of France is Paris.&quot;)</code></pre><p>Returned object is a light wrapper with generated message in field <code>:content</code> (eg, <code>ans.content</code>) for additional downstream processing.</p><p>You can easily inject any variables with string interpolation:</p><pre><code class="language-julia hljs">country = &quot;Spain&quot;
ai&quot;What is the capital of \$(country)?&quot;</code></pre><pre><code class="language-plaintext hljs">[ Info: Tokens: 32 @ Cost: $0.0001 in 0.5 seconds
AIMessage(&quot;The capital of Spain is Madrid.&quot;)</code></pre><p>Pro tip: Use after-string-flags to select the model to be called, eg, <code>ai&quot;What is the capital of France?&quot;gpt4</code> (use <code>gpt4t</code> for the new GPT-4 Turbo model). Great for those extra hard questions!</p><h2 id="Using-aigenerate-with-placeholders"><a class="docs-heading-anchor" href="#Using-aigenerate-with-placeholders">Using <code>aigenerate</code> with placeholders</a><a id="Using-aigenerate-with-placeholders-1"></a><a class="docs-heading-anchor-permalink" href="#Using-aigenerate-with-placeholders" title="Permalink"></a></h2><p>For more complex prompt templates, you can use handlebars-style templating and provide variables as keyword arguments:</p><pre><code class="language-julia hljs">msg = aigenerate(&quot;What is the capital of {{country}}? Is the population larger than {{population}}?&quot;, country=&quot;Spain&quot;, population=&quot;1M&quot;)</code></pre><pre><code class="language-plaintext hljs">[ Info: Tokens: 74 @ Cost: $0.0001 in 1.3 seconds
AIMessage(&quot;The capital of Spain is Madrid. And yes, the population of Madrid is larger than 1 million. As of 2020, the estimated population of Madrid is around 3.3 million people.&quot;)</code></pre><p>Pro tip: Use <code>asyncmap</code> to run multiple AI-powered tasks concurrently.</p><p>Pro tip: If you use slow models (like GPT-4), you can use async version of <code>@ai_str</code> -&gt; <code>@aai_str</code> to avoid blocking the REPL, eg, <code>aai&quot;Say hi but slowly!&quot;gpt4</code></p><p>For more practical examples, see the <a href="../examples/readme_examples/#Various-Examples">Various Examples</a> section.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../">« Home</a><a class="docs-footer-nextpage" href="../examples/readme_examples/">Various examples »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Saturday 9 December 2023 11:55">Saturday 9 December 2023</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
AIMessage(&quot;The capital of Spain is Madrid. And yes, the population of Madrid is larger than 1 million. As of 2020, the estimated population of Madrid is around 3.3 million people.&quot;)</code></pre><p>Pro tip: Use <code>asyncmap</code> to run multiple AI-powered tasks concurrently.</p><p>Pro tip: If you use slow models (like GPT-4), you can use async version of <code>@ai_str</code> -&gt; <code>@aai_str</code> to avoid blocking the REPL, eg, <code>aai&quot;Say hi but slowly!&quot;gpt4</code></p><p>For more practical examples, see the <a href="../examples/readme_examples/#Various-Examples">Various Examples</a> section.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../">« Home</a><a class="docs-footer-nextpage" href="../examples/readme_examples/">Various examples »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Sunday 10 December 2023 14:10">Sunday 10 December 2023</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
2 changes: 1 addition & 1 deletion dev/index.html

Large diffs are not rendered by default.

80 changes: 51 additions & 29 deletions dev/reference/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dev/search_index.js

Large diffs are not rendered by default.

0 comments on commit 33d30d3

Please sign in to comment.