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:

Last updated