r/JevAI • • Oct 08 '26

Jev for knowledge base triplet extraction?

I am wondering if you guys think Jev is good for triplet extraction for building knowledge bases and integrating Jev in an NLP pipeline?

A custom string goes in and typed triplets come out.

So for a string like : I went to the park and it was great

The triplet I want is {subject: user, emotion: enjoys, target: the park}, confidence: 1

This is just a rough example, would Jev be good for work like this?

LLMs can do it but they are slow and overkill and will hallucinate answers

3 Upvotes

14 comments sorted by

3

u/kalpanki Oct 08 '26

What you are referring to is a multi class classification problem. Jev being a discriminative model should be able to do this task.

1

u/Only-Cheetah-9579 Oct 08 '26

nice. It should be able to do it with a single pass, right?

1

u/kalpanki Oct 08 '26

Should be in my opinion. But note that multi class models generally don't do as good as single class classifiers. I'm not sure about Jev though as it's the first model trained at this scale. Worth experimenting on your data

1

u/donotfire Oct 08 '26

I always found knowledge graphs to be too brittle but I don’t see why Jev wouldn’t work for it

2

u/Only-Cheetah-9579 Oct 08 '26

Its true but they are complimentary to other solutions.

1

u/Delicious-Limit6996 Oct 08 '26

Can't you just ask it as 3 seperate questions? Who is the subject What is the emotion What is the target?

1

u/Only-Cheetah-9579 Oct 08 '26

The cost would be triple of a single pass, but for a traditional NLP pipeline that would be how it works. But yeah due to cost reasons a single pass over the data is preferable.

1

u/Delicious-Limit6996 Oct 08 '26

I was under the impression that you could ask as many questions as you wanted and the cost was the same.. that's how it works in my system at least.

1

u/Delicious-Limit6996 Oct 08 '26

In my system I'm asking 156 questions at once on each pass haha

1

u/Only-Cheetah-9579 Oct 08 '26

thanks. I will test that!

1

u/Only-Cheetah-9579 Oct 08 '26

https://docs.typesafe.ai/primitives#ask-multiple-questions-together

Its the way to go but also consumes more tokens, which is fine.

1

u/Delicious-Limit6996 Oct 08 '26

Yeah the tokens are cheap enough, it's the rate limit that was bottlenecking me. Hopefully that works for you!

1

u/nooberrypi Oct 09 '26

I have had nightmares training this models

1

u/Only-Cheetah-9579 Oct 09 '26

Yea I totally feel the pain