{% extends 'base.html' %} {% block title %}Create QA Pairs{% endblock %} {% block content %}

Generate Content

Generate content from text documents using the {{ provider }} provider.

Content Types:
  • QA Pairs: Generate question-answer pairs from text
  • Summary: Generate a summary of the text
  • Chain of Thought: Generate Chain of Thought reasoning examples from text
  • CoT Enhancement: Enhance existing tool-use conversations with Chain of Thought reasoning
{{ form.csrf_token }}
{% if input_files %}
{{ form.input_file(class="form-control", placeholder="Path to input text file") }}
{% else %} {{ form.input_file(class="form-control", placeholder="Path to input text file") }} {% endif %} {% if form.input_file.errors %}
{% for error in form.input_file.errors %} {{ error }} {% endfor %}
{% endif %}
Enter the path to the text file you want to process.
{{ form.content_type(class="form-select") }} {% if form.content_type.errors %}
{% for error in form.content_type.errors %} {{ error }} {% endfor %}
{% endif %}
Select the type of content you want to generate.
{{ form.num_pairs(class="form-control", placeholder="Number of QA pairs to generate") }} {% if form.num_pairs.errors %}
{% for error in form.num_pairs.errors %} {{ error }} {% endfor %}
{% endif %}
Number of items to generate (applies to QA pairs and some other content types).

{{ form.model(class="form-control", placeholder="Leave blank for default model") }}
Specify a model name to use instead of the default.
{{ form.api_base(class="form-control", placeholder="Leave blank for default API URL") }}
Specify a custom API base URL.
{{ form.submit(class="btn btn-primary") }}
{% endblock %} {% block scripts %} {% endblock %}