forked from gusye1234/nano-graphrag
-
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.
Convert Entity Relationship Extraction in DSPy to using CoT (gusye123…
…4#44) * Converted TypedPredictor to CoT and removed pydantic models using experimental DSPy in notebook * Fix entity extraction unittests after removing pydantic models and changing to CoT * Add working random search fine tuning with better metrics * Still cannot get MIPROv2 to work * Working MIPROv2 with TypedChainOfThought * Updated metrics to compute all relationships at once, updated prompt instructions that works for qwen2-7b * Add updated notebooks with fine tuning using MIPROv2 and qwen2-7b as task model * Add compiled model for generate dataset with updated unittests --------- Co-authored-by: terence-gpt <numberchiffre@users.noreply.github.com>
- Loading branch information
Showing
10 changed files
with
16,693 additions
and
807 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
14,525 changes: 14,146 additions & 379 deletions
14,525
examples/finetune_entity_relationship_dspy.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.