> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify-poc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# cohere_classify()

> Classify text into categories with complete API response

Classify text into categories and get the complete API response including confidence scores, labels, and additional
metadata. For a simpler response format, use [`cohere_classify_simple()`][cohere_classify_simple].

## Arguments

This function accepts the same arguments as [`cohere_classify_simple()`][cohere_classify_simple].

## Returns

`JSONB`: The complete API response including classifications array with predictions, confidences, and metadata.

## Related functions

* [`cohere_classify_simple()`][cohere_classify_simple]: simplified response format

[cohere_classify_simple]: /api-reference/pgai/model-calling/cohere/cohere_classify_simple
