# Standard RAG Transform Query

**Purpose**: Optimizes user query for better retrieval by clarifying intent and expanding ambiguous terms.

**Pipeline Stage**: Retrieval

**When Called**:

* ✓ Search type is NOT Smart Search (`search_type != SEARCH`)
* ✓ Standalone query < 32,000 characters (context limit check)
* Transforms standalone query before vector search
* **Note**: Skipped when Smart Search is enabled

**Input/Output Example**:

````
User Input:  
"Who is responsible for uploading the report after it's generated by TOOL_X?"

Output:

```json
{{
  "rewritten_query": [
    "report generation process using TOOL_X",
    "person or team responsible for uploading the report after generation"
  ]
}}
```
````

**Configuration:**

```json
{
  "model": "gpt-5-nano",
  "prompt_builder_type": "prompt_builder",
  "output_parser_type": "json",
  "model_kwargs": {
    "retry_config": {
      "timeout": 300,
      "max_retries": 2
    },
    "default_hyperparameters": {
      "reasoning": {
        "effort": "minimal"
      }
    }
  }
}
```
