# parse_basis

> **Function** in `langchain_parallel`

📖 [View in docs](https://reference.langchain.com/python/langchain-parallel/tasks/parse_basis)

Extract citations, low-confidence fields, and `interaction_id`.

Saves Task-API consumers the boilerplate of walking the result shape to
pull out per-field citations, find which fields the model wasn't sure
about, and grab the `interaction_id` for multi-turn chaining.

Works on results from :class:`ParallelTaskRunTool`,
:class:`ParallelDeepResearch`, and individual entries from
:class:`ParallelTaskGroup` / :class:`ParallelEnrichment` batches.

## Signature

```python
parse_basis(
    result: dict[str, Any],
) -> dict[str, Any]
```

## Description

**Example:**

```python
from langchain_parallel import ParallelDeepResearch, parse_basis

result = ParallelDeepResearch().invoke("Founder of SpaceX?")
parsed = parse_basis(result)
for field in parsed["low_confidence_fields"]:
    print(f"low confidence: {field}")
for field, cites in parsed["citations_by_field"].items():
    print(f"{field}: {len(cites)} citation(s)")
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `result` | `dict[str, Any]` | Yes | A Task result dict — the value returned by ``.invoke()`` / ``.run()`` on a Task surface, or one entry from a batch surface. |

## Returns

`dict[str, Any]`

Dict with three keys:

---

[View source on GitHub](https://github.com/parallel-web/langchain-parallel/blob/c1f8c1d657b86eaf948c363f84fed6ea6bd65754/langchain_parallel/tasks.py#L252)