Maybe! I've been thinking about it.
I think there's a few ways you could implement as a custom extractor
- extracting entities, and then asking the llm to generate relationships
- gliner has a new multitask model that let's you give an entity + relationship, and it predicts the matching entity to complete the triple (if any). If you had a list of predefined relationships types, you could run every pair
Personally I'm hoping for a true zero-shot model similar to gliner for triples. It's soooo close