-
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improve embedding stability and token handling
This commit improves the stability and efficiency of the embedding system: - Add token count validation before processing embeddings - Implement smarter batching based on token limits (8191 max) - Reduce line threshold for big embeds from 600 to 500 - Improve error handling and logging for embedding failures - Optimize tiktoken loading and caching
- Loading branch information
Showing
2 changed files
with
86 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