企业知识库文档控制面契约。
一个文档可以有多个 DocumentVersion;查询时只应命中 active version 映射到
Arcana 的 document/chunk。这样重建索引不会影响线上旧版本查询。
Summary
Functions
构建 document 契约 struct。
Types
@type t() :: %CMDCRAGArcana.Knowledge.Document{ active_version_id: String.t() | nil, collection: String.t(), department: String.t() | nil, id: String.t() | nil, metadata: map(), owner_id: String.t() | nil, sensitivity_level: String.t(), source_uri: String.t() | nil, tenant_id: String.t(), title: String.t() }