-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DSPy for entity extraction #27
Add DSPy for entity extraction #27
Conversation
…ning with bootstrapping
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #27 +/- ##
==========================================
+ Coverage 93.98% 94.56% +0.58%
==========================================
Files 8 11 +3
Lines 1030 1195 +165
==========================================
+ Hits 968 1130 +162
- Misses 62 65 +3 ☔ View full report in Codecov by Sentry. |
…ionships with inexistent nodes
Yeah, I have not ideas why CodeCov didn't trigger again. I re-run this PR's workflow and it still have that |
…rovide detailed descriptions with context, and updated relationship similarity metric to use dspy
Description
The goal is to improve the entity extraction step of
nano-graphrag
by leveraging from DSPy:TODOs
extract_entities_dspy
to mimicextract_entities
.Challenges
pydantic
fordspy.Signature
may be fuzzy for multiple output fields, which requires the user to be specific in the descriptions.reasoning
or in other output fields, this is true for most of the CoTs at this point.Results
With
dspy
:Without
dspy
: