--- title: Enable query suggestions in a Coveo search box slug: '1902' canonical_url: https://docs.coveo.com/en/1902/ collection: leverage-machine-learning source_format: adoc --- # Enable query suggestions in a Coveo search box ## Coveo Atomic Library The [`atomic-search-box`](https://static.cloud.coveo.com/atomic/v3/storybook/index.html?path=/docs/atomic-search-box\--docs) component has built-in support to display query suggestions. To use any required [Query Suggestion (QS)](https://docs.coveo.com/en/1015/) model, specify its associated [query pipeline](https://docs.coveo.com/en/180/) in the `pipeline` property of the parent [`atomic-search-interface`](https://static.cloud.coveo.com/atomic/v3/storybook/index.html?path=/docs/atomic-search-interface\--docs) component, or enforce it through the [search token](https://docs.coveo.com/en/56#pipeline-string-optional). The [`atomic-search-box-query-suggestions`](https://static.cloud.coveo.com/atomic/v3/storybook/index.html?path=/docs/atomic-search-box-query-suggestions\--docs) component can be used to further configure the query suggestion behavior. ## Coveo Headless Library The `suggestions` attribute of the [SearchBox controller](https://docs.coveo.com/en/headless/latest/reference/interfaces/Search.SearchBox.html) lets you implement [query suggestions](https://docs.coveo.com/en/1015/). Configure the [Search Engine](https://docs.coveo.com/en/headless/latest/reference/modules/Search.html) to use the appropriate [query pipeline](https://docs.coveo.com/en/180/), or enforce the pipeline through the search token. ## Coveo JavaScript Search Framework For more details on how to implement [query suggestions](https://docs.coveo.com/en/1015/) in a [Coveo JavaScript Search Framework](https://docs.coveo.com/en/187/) powered interface, see [provide search box suggestions](https://docs.coveo.com/en/340/) in the JavaScript Search Framework documentation.