Skip to main content
For AI agents: a documentation index is available at https://docs.parallel.ai/llms.txt. The full text of all docs is at https://docs.parallel.ai/llms-full.txt. You may also fetch any page as Markdown by appending .md to its URL or sending Accept: text/markdown.
When you execute a task using the Task API, the response includes both the generated output and its corresponding research basis—a structured explanation detailing the reasoning and evidence behind each result. This transparency enables you to understand how the system arrived at its conclusions and to assess the reliability of the output.

Terminology

To avoid confusion, this document uses the following terminology:
  • Research Basis: The overall feature that provides transparency into how Task API results are generated
  • Basis: The basis field in the API response, which contains an array of field-specific evidence
  • FieldBasis: The specific object type that contains citations, reasoning, and confidence for individual output fields

Task Run Result

Every Task Run Result object contains the following fields: A TaskRunOutput object can be one of two types:
  • TaskRunTextOutput
  • TaskRunJsonOutput
Both have the following fields:

Research Basis Structure

The basis field contains an array of FieldBasis objects that correspond to each top-level field in your output. This allows you to trace exactly which sources on the web contributed to each specific piece of information in your result.

The FieldBasis object

Each FieldBasis object has these components:

Citations

Citations provide the exact URLs where information was found. Each citation includes excerpts from the source that contributed to the output: Having multiple citations for an output field often indicates stronger evidence, as the information was verified across multiple sources.

Reasoning

The reasoning field explains how the system evaluated, compared, and synthesized information from different sources. This is particularly valuable when:
  • Information from different sources needed to be reconciled
  • Calculations or conversions were performed
  • The system needed to make judgments about conflicting data

Confidence Levels

All processors include a confidence rating for each output field:
  • High: Strong evidence from multiple authoritative sources with consistent information
  • Medium: Adequate evidence but with some inconsistencies or from less authoritative sources
  • Low: Limited or conflicting evidence, or information from less reliable sources

Per-element Basis (beta)

By default, basis entries are emitted only for the top-level fields in your output schema. If a top-level field is an array and you need citations for each element, opt in to the field-basis beta header:
When this header is present on task creation requests:
  • The Task API still returns top-level FieldBasis objects.
  • Each element of a Top-level field with an array value gains an additional FieldBasis and it’s own field which follows the pydash-style dot notation (e.g., key_executives.0, key_executives.1).
  • No other schema changes are required; you simply read the expanded basis array.

Examples

Output with Research Basis

Here’s an example of a complete Task Run output that includes research basis information:

High vs. Low Confidence Outputs

Per-Element Basis

When working with arrays in your output, the research basis can provide granular citations for individual elements. Here’s an example showing how basis information is provided for both the parent array and individual elements: