⚠️ Experimental — Lists Guild knowledge bases (sg_knowledge_base).
# When to use: List knowledge bases (including built-in) before creating
# sg_knowledge_document / sg_knowledge_source targets.
data "sg_knowledge_bases" "all" {}
output "knowledge_base_ids" {
value = { for kb in data.sg_knowledge_bases.all.knowledge_bases : kb.name => kb.id }
}
knowledge_bases (Attributes List) Knowledge bases in the organization. (see below for nested schema)knowledge_basesRead-Only:
created_at (String) Creation timestamp (RFC 3339).description (String) Optional description.document_count (Number) Number of documents assigned to this base.id (String) Knowledge base UUID.include_in_global_search (Boolean) Whether generic chat searches this knowledge base.name (String) Human-readable knowledge base name.namespace (String) Internal retrieval namespace.system (Boolean) True for built-in bases.updated_at (String) Last update timestamp (RFC 3339).