Implementing Question & Answers
If Questions & Answers is not activated for your project, you can email info@rek.ai and we will solve it quickly.
Questions & Answers are recommended in the same manner as other pages. The only difference is the addition of the data-entitytype
attribute.
<div class="rek-prediction" data-entitytype="rekai-qna" data-nrofhits="5"></div>
This will result in questions being recommended along with their answers in an expandable area. The HTML structure and functionality to expand the answers are automatically created.

Parameters
Parameters are added to Questions & Answers in the same way as to the default recommendations.
The most commenly used are:
Number of questions and answers to display.
data-nrofhits="5"
Which section of the website should serve as the source for generating questions?
data-subtree="education"
Only use questions from pages below the current page.
data-userootpath="true"
Automatically adds a heading above the questions. If no questions are returned, the header is not printed.
data-headertext="Questions & Answers"
Term must be question or answer
data-term="school"
Create a dummy test
If you want to see dummy questions for test purpose you can use mock data
<div class="rek-prediction" data-advanced_mockdata="true" data-entitytype="rekai-qna" data-nrofhits="5"></div>