﻿# Tavily Extract query chunks: raw_content may be selected passages

Treat Tavily query-targeted Extract output as selected passages when chunk controls apply, keeping extraction depth separate from document coverage.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-tavily-extract-targeted-chunks/
Language: en

## Identify the expected coverage

A policy assistant may need the paragraph about account deletion, while an archive process needs the entire policy. Both can call Extract with the same URL, but they should not give their stored text the same completeness label. Decide whether the application expects selected evidence or a full document before building the request.

## Understand query-targeted extraction

The [Extract reference](https://docs.tavily.com/documentation/api-reference/endpoint/extract) describes `query` as intent for reranking extracted chunks. `chunks_per_source` applies when that query is supplied and controls relevant passages placed in `raw_content`. If the page fits within the selected chunks, its full content can be returned; otherwise the field can represent only part of the page.

## Keep selection different from extraction depth

The [official Python client source](https://github.com/tavily-ai/tavily-python/blob/master/tavily/tavily.py) forwards query, chunk selection, and `extract_depth` as separate settings. A deeper extraction mode does not by itself cancel passage selection or prove whole-document coverage. Preserve the effective combination with the acquired text so later consumers can interpret what they received.

For an account-deletion question, a targeted passage might contain the basic procedure but omit a retention exception elsewhere. Before making a universal claim about deletion, request or inspect enough surrounding evidence to resolve that exception. Do not assume that a field named raw_content already supplied every relevant section.

## Store passage provenance explicitly

[Extract best practices](https://docs.tavily.com/documentation/best-practices/best-practices-extract) describes focused snippets and their assembled representation. Preserve the URL, selection query, and chunk policy with the text. If the application splits the returned string into local passages, mark those boundaries as its own processing output rather than claiming exact original document coordinates.

## Test selective and broad reading

Use a source where the main rule and its exception are far apart. Compare targeted extraction with the broader material the application is authorized to acquire. Verify whether the intended answer can be supported from the actual returned text. A successful acquisition that omits a necessary section remains insufficient for that answer, even if the excerpt is relevant.

The existing guides to [structural chunk boundaries](/journal/rag-chunking-structure-token-boundaries/) and [citation completeness](/journal/rag-citation-precision-completeness/) help evaluate this result. Keep source identity, content selection, and answer support separately observable so a missing qualification can be fixed at the right stage instead of merely increasing generation length.
