Skip to content

Commit

Permalink
Deployed 589281a to pr-1061 with MkDocs 1.6.1 and mike 2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
plaguss committed Nov 19, 2024
1 parent 985e7b3 commit 773ecbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pr-1061/search/search_index.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5085,10 +5085,10 @@ <h2 id="build-the-pipeline">Build the pipeline<a class="headerlink" href="#build
</span></code></pre></div>
<ol>
<li>
<p>Download a single page for the demo. We could donwnload first the pages, or apply the same procedure to any type of data we want.</p>
<p>Download a single page for the demo. We could donwnload first the pages, or apply the same procedure to any type of data we want. In a real world use case, we would want to make a dataset from these documents first.</p>
</li>
<li>
<p>Define the structure required for the answer using Pydantic. In this case we want for each page, a list with questions and answers (additionally we've added distractors, but can be ignored for this case). So our output will be a <code>ExamQuestions</code> model, which is a list of <code>ExamQuestion</code>, where each one consists in the <code>question</code> and <code>answer</code> fields as string fields.</p>
<p>Define the structure required for the answer using Pydantic. In this case we want for each page, a list with questions and answers (additionally we've added distractors, but can be ignored for this case). So our output will be a <code>ExamQuestions</code> model, which is a list of <code>ExamQuestion</code>, where each one consists in the <code>question</code> and <code>answer</code> fields as string fields. The language model will use the field descriptions to generate the values.</p>
</li>
<li>
<p>Use the system prompt to guide the model towards the behaviour we want from it. Independently from the structured output we are forcing the model to have, it helps if we pass the format expected in our prompt.</p>
Expand Down

0 comments on commit 773ecbf

Please sign in to comment.