﻿# You Python SDK search defaults can request more than raw REST

Align You.com Python SDK and raw Search requests explicitly: current defaults can enable highlights and Knowledge, changing both evidence shape and input budget.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-you-sdk-search-defaults/
Language: en

## Compare effective requests

A developer replaces a raw Search HTTP call with a short Python SDK method and notices different fields and more text. That does not automatically establish a server regression. Capture the effective request configuration first: a library can provide useful defaults that the original hand-written request never asked the service to apply.

## Read the current default behavior

The [page-content guide](https://you.com/docs/guides/search/retrieve-page-content) says raw Search defaults to snippets, while Python SDK 3.6.0 and later requests highlights and `knowledge="core"` unless explicitly disabled. Record the installed version and chosen options. An upgrade comparison should not label those different configurations as identical searches merely because the query string matches.

## Adapt the evidence shape

Highlights appear in their documented contents structure, rather than a universal snippet field. The [Search reference](https://you.com/docs/api-reference/search/v1-search) provides the response shapes to validate. Keep a parser path for the mode the request actually selected. Otherwise the client can receive relevant evidence yet display an empty result because it looked only in the old location.

For a documentation assistant, align extraction options before comparing relevance or answer accuracy. Then count the assembled context again. A richer response can exceed an old input budget even when the number of discovered URLs remains unchanged. Check that any truncation preserves necessary qualifications and parent-source identity.

## Handle Knowledge independently

The [official SDK](https://github.com/youdotcom-oss/youdotcom-python-sdk) documents Knowledge's own optional section and explicit disabling. Give that channel an appropriate consumer instead of assuming every record is a normal page citation. If the application only wants ordinary web evidence, state that choice in its configuration rather than depending on a remembered library default.

## Make migration fixtures comparable

Build a reviewed pair of effective configurations: the original REST behavior and the intended SDK behavior. Verify both response parsing and the exact options sent. If the migration intentionally adopts richer evidence, document that change and evaluate it as a new configuration instead of forcing the previous output snapshot to remain identical.

The local guides to [contract migration](/journal/provider-api-contract-deprecation-migration/) and [content-part handling](/journal/provider-message-content-parts-contract/) help organize this work. Retain version and options with stored observations so later changes can be traced to the client, request policy, or service response rather than collapsed into an unexplained quality fluctuation.
