Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Table of Contents
minLevel1
maxLevel7
excludeTable of Contents

Overview

With the Question Answering (QA) feature Squirro aims to provide direct answers to user questions, instead of purely returning search results. This process is done on the data indexed in Squirro.

Squirro achieves this with a multi-step process:

  1. Search the most relevant search results matching the user’s query.

  2. From the search results it identifies the most relevant sentences.

  3. Run those against a pre-trained machine learning model (extractive question answering) which has the goal of identifying a clear answer based on the query and the sentence presented.

The top answers are then presented to the user.

Setup

To set up Question Answering, add a QA widget to the Global Search Dashboard. This functionality is not currently supported on other dashboards.

...

The recommended setup is to place this widget on its own layer and use the Hide when widgets empty option. This way the QA widget does not take up any space if there are no answers to be presented to the user.

Example

The following example illustrates how the feature works. A specific input query (“who joins twitter board”) is entered and, in addition to the familiar result list, the QA Widget shows the answer to the entered question. Clicking on those items shows (highlighted) the sentence from which the answer is extracted. If no answer is found, the QA Widget panel is not shown.

...

Background

The Question Answering function depends is handled using the Query Understanding studio plugin which is located in the Setup space under the AI Studio tab.

The Question Answering benefits from the Query Processing Workflow as it will improve the quality of the results.

The machine learning model used for question answering has been published on Hugging Face with the name squirro/albert-base-v2-squad_v2 and can be used independently of Squirro as wellThis page can now be found at How to Use Question Answering on the Squirro Docs site.