Member Junction
    Preparing search index...

    Strongly-typed persistence & lookup adapter for MJ: Graph Concepts and MJ: Graph Edges.

    Decouples GraphStage from direct BaseEntity.Get() / .Set() calls and allows deterministic in-memory stores in unit tests and dry runs.

    interface IGraphOverlayStore {
        LoadAuthorityTiers?(
            contextUser: UserInfo,
            provider: IMetadataProvider,
        ): Promise<GraphAuthorityTierDescriptor[]>;
        LoadConceptTypes?(
            contextUser: UserInfo,
            provider: IMetadataProvider,
        ): Promise<GraphConceptTypeDescriptor[]>;
        LoadExistingConcepts(
            graphID: string,
            contextUser: UserInfo,
            provider: IMetadataProvider,
        ): Promise<ExistingGraphConceptSeed[]>;
        LoadGroundingTargets?(
            groundingMode: GraphGroundingMode,
            contextUser: UserInfo,
            provider: IMetadataProvider,
        ): Promise<SchemaGroundingTarget[]>;
        LoadItemChunks?(
            contentItemID: string,
            contentSourceID: string,
            contentItemTitle: string,
            tags: readonly string[],
            authorityTier: GraphAuthorityTier,
            contextUser: UserInfo,
            provider: IMetadataProvider,
        ): Promise<ContentChunkSeedInput[]>;
        LoadItemTags?(
            contentItemID: string,
            contextUser: UserInfo,
            provider: IMetadataProvider,
        ): Promise<string[]>;
        UpsertConcept(
            graphID: string,
            concept: SynthesizedGraphConcept,
            status: GraphStageUpsertStatus,
            contextUser: UserInfo,
            provider: IMetadataProvider,
        ): Promise<string>;
        UpsertEdges(
            graphID: string,
            conceptID: string,
            edges: readonly SynthesizedGraphEdge[],
            status: GraphStageUpsertStatus,
            contextUser: UserInfo,
            provider: IMetadataProvider,
        ): Promise<number>;
    }

    Implemented by

    Index

    Methods