HUB
Sign inSign up

anny24/mas-om-melt

By anny24

•Updated 4 months ago

DRAMA: LLM-based ontology matching via multi-agent debate (Matching Agent + Critic). OAEI 2026.

Image
Data science
Databases & storage
Web analytics
0

309

anny24/mas-om-melt repository overview

⁠DRAMA: Debate-Driven Reasoning Agents for Matching Alignments

DRAMA is a multi-agent ontology matching system that combines embedding-based candidate retrieval with LLM-based reasoning. The system participates in the OAEI 2026 campaign.

⁠Architecture

The pipeline consists of four stages:

  1. OI (Ontology Ingestion) — parses OWL ontologies and extracts entities
  2. CG (Candidate Generation) — retrieves candidate correspondences using embedding similarity (KaLM-Embedding-Gemma3-12B or multi-qa-mpnet on CPU)
  3. CR (Candidate Resolution) — filters candidates using an LLM classifier with threshold-based auto-accept/reject
  4. DDM (Debate-Driven Matching) — a Matching Agent and a Critic Agent iteratively evaluate uncertain pairs via structured debate

⁠MELT HTTP Interface

The system implements the MELT HTTP Matcher Interface:

POST /match
Content-Type: multipart/form-data
Parameters:
  source: URL or path to source ontology (OWL/RDF)
  target: URL or path to target ontology (OWL/RDF)
Response: OAEI Alignment API RDF/XML (application/rdf+xml)

Health check: GET /health

⁠Quick Start (docker-compose)

# docker-compose.yml
services:
  matcher:
    image: anny24/mas-om-melt:latest
    ports:
      - "8080:8080"
    environment:
      REACT_MODEL: <model-name>              # e.g. gpt-4o, mistralai--mistral-small
      REACT_PROVIDER: openai                 # openai | openai-compatible | sap-ai-core
      OPENAI_API_KEY: <your-api-key>         # for REACT_PROVIDER=openai
      DATABASE_URL: postgresql://mas_om:mas_om@postgres:5432/mas_om
    depends_on:
      postgres:
        condition: service_healthy
  postgres:
    image: pgvector/pgvector:pg17
    environment:
      POSTGRES_USER: mas_om
      POSTGRES_PASSWORD: mas_om
      POSTGRES_DB: mas_om
    volumes:
      - pgdata:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U mas_om"]
      interval: 5s
      retries: 10
volumes:
  pgdata:
docker-compose up
curl -X POST http://localhost:8080/match \
  -F "source=http://example.org/ontology1.owl" \
  -F "target=http://example.org/ontology2.owl" \
  -o alignment.rdf

⁠Required Environment Variables

VariableDescriptionRequired
REACT_MODELLLM model name (e.g. gpt-4o, mistralai--mistral-small)Yes
REACT_PROVIDERProvider: openai, openai-compatible, or sap-ai-coreYes
DATABASE_URLPostgreSQL DSN (set automatically in docker-compose)Yes
OPENAI_API_KEYAPI key for OpenAI providerFor openai provider
AICORE_DEPLOYMENT_URLSAP AI Core deployment endpointFor sap-ai-core provider
AICORE_AUTH_URLSAP AI Core OAuth URLFor sap-ai-core provider
AICORE_CLIENT_IDSAP AI Core client IDFor sap-ai-core provider
AICORE_CLIENT_SECRETSAP AI Core client secretFor sap-ai-core provider

⁠Optional Configuration

VariableDefaultDescription
CG_TOP_K5Candidate pairs per entity
CR_CLASSIFIERlocal-llm-qwen2.5-7b-instructCSA stage-2 classifier
DDM_MAX_REVISIONS1Max Critic revision rounds
CRITIC_MODELsame as REACT_MODELSeparate model for Critic agent

⁠Software Requirements

  • Docker + Docker Compose
  • Python 3.11 (inside container)
  • PostgreSQL 17 with pgvector (provided as sidecar)
  • Access to an OpenAI-compatible LLM API

⁠OAEI 2026

This system participates in the OAEI 2026 Anatomy and Conference tracks. Contact: [email protected]⁠

Tag summary
Recent tags
Content type
Image
Digest
sha256:f24e7ed7a…
Size
1020.4 MB
Last updated
4 months ago
docker pull anny24/mas-om-melt:latest