Class HierarchyMetadata

java.lang.Object
com.tnsai.intelligence.rag.hierarchy.HierarchyMetadata

public final class HierarchyMetadata extends Object
Canonical metadata keys for hierarchical retrieval.

Input documents declare ID, PARENT_ID, and optionally SOURCE. The built-in Role binding uses an existing entryId as the hierarchy ID when ID is absent and assigns the enclosing @Knowledge.name() as SOURCE.

Since:
0.13.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Number of parent edges between the hit and this result.
    static final String
    Whether the hit belongs to a flat index with no parent.
    static final String
    Original child-hit identifier that caused an expansion.
    static final String
    Stable hierarchy document identifier.
    static final String
    Identifier of the immediate parent document.
    static final String
    Stable child-to-parent identifier path.
    static final String
    Source group used by annotation-level source fencing.
    static final String
    Reason expansion stopped before reaching the hierarchy root.
    static final String
    Whether expansion stopped before reaching the hierarchy root.
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait