Set token limitation off in Azure-OpenAI classification service or increase the maximum token count.

Reinaldo Agostinho de Souza Filho 21 Reputation points
2022-10-18T19:45:49.52+00:00

I want to use the OpenAI's service to classify a piece of text, but it exceeds the token limit of 2048. Can this limitation be increased or removed?

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,218 questions
0 comments No comments
{count} votes

Accepted answer
  1. Chris Hoder - MSFT 96 Reputation points Microsoft Employee
    2022-10-28T16:07:12.677+00:00

    Hi @Reinaldo Agostinho de Souza Filho ,

    The token limit cannot be increased for a specific model. But the text-davinci-002 model has a 4000 token limit. If your document is larger than that, you will need to do some sort of chunking technique. We are working on guides for this. How you chunk does depend a bit on the use case but you can use heuristics or use embeddings to do a semantic search over portions of the document

    Thanks!
    Chris

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful