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?
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
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
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?