-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move embed truncation logic to proper places
This commit reorganizes the code to handle truncation of large files and embeddings in a more consistent way. The changes include: - Moving ordered_map implementation to top of utils.lua - Centralizing truncation logic for embeddings with BIG_EMBED_THRESHOLD - Simplifying outline truncation by moving it to embedding generation - Updating class type definitions to be more consistent - Removing duplicate code related to truncation handlers The main goal is to make the codebase more maintainable by having truncation logic in appropriate locations rather than scattered across different files. Signed-off-by: Tomas Slusny <[email protected]>
- Loading branch information
Showing
5 changed files
with
56 additions
and
75 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
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