The title pretty much says it all. I want to set a minimum number of tokens/ words/ characters used for an answer. I have tried the obvious, i.e., telling it in the prompt and the Assistans’ instructions about how long the answer should be in terms of tokens, words, and characters. Thus far, the answers always fall short.
The prompt asks the Assistant to answer four questions with the following character size that should be aimed for.
- 1500 characters
- 500 characters
- 1000 characters
- 1000 characters
I have used this article to convert characters into tokens:
https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them
One obvious but kind of inelegant solution would be to create four assistants who answer the questions subsequently. However, this would introduce redundancies in the answers as the questions are on the same topic. I could circumvent that somewhat by feeding it the answer of the previous Assistant in the chain, but this seems unnecessarily wasteful of input tokens.
Thanks in advance for your answers!