> ## 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 Wenxin (文心)

The `model` value is `BAIDU_WENXIN`. 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 Wenxin answers are collected from the **"文心" (Wenxin) tab of Baidu search**. Unlike [Baidu AI Search](https://dev-docs.trychainshift.ai/en/model-specifics/baidu-ai-search.md), which sits on top of integrated search results, this tab is a separate screen that shows a single conversational answer without a results list. It is the Baidu counterpart of [Google AI Mode](https://dev-docs.trychainshift.ai/en/model-specifics/google-ai.md).

![The Baidu search Wenxin tab after entering a prompt and receiving an answer](https://mintcdn.com/dev-chainshift/7QgyoBtFxRd7MrEY/images/models/baidu-wenxin-web.png?fit=max\&auto=format\&n=7QgyoBtFxRd7MrEY\&q=85\&s=147fa32f8a337a5f6a709a167e7db90d)

The Baidu Wenxin tab screen used for collection. Entering the prompt shows a conversational answer instead of search results, and its body and sources 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 |
| - | - | - |
| Answer body | `content` | Full text shown on screen. Original markdown is at `markdownURL` |
| Reference links | `sources` | URL, title, and domain of each source the answer cites |
| "Searched keywords" above the answer | `fanouts` | List of search queries actually executed |

## 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_WENXIN` 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.