-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Introduce
InstructionFinetuningDataRepository
(#1033)
* feat: Support for finetuning dataset creation WIP: implement initial interface WIP: minimal working implementation WIP: store multiple samples for postgres repo WIP: poetry lock, linting WIP: actually running poetry lock WIP: seperate functions for single and batch storing WIP: test sample validations WIP: `InstructionFinetuningDataHandler` WIP: Support filtering WIP: linting feat: `FileInstructionFinetuningDataRepository` WIP: user-facing functions poetry install * `instruction_finetuning_handler_builder` for easier handler construction temp commit bugfix in samples_with_filter poetry update * feat: use session pooling & pagination in `PostgresInstructionFinetuningDataRepository` poetry lock * docs: Add docstrings to added classes poeytry lock * fix: Pagination for `PostgresInstructionFinetuningDataRepository` poetry lock fix pagination fix test
- Loading branch information
1 parent
89031b4
commit 097a152
Showing
19 changed files
with
3,987 additions
and
1,444 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from .enrich import EnrichDomain as EnrichDomain | ||
from .enrich import EnrichQuality as EnrichQuality | ||
from .file_instruction_finetuning_data_repository import ( | ||
FileInstructionFinetuningDataRepository as FileInstructionFinetuningDataRepository, | ||
) | ||
from .instruction_finetuning_data_handler import EnrichAction as EnrichAction | ||
from .instruction_finetuning_data_handler import ( | ||
InstructionFinetuningDataHandler as InstructionFinetuningDataHandler, | ||
) | ||
from .instruction_finetuning_data_handler import ( | ||
instruction_finetuning_handler_builder as instruction_finetuning_handler_builder, | ||
) | ||
from .instruction_finetuning_data_repository import ( | ||
InstructionFinetuningDataRepository as InstructionFinetuningDataRepository, | ||
) | ||
from .models import InstructionFinetuningSample as InstructionFinetuningSample | ||
from .models import ( | ||
InstructionFinetuningSample_ as InstructionFinetuningSample_, | ||
) | ||
from .models import ( | ||
InstructionFinetuningSampleAttributes as InstructionFinetuningSampleAttributes, | ||
) | ||
from .models import InvalidSampleError as InvalidSampleError | ||
from .models import RawInstructionFinetuningSample as RawInstructionFinetuningSample | ||
from .models import TripletTransformation as TripletTransformation | ||
from .postgres_instruction_finetuning_data_repository import ( | ||
PostgresInstructionFinetuningDataRepository as PostgresInstructionFinetuningDataRepository, | ||
) | ||
|
||
__all__ = [symbol for symbol in dir()] |
Oops, something went wrong.