# Correct flawed natural language queries

> [!WARNING]
> **Preview:** This Pre-GA product is subject to the "Pre-GA Offerings Terms" in the [Service Specific Terms](https://cloud.google.com/terms/service-terms#1), offered "as is" with limited support. See the [launch stage
> descriptions](https://cloud.google.com/products#product-launch-stages) for more details."

This page describes the
[rephrase-user-query](https://github.com/rubenrgzr/nai-code-examples/tree/main/typescript-examples/rephrase-user-query)
example, which illustrates a configuration pattern that improves user queries
before they are processed.

It demonstrates how to fix issues like typos and grammar and augment queries
with user preferences to help return more relevant information to the user.

Additional information and technical specifications are available in the
[README](https://github.com/rubenrgzr/nai-code-examples/blob/main/typescript-examples/rephrase-user-query/README.md)
file.