You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using TeiFastReranking as the reranking method, if a string exceeding the Max Tokens supported by the Reranker Model specified on the TeiFastReranking Server side is passed, the server returns an error. As a result, an error warning would also be displayed on the kotaemon interface. Although the is_truncated option was present in the kotaemon code, no processing was implemented for it. To address this, functionality was added to allow specifying the max_tokens option alongside the is_truncated option. If a string exceeding the specified max_tokens is passed, the string will now be truncated accordingly.
Description
When using
TeiFastReranking
as the reranking method, if a string exceeding the Max Tokens supported by the Reranker Model specified on theTeiFastReranking
Server side is passed, the server returns an error. As a result, an error warning would also be displayed on the kotaemon interface. Although theis_truncated
option was present in the kotaemon code, no processing was implemented for it. To address this, functionality was added to allow specifying themax_tokens
option alongside theis_truncated
option. If a string exceeding the specifiedmax_tokens
is passed, the string will now be truncated accordingly.Here is a pull request for just your referece.
https://github.com/Cinnamon/kotaemon/pull/530
Reproduction steps
Screenshots
![DESCRIPTION](LINK.png)
Logs
No response
Browsers
No response
OS
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: