Answers Advanced Module 1 Assessment

Hi team! I am having trouble with the answers advanced track.

Here is my sandbox account link: https://sandbox.yext.com/s/2613100/answers/experiences/configuration/answers/edit

The assessment grader says that I am getting “Add the Boost Entities Query Rule” wrong, but everything seems to be working as described in the instructions in the staging environment. Everything is also published and committed. Any help would be greatly appreciated!

Thanks!

Hi @Lizzie_Alvarado_Ford,

Thanks for this question, and welcome to the Hitchhikers Community!

Try adding both search terms – "job" and "apply" – from step 12 into a single query rule. You can format the criteria like this:

      "criteria": {
        "searchTermContains": [
          "<INSERT_SEARCH_TERM>",
          "<INSERT_SEARCH_TERM>"
        ]
      },

You’re still getting the correct results with the separate rules, but our grading logic might be looking for the single one.

Let me know if that works!

Thanks,
Jamie

That was it! you are the best! Kept me from banging my head against a Hitchhikers wall today :slight_smile:

No problem, @Lizzie_Alvarado_Ford! :grinning_face_with_smiling_eyes:

Hi @Jamie_Kim,

I am having the same issue here, do you have any insight on what might be wrong?

ID: 2658872

Here is my code:

{
  "$schema": "https://schema.yext.com/config/answers/answers-config/v1",
  "$id": "answers",
  "name": "answers",
  "supportedLocales": [],
  "countryRestrictions": [],
  "verticals": {
    "community_stories": {
      "entityTypes": [
        "ce_communityStory"
      ],
      "name": "Community Stories",
      "searchableFields": {
        "builtin.entityType": {
          "nlpFilter": true
        },
        "c_goal": {
          "textSearch": true
        },
        "c_theme": {
          "nlpFilter": true
        },
        "name": {
          "textSearch": true
        }
      },
      "sortBys": [],
      "source": "KNOWLEDGE_MANAGER"
    },
    "events": {
      "entityTypes": [
        "event"
      ],
      "name": "Events",
      "searchableFields": {
        "builtin.entityType": {
          "nlpFilter": true
        },
        "name": {
          "textSearch": true
        }
      },
      "sortBys": [],
      "source": "KNOWLEDGE_MANAGER"
    },
    "faqs": {
      "entityTypes": [
        "faq"
      ],
      "name": "faqs",
      "savedSearchId": "121202151",
      "searchableFields": {
        "builtin.entityType": {
          "nlpFilter": true
        },
        "keywords": {
          "textSearch": true
        },
        "question": {
          "semanticTextSearch": true
        }
      },
      "sortBys": [],
      "source": "KNOWLEDGE_MANAGER"
    },
    "help_articles": {
      "entityTypes": [
        "helpArticle"
      ],
      "name": "Help Articles",
      "searchableFields": {
        "body": {
          "documentSearch": true
        },
        "builtin.entityType": {
          "nlpFilter": true
        },
        "name": {
          "textSearch": true
        }
      },
      "sortBys": [],
      "source": "KNOWLEDGE_MANAGER"
    },
    "jobs": {
      "entityTypes": [
        "job"
      ],
      "name": "Jobs",
      "searchableFields": {
        "builtin.entityType": {
          "nlpFilter": true
        },
        "c_jobDepartment": {
          "nlpFilter": true
        },
        "employmentType": {
          "nlpFilter": true
        },
        "name": {
          "textSearch": true
        }
      },
      "sortBys": [],
      "source": "KNOWLEDGE_MANAGER"
    },
    "restaurants": {
      "directAnswers": {
        "fieldValues": {
          "eligibleFields": [
            "mainPhone"
          ],
          "predictionMode": "CLASSIFIER"
        }
      },
      "entityTypes": [
        "restaurant"
      ],
      "name": "Restaurants",
      "savedSearchId": "112002255",
      "searchableFields": {
        "builtin.entityType": {
          "nlpFilter": true
        },
        "builtin.location": {
          "nlpFilter": true
        },
        "c_promotingEvents.name": {
          "nlpFilter": true
        },
        "c_restaurantFeatures": {
          "nlpFilter": true
        },
        "name": {
          "textSearch": true
        }
      },
      "sortBys": [],
      "source": "KNOWLEDGE_MANAGER"
    }
  },
  "synonyms": {
    "oneWay": [
      {
        "phrase": "nest",
        "synonyms": [
          "restaurant"
        ]
      },
      {
        "phrase": "order online",
        "synonyms": [
          "delivery"
        ]
      }
    ],
    "synonymSet": [
      [
        "location",
        "restaurant",
        "food joint",
        "taco shop",
        "eatery",
        "locations"
      ]
    ],
    "normalization": []
  },
  "localizations": {},
  "rules": [
    {
      "criteria": {
        "searchTermContains": "turtlehead"
      },
      "actions": [
        {
          "actionType": "BOOST_VERTICAL_INTENT",
          "boostValue": 10,
          "verticals": [
            "faqs"
          ]
        }
      ],
      "name": "rules"
    },
    {
      "criteria": {
        "contextContainsKey": "$.jobProspect"
      },
      "actions": [
        {
          "actionType": "BOOST_ENTITIES",
          "entityIds": [
            "faq-6"
          ],
          "verticalKey": "faqs"
        }
      ],
      "name": "jobProspect"
    },
    {
      "criteria": {
        "searchTermContains": [
          "job",
          "apply"
        ]
      },
      "actions": [
        {
          "actionType": "BOOST_ENTITIES",
          "entityIds": [
            "job-16"
          ],
          "verticalKey": "faqs"
        }
      ]
    }
  ],
  "additionalSearchablePlaces": [],
  "querySuggestions": {
    "disablePopularQueries": false,
    "verticalPromptsOnEmpty": false,
    "popularQueriesBlacklistedTerms": [],
    "universalPrompts": [
      "Restaurants near me",
      "Do you offer delivery?",
      "Events",
      "Do you sell gift cards?",
      "Community stories",
      "Where to redeem gift cards",
      "Open jobs"
    ],
    "verticalPrompts": {
      "community_stories": [
        "[[name]]"
      ],
      "events": [
        "[[name]]"
      ],
      "faqs": [
        "[[name]]"
      ],
      "help_articles": [
        "[[name]]"
      ],
      "jobs": [
        "open jobs in [[c_jobDepartment]]"
      ],
      "restaurants": [
        "Restaurants near me",
        "Restaurants in [[address.city]]"
      ]
    }
  }
}

