> ## 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.

<Frame>
  <img alt="NEW Add Knowledge Steps" lightAlt="NEW Add Knowledge Steps" darkAlt="NEW Add Knowledge Steps" src="https://mintcdn.com/wisdomai/LJ_isujNWmEqJD_P/images/new-link-domain2.png?fit=max&auto=format&n=LJ_isujNWmEqJD_P&q=85&s=7b3e9c3eee4101105f140d0bb4ab4a16" width="2232" height="931" data-path="images/new-link-domain2.png" />
</Frame>

## 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.

<Frame>
  <img alt="NEW Add Knowledge Steps" lightAlt="NEW Add Knowledge Steps" darkAlt="NEW Add Knowledge Steps" src="https://mintcdn.com/wisdomai/NZsCCFeGCBt5qpk8/images/move-to-library.png?fit=max&auto=format&n=NZsCCFeGCBt5qpk8&q=85&s=ce9d21ec58fac5f3bcbfe7c8e3e2efd0" className="dark:hidden" width="1792" height="950" data-path="images/move-to-library.png" />

  <img alt="NEW Add Knowledge Steps" lightAlt="NEW Add Knowledge Steps" darkAlt="NEW Add Knowledge Steps" src="https://mintcdn.com/wisdomai/KcHanncyIgvCw2qp/dark-img/move-to-library.png?fit=max&auto=format&n=KcHanncyIgvCw2qp&q=85&s=8d0dac6377cb77fe0addbea8d8cc3007" className="hidden dark:block" width="1788" height="944" data-path="dark-img/move-to-library.png" />
</Frame>

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.

<Frame>
  <img alt="NEW Add Knowledge Steps" lightAlt="NEW Add Knowledge Steps" darkAlt="NEW Add Knowledge Steps" src="https://mintcdn.com/wisdomai/NZsCCFeGCBt5qpk8/images/library-drop-down.png?fit=max&auto=format&n=NZsCCFeGCBt5qpk8&q=85&s=f2187759a942c3a7c5563ee936483a38" className="dark:hidden" width="876" height="402" data-path="images/library-drop-down.png" />

  <img alt="NEW Add Knowledge Steps" lightAlt="NEW Add Knowledge Steps" darkAlt="NEW Add Knowledge Steps" src="https://mintcdn.com/wisdomai/KcHanncyIgvCw2qp/dark-img/library-drop-down-1.png?fit=max&auto=format&n=KcHanncyIgvCw2qp&q=85&s=ca48c1448a9b349a2d1bfd0a741e0bd8" className="hidden dark:block" width="876" height="406" data-path="dark-img/library-drop-down-1.png" />
</Frame>

## 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**.

<Frame>
  <img alt="NEW Add Knowledge Steps" lightAlt="NEW Add Knowledge Steps" darkAlt="NEW Add Knowledge Steps" src="https://mintcdn.com/wisdomai/NZsCCFeGCBt5qpk8/images/link-libraries.png?fit=max&auto=format&n=NZsCCFeGCBt5qpk8&q=85&s=3e4399d9acfab2c8594b188efcfd0531" className="dark:hidden" width="1790" height="946" data-path="images/link-libraries.png" />

  <img alt="NEW Add Knowledge Steps" lightAlt="NEW Add Knowledge Steps" darkAlt="NEW Add Knowledge Steps" src="https://mintcdn.com/wisdomai/KcHanncyIgvCw2qp/dark-img/link-libraries.png?fit=max&auto=format&n=KcHanncyIgvCw2qp&q=85&s=48141b1d8e9ade87e6ec186397f34762" className="hidden dark:block" width="1796" height="946" data-path="dark-img/link-libraries.png" />
</Frame>

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

<Frame>
  <img alt="NEW Add Knowledge Steps" lightAlt="NEW Add Knowledge Steps" darkAlt="NEW Add Knowledge Steps" src="https://mintcdn.com/wisdomai/NZsCCFeGCBt5qpk8/images/link-libraries-dropdown-1.png?fit=max&auto=format&n=NZsCCFeGCBt5qpk8&q=85&s=e900dfb1c14b91441e7bc64e0e6e77e5" className="dark:hidden" width="882" height="378" data-path="images/link-libraries-dropdown-1.png" />

  <img alt="NEW Add Knowledge Steps" lightAlt="NEW Add Knowledge Steps" darkAlt="NEW Add Knowledge Steps" src="https://mintcdn.com/wisdomai/KcHanncyIgvCw2qp/dark-img/link-libraries-dropdown-1.png?fit=max&auto=format&n=KcHanncyIgvCw2qp&q=85&s=b003c10773675b5935f052847b5743c2" className="hidden dark:block" width="876" height="378" data-path="dark-img/link-libraries-dropdown-1.png" />
</Frame>

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

## Next steps

<CardGroup cols={2}>
  <Card title="Domain Groups & Auto Domain Selection" icon="circle-info" href="/setting-up-wisdom-ai/domain-groups">
    Understand what these features are, how they differ, and when to use one over the other.
  </Card>

  <Card title="Set Up and Use Domain Groups & Auto Domain Selection" icon="list-check" href="/setting-up-wisdom-ai/domain-groups-how-to">
    Step-by-step instructions for enabling Auto Domain Selection and creating and using domain groups.
  </Card>
</CardGroup>
