Deployed 584d746 with MkDocs version: 1.3.0
This commit is contained in:
parent
81a2cc9164
commit
664786d231
10 changed files with 41 additions and 22 deletions
|
|
@ -405,6 +405,13 @@
|
||||||
Command-line tools
|
Command-line tools
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="#update" class="md-nav__link">
|
||||||
|
Update
|
||||||
|
</a>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
@ -765,6 +772,13 @@
|
||||||
Command-line tools
|
Command-line tools
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="#update" class="md-nav__link">
|
||||||
|
Update
|
||||||
|
</a>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
@ -808,13 +822,17 @@ Consider adding this directory to PATH or, if you prefer to suppress this warnin
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<p>This means that <code>great-ai.exe</code> and <code>large-file.exe</code> are not in your <code>PATH</code>. Either add their containing directory ('C:\Users...\Scripts' in this case) to your <code>PATH</code> or use <code>python3 -m great_ai</code> and <code>python3 -m great_ai.large_file</code> instead of the exe-s.</p>
|
<p>This means that <code>great-ai.exe</code> and <code>large-file.exe</code> are not in your <code>PATH</code>. Either add their containing directory ('C:\Users...\Scripts' in this case) to your <code>PATH</code> or use <code>python3 -m great_ai</code> and <code>python3 -m great_ai.large_file</code> instead of the exe-s.</p>
|
||||||
</div>
|
</div>
|
||||||
|
<h2 id="update">Update<a class="headerlink" href="#update" title="Permanent link">#</a></h2>
|
||||||
|
<p>If you wish to update to the latest version execute:</p>
|
||||||
|
<div class="highlight"><pre><span></span><code><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a>pip install --upgrade great-ai
|
||||||
|
</code></pre></div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<div class="md-source-file">
|
<div class="md-source-file">
|
||||||
<small>
|
<small>
|
||||||
|
|
||||||
Last update:
|
Last update:
|
||||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">July 12, 2022</span>
|
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">July 13, 2022</span>
|
||||||
|
|
||||||
|
|
||||||
</small>
|
</small>
|
||||||
|
|
|
||||||
|
|
@ -19,3 +19,11 @@ After installation, `great-ai` and `large-file` are available as commands. The f
|
||||||
> Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
|
> Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
|
||||||
|
|
||||||
This means that `great-ai.exe` and `large-file.exe` are not in your `PATH`. Either add their containing directory ('C:\Users\...\Scripts' in this case) to your `PATH` or use `python3 -m great_ai` and `python3 -m great_ai.large_file` instead of the exe-s.
|
This means that `great-ai.exe` and `large-file.exe` are not in your `PATH`. Either add their containing directory ('C:\Users\...\Scripts' in this case) to your `PATH` or use `python3 -m great_ai` and `python3 -m great_ai.large_file` instead of the exe-s.
|
||||||
|
|
||||||
|
## Update
|
||||||
|
|
||||||
|
If you wish to update to the latest version execute:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
pip install --upgrade great-ai
|
||||||
|
```
|
||||||
|
|
|
||||||
17
index.html
17
index.html
|
|
@ -900,15 +900,15 @@
|
||||||
<h2 id="hello-world">Hello world<a class="headerlink" href="#hello-world" title="Permanent link">#</a></h2>
|
<h2 id="hello-world">Hello world<a class="headerlink" href="#hello-world" title="Permanent link">#</a></h2>
|
||||||
<div class="highlight"><pre><span></span><code><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a>pip install great-ai
|
<div class="highlight"><pre><span></span><code><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a>pip install great-ai
|
||||||
</code></pre></div>
|
</code></pre></div>
|
||||||
<div class="highlight"><span class="filename">hello-world.py</span><pre><span></span><code><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a><span class="kn">from</span> <span class="nn">great_ai</span> <span class="kn">import</span> <span class="n">GreatAI</span>
|
<div class="highlight"><span class="filename">demo.py</span><pre><span></span><code><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a><span class="kn">from</span> <span class="nn">great_ai</span> <span class="kn">import</span> <span class="n">GreatAI</span>
|
||||||
<a id="__codelineno-1-2" name="__codelineno-1-2" href="#__codelineno-1-2"></a>
|
<a id="__codelineno-1-2" name="__codelineno-1-2" href="#__codelineno-1-2"></a>
|
||||||
<a id="__codelineno-1-3" name="__codelineno-1-3" href="#__codelineno-1-3"></a><span class="nd">@GreatAI</span><span class="o">.</span><span class="n">create</span> <span class="c1">#(1) </span>
|
<a id="__codelineno-1-3" name="__codelineno-1-3" href="#__codelineno-1-3"></a><span class="nd">@GreatAI</span><span class="o">.</span><span class="n">create</span> <span class="c1">#(1) </span>
|
||||||
<a id="__codelineno-1-4" name="__codelineno-1-4" href="#__codelineno-1-4"></a><span class="k">def</span> <span class="nf">hello_world</span><span class="p">(</span><span class="n">name</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-></span> <span class="nb">str</span><span class="p">:</span> <span class="c1">#(2) </span>
|
<a id="__codelineno-1-4" name="__codelineno-1-4" href="#__codelineno-1-4"></a><span class="k">def</span> <span class="nf">greeter</span><span class="p">(</span><span class="n">name</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-></span> <span class="nb">str</span><span class="p">:</span> <span class="c1">#(2) </span>
|
||||||
<a id="__codelineno-1-5" name="__codelineno-1-5" href="#__codelineno-1-5"></a> <span class="k">return</span> <span class="sa">f</span><span class="s2">"Hello </span><span class="si">{</span><span class="n">name</span><span class="si">}</span><span class="s2">!"</span>
|
<a id="__codelineno-1-5" name="__codelineno-1-5" href="#__codelineno-1-5"></a> <span class="k">return</span> <span class="sa">f</span><span class="s2">"Hello </span><span class="si">{</span><span class="n">name</span><span class="si">}</span><span class="s2">!"</span>
|
||||||
</code></pre></div>
|
</code></pre></div>
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<p><code>@GreatAI.create</code> wraps your <code>hello_world</code> function with a <code>GreatAI</code> instance. The function will behave very similarly but:</p>
|
<p><code>@GreatAI.create</code> wraps your <code>greeter</code> function with a <code>GreatAI</code> instance. The function will behave very similarly but:</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>its return value becomes a <code>Trace[str]</code>,</li>
|
<li>its return value becomes a <code>Trace[str]</code>,</li>
|
||||||
<li>it gets a <code>process_batch</code> method for supporting parallel execution,</li>
|
<li>it gets a <code>process_batch</code> method for supporting parallel execution,</li>
|
||||||
|
|
@ -921,17 +921,14 @@
|
||||||
</ol>
|
</ol>
|
||||||
<details class="note">
|
<details class="note">
|
||||||
<summary>Note</summary>
|
<summary>Note</summary>
|
||||||
<p>In practice, <code>hello_world</code> could be an inference function of some AI/ML application. But it could also just wrap a black-box solution of some SaaS. Either ways, it is <a href="https://digital-strategy.ec.europa.eu/en/library/ethics-guidelines-trustworthy-ai" target="_blank">imperative to have continuos oversight</a> of the services you provide and data you process especially in the context of AI/ML applications.</p>
|
<p>In practice, <code>greeter</code> could be an inference function of some AI/ML application. But it could also just wrap a black-box solution of some SaaS. Either ways, it is <a href="https://digital-strategy.ec.europa.eu/en/library/ethics-guidelines-trustworthy-ai" target="_blank">imperative to have continuos oversight</a> of the services you provide and data you process especially in the context of AI/ML applications.</p>
|
||||||
</details>
|
</details>
|
||||||
<div class="highlight"><span class="filename">terminal</span><pre><span></span><code><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a>great-ai hello-world.py
|
<div class="highlight"><span class="filename">terminal</span><pre><span></span><code><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a>great-ai demo.py
|
||||||
</code></pre></div>
|
</code></pre></div>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>Navigate to <a href="http://127.0.0.1:6060">localhost:6060</a> in your browser.</p>
|
<p>Navigate to <a href="http://127.0.0.1:6060">localhost:6060</a> in your browser.</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<div style="display: flex; justify-content: space-evenly;">
|
<p><img alt="demo screen capture" loading="lazy" src="media/demo.gif" /></p>
|
||||||
<p><img alt="" loading="lazy" src="media/hello-world-dashboard.png" /></p>
|
|
||||||
<p><img alt="" loading="lazy" src="media/hello-world-docs.png" /></p>
|
|
||||||
</div>
|
|
||||||
<div class="admonition success">
|
<div class="admonition success">
|
||||||
<p class="admonition-title">Success</p>
|
<p class="admonition-title">Success</p>
|
||||||
<p>Your GreatAI service is ready for production use. Many of the <a href="https://se-ml.github.io" target="_blank">SE4ML best-practices</a> are configured and implemented automatically. To have full control over your service and to understand what else you might need to do in your use case, continue reading this documentation.</p>
|
<p>Your GreatAI service is ready for production use. Many of the <a href="https://se-ml.github.io" target="_blank">SE4ML best-practices</a> are configured and implemented automatically. To have full control over your service and to understand what else you might need to do in your use case, continue reading this documentation.</p>
|
||||||
|
|
@ -964,7 +961,7 @@
|
||||||
<small>
|
<small>
|
||||||
|
|
||||||
Last update:
|
Last update:
|
||||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">July 12, 2022</span>
|
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">July 13, 2022</span>
|
||||||
|
|
||||||
|
|
||||||
</small>
|
</small>
|
||||||
|
|
|
||||||
16
index.md
16
index.md
|
|
@ -54,15 +54,15 @@ Applying AI is becoming increasingly easier but many case studies have shown tha
|
||||||
pip install great-ai
|
pip install great-ai
|
||||||
```
|
```
|
||||||
|
|
||||||
```python title="hello-world.py"
|
```python title="demo.py"
|
||||||
from great_ai import GreatAI
|
from great_ai import GreatAI
|
||||||
|
|
||||||
@GreatAI.create #(1)
|
@GreatAI.create #(1)
|
||||||
def hello_world(name: str) -> str: #(2)
|
def greeter(name: str) -> str: #(2)
|
||||||
return f"Hello {name}!"
|
return f"Hello {name}!"
|
||||||
```
|
```
|
||||||
|
|
||||||
1. `@GreatAI.create` wraps your `hello_world` function with a `GreatAI` instance. The function will behave very similarly but:
|
1. `@GreatAI.create` wraps your `greeter` function with a `GreatAI` instance. The function will behave very similarly but:
|
||||||
1. its return value becomes a `Trace[str]`,
|
1. its return value becomes a `Trace[str]`,
|
||||||
2. it gets a `process_batch` method for supporting parallel execution,
|
2. it gets a `process_batch` method for supporting parallel execution,
|
||||||
3. and it can be deployed using the `great-ai` command-line tool.
|
3. and it can be deployed using the `great-ai` command-line tool.
|
||||||
|
|
@ -70,18 +70,14 @@ def hello_world(name: str) -> str: #(2)
|
||||||
2. [Typing functions](https://docs.python.org/3/library/typing.html){ target=_blank } is recommended in general, however, not required for GreatAI to work.
|
2. [Typing functions](https://docs.python.org/3/library/typing.html){ target=_blank } is recommended in general, however, not required for GreatAI to work.
|
||||||
|
|
||||||
??? note
|
??? note
|
||||||
In practice, `hello_world` could be an inference function of some AI/ML application. But it could also just wrap a black-box solution of some SaaS. Either ways, it is [imperative to have continuos oversight](https://digital-strategy.ec.europa.eu/en/library/ethics-guidelines-trustworthy-ai){ target=_blank } of the services you provide and data you process especially in the context of AI/ML applications.
|
In practice, `greeter` could be an inference function of some AI/ML application. But it could also just wrap a black-box solution of some SaaS. Either ways, it is [imperative to have continuos oversight](https://digital-strategy.ec.europa.eu/en/library/ethics-guidelines-trustworthy-ai){ target=_blank } of the services you provide and data you process especially in the context of AI/ML applications.
|
||||||
|
|
||||||
```sh title="terminal"
|
```sh title="terminal"
|
||||||
great-ai hello-world.py
|
great-ai demo.py
|
||||||
```
|
```
|
||||||
> Navigate to [localhost:6060](http://127.0.0.1:6060) in your browser.
|
> Navigate to [localhost:6060](http://127.0.0.1:6060) in your browser.
|
||||||
|
|
||||||
<div style="display: flex; justify-content: space-evenly;" markdown>
|
{ loading=lazy }
|
||||||
{ loading=lazy }
|
|
||||||
|
|
||||||
{ loading=lazy }
|
|
||||||
</div>
|
|
||||||
|
|
||||||
!!! success
|
!!! success
|
||||||
Your GreatAI service is ready for production use. Many of the [SE4ML best-practices](https://se-ml.github.io){ target=_blank } are configured and implemented automatically. To have full control over your service and to understand what else you might need to do in your use case, continue reading this documentation.
|
Your GreatAI service is ready for production use. Many of the [SE4ML best-practices](https://se-ml.github.io){ target=_blank } are configured and implemented automatically. To have full control over your service and to understand what else you might need to do in your use case, continue reading this documentation.
|
||||||
|
|
|
||||||
BIN
media/demo.gif
Normal file
BIN
media/demo.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.5 MiB |
BIN
media/demo.mp4
Normal file
BIN
media/demo.mp4
Normal file
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 619 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 498 KiB |
File diff suppressed because one or more lines are too long
BIN
sitemap.xml.gz
BIN
sitemap.xml.gz
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue