Find answers from the community

Updated 3 months ago

Hi I have given the mentioned data as

Hi , I have given the mentioned data as tuples . And i asked a simple question from those tuples. But the model is unable to give me the answer
Can someone tell me why is it happening and what can be a possible solution for this?
Attachments
Screenshot_2023-06-27_at_4.52.27_PM.png
Screenshot_2023-06-27_at_4.50.15_PM.png
L
G
k
9 comments
The KG retrieval is pretty basic. It extracts keywords from the query (as you can see in the logs) and then uses those keywords to find triplets that have the same subject (and the triplets are in the form subj, rel, obj

So, the extracted keywords did not end up matching any subjects from your triplets
But the subject was there in the tuples
orderes and polo shirt both were there in the tuples
So there are 3 things:-
sub , rel , obj
If i am already providing rel and obj then it should give me the subject ..That is the only purpose of using this.
If it can not give me any data how am i going to use this model
If we provide all 3 triplets why is this needed
Sorry, maybe I should clarify.

Yes, you provided subj, rel, and obj

At query time, keywords are extracted from the query string, and those query keywords are used to find triplets that have the same subj as an extracted keyword

In your case, the subj are all names, and the query did not contain a name.

A quick solution here might be to also insert the opposite triplets (polo shirt, ordered by, person1)

There is also an embedding mode, but it doesn't get activated properly when inserting triplets manually. Maybe that could be a PR to make in the future
Would it make more sense to be able to query from both sides? Without having the restriction for subject to be compulsorily present in the keywords of the query. We can make either subject or object to be present?
Yea it could make sense to do. Might be a helpful PR to make! πŸ‘
thanks, Can you help point to the code where this logic exists if possible, will try to see if I can submit a PR?
Add a reply
Sign up and join the conversation on Discord