Domain schemas reference

Reference for built-in domain schemas and custom schema creation. This page is a short overview and index; each subsystem has its own page.

Overview

Domain schemas define entity types with descriptions that improve GLiNER zero-shot extraction accuracy. Each schema supplies domain-specific labels and descriptions; assess extraction quality on your own sample data.

On this subsystem

  • Built-in domain schemas — the eight registered GLiNER schemas (poleo, podcast, news, scientific, business, entertainment, medical, legal) and how to select one with GLiNEREntityExtractor.for_schema, ExtractorBuilder.with_gliner_schema, or list_schemas/get_schema.

  • Custom schemas and persistence — DomainSchema, the Bolt-only SchemaManager overview, the GLiNER-to-POLE+O entity type mapping, and the DomainSchema/EntityTypeConfig/RelationTypeConfig/EntitySchemaConfig models.

  • SchemaManager persistence API — save_schema, load_schema, list_schemas, set_active_version, delete_schema, and the rest of the neo4j_agent_memory.schema.SchemaManager CRUD surface.