docs/features/feature-guides/context/context-documents.md
import FeatureAvailability from '@site/src/components/FeatureAvailability';
Context Documents let you capture tribal knowledge in DataHub. With Context Documents, you can create runbooks, FAQs, process guides, decision logs, and more to capture curated organizational context.
Once created, documents can be published to become visible to your team and AI assistants like Ask DataHub to provide grounded, consistent answers.
<p align="center"> </p>Context Documents are first-class citizens in DataHub. You can:
Create documents from the Documents section in the left navigation.
From Documents, click Import, choose a source, and configure the connection. DataHub creates a managed ingestion source you can run once or on a schedule. Managing imports requires the same privilege as other Data Sources.
By default, all sources create Native (editable) documents in DataHub. Switch Document import mode to External in the data source configuration if you want read-only documents that stay linked to the source system.
| Source | Direction | Notes | Guide |
|---|---|---|---|
| Notion | One-way (Notion → DataHub) | Native by default; optionally External (read-only). No sync-back. | Import from Notion |
| Confluence | One-way (Confluence → DataHub) | Native by default; optionally External (read-only). No sync-back. | Import from Confluence |
| GitHub | Import; sync-back on DataHub Cloud only | Native by default; optionally External (read-only). Sync-back is DataHub Cloud only. | Import from GitHub |
Screenshot: Import Documents source picker (Notion, Confluence, GitHub).
Track runs and schedules on the Data Sources / Ingestion page.
Documents can be in Draft or Published states. Draft documents are only visible to you - the owner. Published documents are visible to everyone else.
Toggle Published in the document header to publish or unpublish your documents.
<p align="center"> </p>:::info Context Documents are created in Published state by default. :::
Reorganize your document hierarchy at any time.
Find documents using DataHub's primary search bar alongside your data assets, and within the Documents tab accessible from the left navigation bar.
Track changes, view previous versions, and restore document contents by visiting the document history timeline.
<p align="center"> </p>Change types include:
When you ask a question in Ask DataHub, the AI searches your published documents alongside your metadata graph. If relevant context is found, Ask DataHub cites the document in its response.
<p align="center"> </p>Note: Ask DataHub is available in DataHub Cloud only.
Context Documents are accessible via: