-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
feat(community): Add property extraction for Nodes and Relationships in LLMGraphTransformer #7256
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Thank you! Tagging in @easwee or @tomasonjo to have a look |
@@ -5,8 +5,8 @@ | |||
"rootDir": "./src", | |||
"target": "ES2021", | |||
"lib": ["ES2021", "ES2022.Object", "DOM"], | |||
"module": "ES2020", | |||
"moduleResolution": "nodenext", | |||
"module": "NodeNext", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably don't want to change tsconfig file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed! I was using Typescript 5.2 locally and faced an issue with module being ES2020
. Reverted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, you have to use TS 5.1 to build locally. It's bad and we need to fix it at some point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that would be good. In any case, I've reverted that particular change. @jacoblee93 do you see any other areas for feedback?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you both! |
…in LLMGraphTransformer (langchain-ai#7256) Co-authored-by: Jacob Lee <jacoblee93@gmail.com>
Adds support for extracting Node and Relationship properties on
LLMGraphTransformer
, similar to the Python version. A key distinction is that arbitrary property extraction is not supported. The caller needs to specify the property keys in advance.This is my first contribution here, so please let me know if I've missed anything, or if there is any feedback. Thank you!