Skip to content

Personalization: mention token limits #3580

@CaroFG

Description

@CaroFG

The max query length is 2048 tokens so the userContext + q should be under 2048 Cohere tokens.

https://docs.cohere.com/v2/docs/tokens-and-tokenizers#what-is-a-token

One word tends to be about 2-3 tokens
A paragraph is about 128 tokens

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions