web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Custom AI Prompt throw...
Power Apps
Unanswered

Custom AI Prompt throwing error "The prompt contained more input tokens than the model supports"

(1) ShareShare
ReportReport
Posted on by 124

Hi

I am creating a custom prompt to get insights from meeting agenda. I am using custom Dataverse table as the data source of the prompt. My table has 584 records, and the agenda title data type is single line. I am getting "The prompt contained more input tokens than the model supports" error.

I want to understand is that why is this limit exceeding and how can I make sure that I am staying within the limit?

 

Usman2_0-1719834121957.png

 

Categories:
I have the same question (0)
  • Verified answer
    CU05111601-0 Profile Picture
    1,091 Super User 2024 Season 2 on at

    Hi @Usman2 , it is exceeding the limit because it tries to put ALL 584 records into your prompt. That boils down to a LOT of text which makes it exceed the limit. I would recommend to limit the records you are providing to the system. 

     

    You might want to add a input variable and feed this input variable via a Power Automate flow. In your power automate flow make sure to filter only the records for the previous months. This will greatly reduce the amount of text you are giving to the prompt which prevents the AI from reaching the limit. 

  • Usman2 Profile Picture
    124 on at

    Hi @Tjan 

    Thank you for the reply. Isn't there any method to somehow limit the columns from the database which will reduce the number of input tokens. Like in PowerApps we have the ShowColumns function to limit the columns we want to collect.

  • CU05111601-0 Profile Picture
    1,091 Super User 2024 Season 2 on at

    HI @Usman2 ! Yes there is! But the prompt interface is not the place to do this. In Power Automate you have almost full freedom to do so! 

  • Usman2 Profile Picture
    124 on at

    @Tjan Thanks for sharing this information.

  • AlexAguirreF Profile Picture
    on at

    Hello!

    I still have doubts about it.
    @Tjan when you says: "That boils down to a LOT of text which makes it exceed the limit", What do you mean?? Whats is the token limit for a input prompt??
    On the documentation i can find:
    - GPT 3.5 support 16K tokens, and GPT 4 support 32Ktokens (https://learn.microsoft.com/en-us/ai-builder/prompt-modelsettings)

    Apart fromthat, I used OpenAI's "Tokenizer web" (https://platform.openai.com/tokenizer), and I calculated the total tokens for my prompt, including the Dataverse table, and it counts 12k tokens approximately.

     

    Where is the trick??

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard