public

Search Flow Classification

Classify whether a query should be answered by search or by chat. This powers the query bar in the Onyx Search UI.

Queries longer than 200 characters are classified as a chat flow without calling an LLM. If classification fails, the endpoint falls back to is_search_flow: false rather than erroring.

post/search/search-flow-classification

Request body

user_querystring required

The query to classify.

Response

Successful Response

is_search_flowboolean required

True when the query looks like a search for documents, false when it should be sent to chat.

Changes

Changed in 1 of the 14 revisions of this API.1