AHG Extensions for AtoM

Home / Plugins / Discovery

Discovery

Topic discovery and related content - natural language search with NER, synonym expansion, hierarchical context, and PageIndex LLM-driven retrieval over EAD, PDF, and RiC-O records

Part of the AI & Semantic Discovery capability. Watch the walkthrough.

CategorySearch and discovery
PackageahgDiscoveryPlugin
Version1.0.0
StatusInstalls from source. Clean-database install not yet verified.
RequiresCore
Works withAI ToolsSemantic SearchSecurity Clearance
External servicesCan use, when installed: Qdrant vector database, AHG AI gateway
LicenceAGPL-3.0-or-later
InstallFrom the source repository: see Installation below. No packaged download yet.

Topic discovery and related content - natural language search with NER, synonym expansion, hierarchical context, and PageIndex LLM-driven retrieval over EAD, PDF, and RiC-O records

Features

  • Natural language query expansion with synonym lookup
  • Three-strategy search: keyword, NER entity, hierarchical
  • Result grouping by collection/fonds
  • Related content sidebar for record views
  • Search analytics and caching
  • PageIndex LLM-driven retrieval: vectorless, reasoning-based search over records
  • Tree index builder for EAD finding aids, uploaded PDFs, and RiC-O metadata
  • Ollama-powered tree construction and retrieval reasoning (llama3.1:8b)
  • Explainable search results with tree node breadcrumb paths
  • Admin trigger to index individual information objects

Requirements

Component Version
atom framework >=2.8.0
atom >=2.8
php >=8.1

Installation

This plugin requires atom-framework. It is not optional: the framework provides AhgController, AtomFramework\* and the routing and settings services that this plugin builds on.

# 1. Fetch into the AtoM plugins directory as a REAL DIRECTORY.
#    A symlink fails the prefix test in pluginsAction.class.php and the
#    plugin is then invisible in the stock admin UI with no error shown.
cd <atom-root>/plugins
git clone --depth 1 --filter=blob:none --sparse \
    https://github.com/ArchiveHeritageGroup/atom-ahg-plugins.git tmp-fetch
cd tmp-fetch && git sparse-checkout set ahgDiscoveryPlugin && cd ..
mv tmp-fetch/ahgDiscoveryPlugin ./ahgDiscoveryPlugin && rm -rf tmp-fetch

# 2. Apply the schema with the framework's installer. It stops on the first
#    error, reports it, and checks every declared table exists. Never use a
#    plain `mysql < install.sql`: it can stop half way without saying so.
cd <atom-root>
php atom-framework/bin/install-plugin-schema.php \
    --database=<database> --user=<user> --password=<password> --plugin=ahgDiscoveryPlugin

# 3. Enable it, then clear the cache and reload PHP-FPM.
cd <atom-root>
php symfony cc
sudo systemctl reload php8.3-fpm

Enabling differs by instance shape. Check which list governs:

grep -c 'loadPluginsFromDatabase' <atom-root>/config/ProjectConfiguration.class.php
  • 0 (stock AtoM): plugins load from the serialised plugins row in setting_i18n. The atom_plugin table is inert and the admin screen can show a plugin as enabled that does not load.
  • 1 or more (AHG): atom_plugin is the source of truth.

Verify against whichever list governs, not against the admin screen.

Try it

See it on the live demo (sample data, no sign-in): Discover search.

Source and README on GitHub · Questions: support@theahg.co.za or WhatsApp