> ## Documentation Index
> Fetch the complete documentation index at: https://dev-docs.trychainshift.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Baidu AI Search (百度AI搜索)

The `model` value is `BAIDU_AI_SEARCH`. Any behavior not listed here follows the [Supported models](https://dev-docs.trychainshift.ai/en/models.md) table as-is.

## Where answers are collected

Baidu AI Search answers are collected from the **AI summary answer shown at the top of the Baidu integrated search ("综合" tab) results page**. The prompt is entered as the search query, and the AI answer block at the top of the results is collected. It is the Baidu counterpart of [Google Overview](https://dev-docs.trychainshift.ai/en/model-specifics/google-overview.md).

![An AI summary answer block shown at the top of Baidu search results](https://mintcdn.com/dev-chainshift/tTF-oPOXg7ZQB-Ih/images/models/baidu-ai-search-web.png?fit=max\&auto=format\&n=tTF-oPOXg7ZQB-Ih\&q=85\&s=84babdd8c3ba9e60424f1ee0a390989b)

The Baidu search results screen used for collection. The prompt is entered as the search query, and the body and sources of the AI summary block at the top are collected.

Collection conditions are as follows.

* Collection happens **without signing in**. An account's history and personalization settings do not affect the answer.
* **The prompt is entered verbatim**. It is not rewritten or translated.
* Only one prompt is asked **in a new conversation**. No context from earlier questions is mixed in.

Screen elements map to answer object fields as follows.

| Screen element | Field | Notes |
| - | - | - |
| AI summary body | `content` | Full text in the expanded state. Original markdown is at `markdownURL` |
| Source links next to sentences | `sources` | URL, title, and domain of each source the answer cites |
| Searches run while generating the answer | `fanouts` | List of search queries actually executed |

> [!NOTE]
>
> **Some questions never get an AI summary.** Baidu does not show an AI summary answer for every search query. For such prompts there is no answer to collect, so the run ends as `FAILED`. This is the expected outcome, not a collection error. No credits are deducted. In this case the answer's `failureReason` is `ANSWER_NOT_GENERATED`. A temporary collection failure is reported as `COLLECTION_ERROR` instead.

## Model-specific behavior

Because it is a Chinese service, answers are collected only in `CN`.

* Do not mix it into runs for other regions. If you put `CHATGPT` and `BAIDU_AI_SEARCH` together in `models` and set `region` to `KR`, the ChatGPT collection is rejected as well.
* Fan-out is provided. The answer's `fanouts` is filled with the list of search queries.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.