-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add message truncation for multi modal (#150)
* add truncation for multi modal embeddings * remove redundant check * Generalize prompt truncate * Fix tests, and error with token count * forgotten readme revert * rename tests, since function has been renamed * minor function renaming * large refactoring * Move back transformations to multimodal messages, save image parameters to reuse this info in token calculation * minor refactor * Fix due to PR comments * Minor comment fix * make test actually work, fix tests
- Loading branch information
1 parent
2dd4667
commit b32e7ef
Showing
17 changed files
with
1,019 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.