forked from instructlab/sdg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-introduce document chunking for knowledge
When generating samples for a knowledge pipeline, we have to chunk the document down to a size that will fit within the model's context size. There was a hack in place that only used a single chunk. The code now iterates over all chunks of the document for creating samples to send through the pipeline. The commit also separates the code for knowledge and skills since the differences between the formats is growing. Closes instructlab#52 Signed-off-by: Russell Bryant <[email protected]>
- Loading branch information
Showing
2 changed files
with
69 additions
and
20 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