Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase maximum question length #694

Closed
PaulineJaquot opened this issue May 8, 2024 · 2 comments
Closed

Increase maximum question length #694

PaulineJaquot opened this issue May 8, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@PaulineJaquot
Copy link
Collaborator

Hi,

In the frontend, the maximum question length is set at 1000 characters. This seems to be defined in the "app\frontend\src\components\QuestionInput\QuestionInput.tsx" module. Our users would like to write larger prompts. Is it possible to manually increase the maximum length without any impact on the processing of the query ?

@dayland dayland self-assigned this May 8, 2024
@dayland dayland added the question Further information is requested label May 8, 2024
@dayland
Copy link
Contributor

dayland commented May 8, 2024

You can simply update the code to increase the size a user can enter. You need to be aware of the Max Request (tokens) for the model you are using. Assuming you are using a model with a large enough Max Request (tokens) then you will be ok.

You can find the full list of token capacity per model at https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models

@PaulineJaquot
Copy link
Collaborator Author

Perfect, thanks !

@dayland dayland closed this as completed May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants