Skip to content

Instantly share code, notes, and snippets.

@ImUrX
Created July 8, 2023 21:34
Show Gist options
  • Save ImUrX/58475a17e5327f1fd5eaeb0fcdac60c2 to your computer and use it in GitHub Desktop.
Save ImUrX/58475a17e5327f1fd5eaeb0fcdac60c2 to your computer and use it in GitHub Desktop.

How to add more answers to Bingus-Search?

Go to the faq_config.json file and then press the following icon to edit it:

Pencil icon

You can add synonyms to an already existing question by finding it and then adding another string inside the "matched_questions" array

When adding a new question, you have to a new answer with the following format into the "faqs" array:

{
  "answer": "Insert a markdown-compatible answer in here",
  "matched_questions": [
    "a question related to the answer",
    "a second question related to the answer (a synonym)",
    "all of these have to be in lowercase!"
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment