CMDCRAGArcana.Graph.Status (cmdc_rag_arcana v0.5.0)

Copy Markdown View Source

GraphRAG 状态契约与查询 facade。

状态来自企业控制面或 Arcana GraphStore 只读查询。该模块不会触发 rebuild、 embed_entities、community detect 或 community summarize。

Summary

Functions

查询 GraphRAG 状态。

Types

graph_status()

@type graph_status() :: :unknown | :disabled | :ready | :stale | :rebuilding | :failed

t()

@type t() :: %CMDCRAGArcana.Graph.Status{
  build_run_id: String.t() | nil,
  collection: String.t() | nil,
  community_count: non_neg_integer() | nil,
  dirty_community_count: non_neg_integer() | nil,
  enabled?: boolean(),
  entity_count: non_neg_integer() | nil,
  last_error: String.t() | nil,
  last_rebuild_at: String.t() | nil,
  mention_count: non_neg_integer() | nil,
  metadata: map(),
  opt_in?: boolean(),
  preflight: map(),
  profile_id: String.t() | nil,
  relationship_count: non_neg_integer() | nil,
  stale?: boolean(),
  status: graph_status(),
  summarized_community_count: non_neg_integer() | nil,
  summary_status: graph_status() | nil,
  tenant_id: String.t() | nil
}

Functions

get(config)

@spec get(CMDCRAGArcana.Config.t() | keyword() | map()) ::
  {:ok, t()} | {:error, term()}

查询 GraphRAG 状态。