Skip to main content

context-layer

There is a lot of talk about context layers these days. I thought the best way to learn a new concept was to try to build one. This is a toy model, but the core ideas are rather simple.

  • A data platform is full of signals: query history, who opens what, what is certified, what is refreshed. That is enough to rank definitions.
  • It is very hard to maintain a knowledge graph by hand, and the ones that exist drift. The graph has to build itself.
  • The agent has to be stateless and replaceable.
  • A context layer is here to be useful, not to be perfect.

The bet is that a context built automatically, at least to start, and ranked on how the platform already behaves gets better as the platform is used. I do not know yet whether that holds. What I do like is that it uses the semantic models already there and asks for no new modelling.

So far the industry splits on who settles a conflict: the platform, by scoring it, which scales with usage, or a person, by reviewing it, which scales with reviewer time; I prefer the first, time will tell.

The harvest delivers one thing: a knowledge graph of the tenant - every term, its competing definitions ranked, and what feeds what. That graph is the context. It runs nightly on its own.

See it on a real tenant

Inside the platform, the harvest side reads a Fabric workspace, builds and ranks the graph, and publishes it as the context. Outside it, any stateless agent - on a laptop, in a notebook, in CI, in a chat - reads that context as one markdown file, runs rank 1 as DAX on the model that owns it, and answers with the number, its source and a confidence.

!pip install fabcontext
import fabcontext
url = fabcontext.harvest("Workspace_A")

The first call creates the lakehouse - in a workspace called context_layer you make first - and every later one updates it. It returns the URL an agent asks against.

The ranking, what is harvested, the schema, how to ask, the limits: docs/guide.md.

Agent

The agent can be anything - Claude, GitHub Copilot, Scout, Microsoft 365 Copilot. It installs nothing and needs one thing: a read-only Power BI connection. It finds the published ranking itself, at an address that is the same in every tenant. One DAX query asks which definition wins; a second runs it. One folder per tool: agent/.

Licence

MIT - see LICENSE.

Release files for fabcontext 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fabcontext 0.1.4
File Size Uploaded
fabcontext-0.1.4.tar.gz 116.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fabcontext 0.1.4
File Interpreter ABI Platform
fabcontext-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 230.2 kB

Release files / fabcontext-0.1.4.tar.gz

Download URL fabcontext-0.1.4.tar.gz
Size 116.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e5e1bcb9e2ee2cfe23b29c1e744840c4f6bd7e206dc2df55fdfd0ac110420ca4
BLAKE2b-256 checksum
How to use checksums
1f559573524bf58bcfc12c409e54291daed52907eba517cb39a4db0ed11d45d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release files / fabcontext-0.1.4-py3-none-any.whl

Download URL fabcontext-0.1.4-py3-none-any.whl
Size 113.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8db8bc2ce26b090db72a6f8c87aa69100d92bf3d9dc5c5f40bcc2370d4f45c85
BLAKE2b-256 checksum
How to use checksums
fff0eef2b86970d82c92da3018d12e72b6e85db12ec21d54a89589ac95b905c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.6

2 release files

0.1.5

2 release files

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page