Area: Best Practices
Sub-Area: AI-Powered Documentation and Knowledge Management
Applies to: Cloud
Issue
You want Ask DataHub, AI agents, and your users to give good answers about your data. That depends on your documentation. Without a plan, teams write descriptions in different styles, leave gaps, or keep knowledge in places agents can't read.
You Might Be Asking
- How should we structure documentation in DataHub for Ask DataHub and AI agents?
- What belongs in a table or column description, and what belongs in a separate document?
- How do we turn on AI Documentation and set organization-wide instructions for it?
- Does DataHub hold AI-generated descriptions for review before they appear?
- What are Context Documents, and how do agents find them?
- Is our metadata sent to third-party LLMs?
Solution
DataHub Cloud gives you two features for this. Use AI Documentation for table and column descriptions. Use Context Documents for knowledge that does not belong to one column or table description, such as runbooks, FAQs, and process guides.
1. Use AI Documentation for table and column descriptions
AI Documentation writes descriptions for tables and columns. It uses the dataset name and existing documentation, column names, types, descriptions and sample values, lineage to upstream and downstream assets, and metadata about related assets. See AI Documentation.
Turn it on first:
- An admin, or a user with the Manage Platform Settings privilege, goes to Settings > AI and turns on AI Documentation Generation. It is off by default. Until it is on, the Generate with AI button does not appear.
- Each user who generates descriptions needs permission to edit the asset's description.
- AI Documentation does not run on tables with more than 3000 columns.
Set organization-wide instructions:
- In Settings > AI, under AI Documentation Generation, fill in Documentation Instructions. The box appears after you turn the feature on. It holds up to 10,000 characters.
- These instructions apply to every table and column generation in your organization. You do not enter them each time you generate.
- New instructions can take up to 5 minutes to take effect.
Example instructions:
Describe columns in business language, not technical jargon.
Use the format: "This field represents [business concept] and is used for [purpose]."
For columns that hold personal data, add: "Contains personally identifiable information."
Know how generated text gets saved. DataHub has no approval step for AI text:
- In a dataset's description editor, Generate with AI shows a draft. Nothing is saved until you click Insert and then save the description. Review the text before you save.
- On the Columns tab, Generate with AI on a column saves AI descriptions for the table's columns right away. There is no editor step.
- DataHub marks AI-generated documentation that no person has reviewed with a sparkle icon. Build your review process around that marker.
Privacy: DataHub does not send your metadata to third-party LLMs. AI Documentation runs on AWS Bedrock, and your metadata stays in the DataHub Cloud AWS account. DataHub does not fine-tune models on customer data.
2. Use Context Documents for broader knowledge
Context Documents hold knowledge that table schemas don't carry: what a metric means, which tables to trust, how to request access, and what to watch out for. Examples are runbooks, FAQs, policies, and decision logs. See Context Documents.
- Create documents from Documents in the left navigation with + New.
- To bring in existing docs, go to Documents, click Import, and choose Notion, Confluence, or GitHub. You can also choose Upload files for Markdown, Word, HTML, text, or CSV files.
- Publish a document when it is ready. Draft documents are visible only to their owner. Ask DataHub and agents connected through the DataHub MCP server only see published documents. The UI creates documents as published by default.
- Link each document to the assets it describes. From the document, add them under Related Assets. From a table's page, use Add related link or context. When an agent looks up the table, it gets the related documents with the schema.
- Write each document to answer one specific question, like a map: which tables to use, how to join them, and what to exclude.
- Use the document's metadata (Type, Owner, Tags, Domain) instead of putting it in the body. Assign a domain to limit a document to that domain's agents.
A simple structure for a document:
# [Business question or process]
## Purpose
What this document answers and who uses it.
## Tables to use
Which tables to use, how they connect, and which rows to exclude.
## Known limitations
Caveats, data quality issues, or known gaps.
3. Keep documentation current
Ask DataHub ranks documents by how well they match the question, how often they are used, and how recently they were updated. Stale documents hurt answers.
- Review AI-generated descriptions and Context Documents on a schedule, and after schema or process changes.
- Assign owners to documents and to domains, so review work has a clear owner.
- Subscribe owners to schema changes on the assets they document. See Subscriptions & Notifications.
- Use a document's history to see changes and restore an earlier version.
4. Summary: which tool for which documentation
| Documentation type | Use |
|---|---|
| Table and column descriptions | AI Documentation, reviewed by owners |
| Domain or subject area overviews | Context Documents |
| Runbooks and procedures | Context Documents |
| FAQs and tribal knowledge | Context Documents |
| Rules for one table ("amounts are in cents") | Context Document linked to that table |
| Business terms and definitions | Business Glossary |
Additional Notes
AI Documentation is a DataHub Cloud feature and has been Generally Available since DataHub Cloud v0.3.17. Ask DataHub is available in DataHub Cloud only. Context Documents also exist in open-source DataHub, but Ask DataHub does not.
Related Documentation
Tags: ai-documentation, context-documents, ai-readiness, ask-datahub, documentation-best-practices, knowledge-retrieval, datahub-cloud