OpenViSTAI · Agents · Blockchain · Crypto
Menu
RAG & Knowledge Systems

Qa Match

Qa Match is an open-source Python toolkit for short-text matching and knowledge-base question answering. It uses DSSM intent matching for flat knowledge bases and combines domain classification with intent matching for two-level knowledge bases. It can return one answer, multiple candidate intents or a rejection, and includes SPTM unsupervised pretraining for downstream matching tasks.

Independent OpenViST project profile, based on linked sources.

Qa Match — FAQ and knowledge-base question matching
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use Qa Match when you have standard questions, answers and alternate phrasings and want to match incoming short questions to intents. Choose the DSSM route for a simpler flat matching workflow; consider SPTM when unlabeled text is available and its additional pretraining stage is appropriate.

Who it is for

  • Developers building question-answering systems around curated FAQs or other standard-question knowledge bases.
  • Teams organizing intents under domains and needing domain-aware question routing.
  • Practitioners with unlabeled text who want to explore pretraining before fine-tuning a matching model.

Documented uses

  • Match a user's phrasing to a standard question and its associated intent.
  • Route a question through a domain and then identify a likely intent in a two-level knowledge base.
  • Return a single answer, a set of candidate intents or a rejection based on model scores and thresholds.
  • Use unlabeled text for SPTM pretraining before fine-tuning a question-matching model.
  • Support cold-start and iterative knowledge-base mining workflows.
Before you choose

Requirements & limits

The project is available as a public GitHub repository. The documented runtime is Python 3 with TensorFlow greater than 1.8 and below 2.0.

  • DSSM is presented as simpler and faster to train and predict, but does not use context.
  • SPTM can use unlabeled data for pretraining, but requires substantial unlabeled data and an additional pretraining-and-fine-tuning workflow.
  • Two-level knowledge bases use both domain classification and intent matching; flat knowledge bases use intent matching.
  • DSSM training requires batch_size to be at least negative_size.
  • The README describes selecting model-fusion thresholds using test-set F1 scores, with the balance between precision and recall depending on the project.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Use a one-level knowledge base with DSSM matching

Classify an input question against a one-level knowledge base and select a unique answer, list response, or rejection using the documented score thresholds.

Before you start

  • A one-level knowledge base containing standard questions (intents) and their expanded questions.
  • A trained DSSM intent-matching model.
  • The x1 and x2 decision thresholds shown in the DSSM response flow.

Steps

  1. Score the input question with the DSSM intent-matching model.

  2. Compare the highest intent-matching score with x1 and x2 in the documented response flow.

  3. Return the corresponding unique answer, list response, or rejection.

Expected outcome

The response type is selected from the highest DSSM intent-matching score for the input question.

Guide limitations

  • DSSM does not use context information.
  • The source describes threshold-based response selection but does not provide a complete implementation procedure or fixed threshold values.
Source-based practical guide

Use a two-level knowledge base with domain and intent matching

Combine domain classification and intent matching to answer questions using a two-level knowledge base.

Before you start

  • A two-level knowledge base organized into domains containing intents, with standard questions and expanded questions.
  • A domain-classification model and a DSSM intent-matching model.
  • The applicable b1, x1, and x2 thresholds.

Steps

  1. Score the input question with both the domain-classification model and the intent-matching model.

  2. Use the highest-scoring domain-classification label to select the documented classification branch.

  3. Compare the highest domain score with b1 to determine whether to take the strict DSSM intent-matching branch.

  4. On that branch, compare the highest intent score with x1 and x2 to select the response type and, for a unique answer, return the answer associated with the selected intent.

Expected outcome

The domain and intent scores are combined through the documented branching logic to produce a unique answer, list response, or rejection.

Guide limitations

  • The numeric thresholds in the README are illustrative examples, not stated as universal settings.
  • The README describes the matching logic but does not provide a complete implementation or model-training procedure.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
20 November 2026
Original website title
wuba/qa_match · Official homepage title · retained in its source language