Thank you,

Hey @Juan_Bustillos ,

Looks like your query rule to boost the job entity for “job” and “apply” searches is using the wrong vertical key. It is specifying the faqs vertical instead of the jobs vertical.

Best,
DJ

1 Like

That makes sense! Thank you again!

1 Like

Hey @DJ_Corbett & @Jamie_Kim, I’m having a similar problem.

Here’s a screenshot of my report card:

image

And here’s my code:

{
  "$schema": "https://schema.yext.com/config/answers/answers-config/v1",
  "$id": "answers",
  "name": "answers",
  "supportedLocales": [],
  "countryRestrictions": [],
  "verticals": {
    "community_stories": {
      "entityTypes": [
        "ce_communityStory"
      ],
      "name": "Community Stories",
      "searchableFields": {
        "builtin.entityType": {
          "nlpFilter": true
        },
        "c_goal": {
          "textSearch": true
        },
        "c_theme": {
          "nlpFilter": true
        },
        "name": {
          "textSearch": true
        }
      },
      "sortBys": [],
      "source": "KNOWLEDGE_MANAGER"
    },
    "events": {
      "entityTypes": [
        "event"
      ],
      "name": "Events",
      "searchableFields": {
        "builtin.entityType": {
          "nlpFilter": true
        },
        "name": {
          "textSearch": true
        }
      },
      "sortBys": [],
      "source": "KNOWLEDGE_MANAGER"
    },
    "faqs": {
      "entityTypes": [
        "faq"
      ],
      "name": "faqs",
      "savedSearchId": "121202151",
      "searchableFields": {
        "builtin.entityType": {
          "nlpFilter": true
        },
        "keywords": {
          "textSearch": true
        },
        "question": {
          "semanticTextSearch": true
        }
      },
      "sortBys": [],
      "source": "KNOWLEDGE_MANAGER"
    },
    "help_articles": {
      "entityTypes": [
        "helpArticle"
      ],
      "name": "Help Articles",
      "searchableFields": {
        "body": {
          "documentSearch": true
        },
        "builtin.entityType": {
          "nlpFilter": true
        },
        "name": {
          "textSearch": true
        }
      },
      "sortBys": [],
      "source": "KNOWLEDGE_MANAGER"
    },
    "jobs": {
      "entityTypes": [
        "job"
      ],
      "name": "Jobs",
      "searchableFields": {
        "builtin.entityType": {
          "nlpFilter": true
        },
        "c_jobDepartment": {
          "nlpFilter": true
        },
        "employmentType": {
          "nlpFilter": true
        },
        "name": {
          "textSearch": true
        }
      },
      "sortBys": [],
      "source": "KNOWLEDGE_MANAGER"
    },
    "restaurants": {
      "directAnswers": {
        "fieldValues": {
          "eligibleFields": [
            "mainPhone"
          ],
          "predictionMode": "CLASSIFIER"
        }
      },
      "entityTypes": [
        "restaurant"
      ],
      "name": "Restaurants",
      "savedSearchId": "112002255",
      "searchableFields": {
        "builtin.entityType": {
          "nlpFilter": true
        },
        "builtin.location": {
          "nlpFilter": true
        },
        "c_promotingEvents.name": {
          "nlpFilter": true
        },
        "c_restaurantFeatures": {
          "nlpFilter": true
        },
        "name": {
          "textSearch": true
        }
      },
      "sortBys": [],
      "source": "KNOWLEDGE_MANAGER"
    }
  },
  "synonyms": {
    "oneWay": [
      {
        "phrase": "nest",
        "synonyms": [
          "restaurant"
        ]
      },
      {
        "phrase": "order online",
        "synonyms": [
          "delivery"
        ]
      }
    ],
    "synonymSet": [
      [
        "location",
        "restaurant",
        "food joint",
        "taco shop",
        "eatery",
        "locations"
      ]
    ],
    "normalization": []
  },
  "localizations": {},
  "rules": [
    {
      "criteria": {
        "searchTermContains": "turtlehead"
      },
      "actions": [
        {
          "actionType": "BOOST_VERTICAL_INTENT",
          "boostValue": 10,
          "verticals": [
            "jobs"
          ]
        }
      ],
      "name": "rules"
    },
    {
      "criteria": {
        "contextContainsKey": "$.jobProspect"
      },
      "actions": [
        {
          "actionType": "BOOST_ENTITIES",
          "entityIds": [
            "faq-6"
          ],
          "verticalKey": "faqs"
        }
      ],
      "name": "jobProspect"
    },
    {
      "criteria": {
        "searchTermContains": [
          "job",
          "apply"
        ]
      },
      "actions": [
        {
          "actionType": "BOOST_ENTITIES",
          "entityIds": [
            "job-16"
          ],
          "verticalKey": "jobs"
        }
      ]
    }
  ],
  "additionalSearchablePlaces": [],
  "querySuggestions": {
    "disablePopularQueries": false,
    "verticalPromptsOnEmpty": false,
    "popularQueriesBlacklistedTerms": [],
    "universalPrompts": [
      "Restaurants near me",
      "Do you offer delivery?",
      "Events",
      "Do you sell gift cards?",
      "Community stories",
      "Where to redeem gift cards",
      "Open jobs"
    ],
    "verticalPrompts": {
      "community_stories": [
        "[[name]]"
      ],
      "events": [
        "[[name]]"
      ],
      "faqs": [
        "[[name]]"
      ],
      "help_articles": [
        "[[name]]"
      ],
      "jobs": [
        "open jobs in [[c_jobDepartment]]"
      ],
      "restaurants": [
        "Restaurants near me",
        "Restaurants in [[address.city]]"
      ]
    }
  }
}

Can you see what I’m missing? :pensive:

Thank you,

Ashley

Hey Ashley!

Your first query rule is currently boosting the vertical intent of the "jobs" vertical instead of the "faqs" vertical. The rest of the code looks great, so you should be good to go after making that change!

Best,
DJ

That worked - thank you so much! :smiley:

1 Like