How to associate "sons" with "children"

Hi

I have added two question/answer items to my local FAQ:

Who is the wife of Michael?,“The wife of Michael is Hannah.”
What are the names of the children of Michael?,“The names are George, William and Harry,”

When I ask the following question:

q::who are the sons of Michael?

then I will receive as answer

“The wife of Michael is Hannah.”

whereas the correct answer would have been

"“The names are George, William and Harry,”

But I understand that the system does not know that “sons” and “children” are associated with each other.

I guess I just have to add more training data, like for example

What are the names of the children of Michael?,“The names are George, William and Harry,”
What are the names of the sons of Michael?,“The names are George, William and Harry,”

Or are there other possibilities?

Thanks

Michael

Hello again @michaelwechner,
More data is almost always good.
You can also look at the fasttext_tfidf_autofaq config. It’s for Russian but the logic of using fastText as a sentance embedder is there. You can download one of the models from https://fasttext.cc/docs/en/english-vectors.html to use instead of the Russian one.

Hi @yoptar

Thanks again for your quick feedback!

Will give it a try and keep you posted :slight_smile:

Thanks

Michael