Review and adjust the generated output before importing—it is a suggestion, not a final structure.
Prerequisites
| Requirement | Notes |
|---|---|
| Python 3.6 | Download |
| Virtual environment | Recommended. See Python venv docs. |
| Microsoft Visual C++ Build Tools (Windows) | Tested with v14.0. |
| Windows 10 SDK (Windows 10) | Download. Keep OS up to date for DLL compatibility. |
| FAQ file | JSON or CSV format. Export from XO Platform or build a CSV with questions in column 1 and answers in column 2. |
Setup
- Download and extract the KG Generator zip file.
- Open a terminal in the extracted folder.
- Activate your virtual environment:
- Windows:
<venvs_folder>/<venv_name>/Scripts/activate - Unix/macOS:
<venvs_folder>/<venv_name>/bin/activate
- Windows:
- Install dependencies:
- Verify installation:
pip list— confirm all packages fromrequirements.txtare listed. - Download the spaCy English model:
Run the Generator
| Option | Description | Required | Default |
|---|---|---|---|
--file_path | Path to the input file. | Yes | — |
--type | File type: json_export (XO JSON export), csv_export (XO CSV export), or CSV (plain Q&A CSV). | Yes | — |
--language | Language code of the input data. | No | en |
--v | Verbose mode — shows intermediate progress. | No | false |
Output
The generator createsao_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.