Skip to main content
Back to NLP Topics The KG Generator is a command-line tool that automatically extracts terms from your FAQ list, defines a hierarchy, and associates FAQs to the appropriate terms. Use it to bootstrap a KG from an existing Q&A dataset instead of building the structure manually.
Review and adjust the generated output before importing—it is a suggestion, not a final structure.
The generator is available at Kore.ai GitHub.

Prerequisites


Setup

  1. Download and extract the KG Generator zip file.
  2. Open a terminal in the extracted folder.
  3. Activate your virtual environment:
    • Windows: <venvs_folder>/<venv_name>/Scripts/activate
    • Unix/macOS: <venvs_folder>/<venv_name>/bin/activate
  4. Install dependencies:
  5. Verify installation: pip list — confirm all packages from requirements.txt are listed.
  6. Download the spaCy English model:

Run the Generator


Output

The generator creates ao_output.json in the project root directory. This file can be imported directly into your AI Agent’s KG. See Import a Knowledge Graph.
Importing replaces the existing KG. Back up your current KG before importing.