import{A as e,d as t,m as n,t as r}from"./plugin-vue_export-helper-DazhzKqf.js";var i=JSON.parse(`{"path":"/guide/examples.html","title":"Examples","lang":"en-US","frontmatter":{},"git":{},"filePathRelative":"guide/examples.md"}`),a={name:`examples.md`};function o(r,i,a,o,s,c){return e(),t(`div`,null,[...i[0]||=[n(`<h1 id="examples" tabindex="-1"><a class="header-anchor" href="#examples"><span>Examples</span></a></h1><p>HyperFlow comes with multiple real-world examples showing standard configurations, local improvement loops, or evolutionary setups.</p><p>You can run single evaluations to test if an agent behaves well out-of-the-box, or you can invoke evolutionary loops so the agent writes patches to its own logic!</p><h2 id="example-domains" tabindex="-1"><a class="header-anchor" href="#example-domains"><span>Example Domains</span></a></h2><ul><li><strong>Bash</strong>: Generates terminal commands.</li><li><strong>Scoring</strong>: Grade student math answers (accept/reject).</li><li><strong>Calculator</strong>: Solve math problems using a tool.</li><li><strong>Fact-check</strong>: Classify statements as true/false.</li><li><strong>Paper Review</strong>: Predict accept/reject for research paper abstracts.</li><li><strong>Git Evolution</strong>: A comprehensive standard flow utilizing patches across an isolated git structure branch.</li></ul><h2 id="running-the-examples" tabindex="-1"><a class="header-anchor" href="#running-the-examples"><span>Running the Examples</span></a></h2><h3 id="evaluate-single-run" tabindex="-1"><a class="header-anchor" href="#evaluate-single-run"><span>Evaluate Single Run</span></a></h3><p>Execute <code>run.py</code> to evaluate the current solver logic strictly once.</p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code class="language-bash"><span class="line"><span class="token builtin class-name">cd</span> examples/bash <span class="token operator">&&</span> python run.py</span>
<span class="line"><span class="token builtin class-name">cd</span> examples/factcheck <span class="token operator">&&</span> python run.py</span>
<span class="line"><span class="token builtin class-name">cd</span> examples/paper_review <span class="token operator">&&</span> python run.py</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="run-evolutionary-self-improvement" tabindex="-1"><a class="header-anchor" href="#run-evolutionary-self-improvement"><span>Run Evolutionary Self-Improvement</span></a></h3><p>Execute <code>run.py evolve</code> (or via specific script parameters depending on the example) to trigger the evolutionary QD loop.</p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code class="language-bash"><span class="line"><span class="token builtin class-name">cd</span> examples/bash <span class="token operator">&&</span> python run.py evolve</span>
<span class="line"><span class="token builtin class-name">cd</span> examples/factcheck <span class="token operator">&&</span> python run.py evolve</span>
<span class="line"><span class="token builtin class-name">cd</span> examples/scoring <span class="token operator">&&</span> python run.py</span>
<span class="line"><span class="token builtin class-name">cd</span> examples/calculator <span class="token operator">&&</span> python run.py</span>
<span class="line"><span class="token builtin class-name">cd</span> examples/git_evolution <span class="token operator">&&</span> python run.py</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>For the git-based evolution:</p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code class="language-bash"><span class="line"><span class="token builtin class-name">cd</span> examples/git_evolution <span class="token operator">&&</span> python run.py <span class="token comment"># 2 generations</span></span>
<span class="line"><span class="token builtin class-name">cd</span> examples/git_evolution <span class="token operator">&&</span> python run.py <span class="token number">5</span> <span class="token comment"># 5 generations</span></span>
<span class="line"><span class="token builtin class-name">cd</span> examples/git_evolution <span class="token operator">&&</span> python run.py <span class="token parameter variable">--reset</span> <span class="token comment"># Start over</span></span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div>`,14)]])}var s=r(a,[[`render`,o]]);export{i as _pageData,s as default};
|