> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wisdom.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Context Libraries

Context Libraries let you share Knowledge across Domains without duplicating it. This page explains why Libraries exist, then shows you how to move Knowledge into a Library, link a Library to a Domain, and manage your Libraries from one place.

## Why it matters

WisdomAI enforces data access permissions at the Domain level. Business context you create, such as metric definitions or business rules, lives inside the specific Domain where you create it. Teams working in a different Domain can't see or reuse that context, even when they're asking questions about the same underlying data.

That isolation protects your access boundaries, but it also means shared definitions get rebuilt in every Domain that needs them. When a definition changes, you have to update every copy, and the copies can drift out of sync with each other.

Context Libraries remove that trade-off. A Library holds context outside any single Domain, so you define a metric or business rule once and reuse it everywhere it applies. You still control which Domains can use it: linking a Library to a Domain is a separate, explicit step, so shared context never crosses a Domain's access boundary without your say.

## Access Context Libraries

To access Context Libraries, follow these steps:

1. From the **Domains** page, click the **Context Libraries** icon in the top right corner.
2. This opens the **Context Libraries** page, listing every Library along with its Name, Description, Linked Domains, and Last Updated date. Click the **⋮** icon next to a Library to **Edit** it, **Link to Domain**, or **Delete** it.

![NEW Add Knowledge Steps](https://mintcdn.com/wisdomai/LJ_isujNWmEqJD_P/images/new-link-domain2.png?fit=max\&auto=format\&n=LJ_isujNWmEqJD_P\&q=85\&s=7b3e9c3eee4101105f140d0bb4ab4a16)

## Move Knowledge to a Library

You can build a Library either by creating assets outside a Domain or by taking existing context items originally built inside a Domain and moving them into a Library so they become available elsewhere.

1. From the **Knowledge** tab, select the item you want to reuse and click the **Move to Library** icon.

![NEW Add Knowledge Steps](https://mintcdn.com/wisdomai/NZsCCFeGCBt5qpk8/images/move-to-library.png?fit=max\&auto=format\&n=NZsCCFeGCBt5qpk8\&q=85\&s=ce9d21ec58fac5f3bcbfe7c8e3e2efd0)

2. In the **Move to Library** window, open the **Target Library** dropdown and select an existing Library, or click **+ Create New Library** to create one.
3. Click **Move** to confirm.

![NEW Add Knowledge Steps](https://mintcdn.com/wisdomai/NZsCCFeGCBt5qpk8/images/library-drop-down.png?fit=max\&auto=format\&n=NZsCCFeGCBt5qpk8\&q=85\&s=f2187759a942c3a7c5563ee936483a38)

## Link a Library to a Domain

You must link a Context Library to a Domain before you can query its contents. To link one or more Libraries to a target Domain:

1. From the Domain's **Context** tab, access **Knowledge** and click **Libraries**.

![NEW Add Knowledge Steps](https://mintcdn.com/wisdomai/NZsCCFeGCBt5qpk8/images/link-libraries.png?fit=max\&auto=format\&n=NZsCCFeGCBt5qpk8\&q=85\&s=3e4399d9acfab2c8594b188efcfd0531)

2. Open the **Libraries** dropdown and select the Library or Libraries you want linked.
3. Click **Save**.

![NEW Add Knowledge Steps](https://mintcdn.com/wisdomai/NZsCCFeGCBt5qpk8/images/link-libraries-dropdown-1.png?fit=max\&auto=format\&n=NZsCCFeGCBt5qpk8\&q=85\&s=e900dfb1c14b91441e7bc64e0e6e77e5)

Once linked, any Knowledge stored in that Library is available for query interpretation in the Domain, alongside the Domain's own Knowledge.

## Next steps

> [card] [Domain Groups & Auto Domain Selection](https://docs.wisdom.ai/setting-up-wisdom-ai/domain-groups.md)
>
> Understand what these features are, how they differ, and when to use one over the other.

> [card] [Set Up and Use Domain Groups & Auto Domain Selection](https://docs.wisdom.ai/setting-up-wisdom-ai/domain-groups-how-to.md)
>
> Step-by-step instructions for enabling Auto Domain Selection and creating and using domain groups.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.