LLM-optimized documentation for Union.ai and Flyte, provided at four levels of granularity and following the llms.txt convention so AI coding agents and search engines can consume the docs.

# LLM-optimized documentation

This site provides LLM-optimized documentation at four levels of granularity,
designed for use by AI coding agents such as
[Claude Code](https://docs.anthropic.com/en/docs/claude-code),
[Cursor](https://www.cursor.com/),
[Windsurf](https://windsurf.com/),
and similar tools.
These files also follow the [`llms.txt` convention](https://llmstxt.org/),
making them discoverable by AI search engines.

These files are not linked from the pages they cover. They are addressed by convention:
append `/page.md` to any page URL, or `/section.md` to a section URL. Start from the
`llms.txt` index below, which lists every page and every available bundle.

All links within LLM-optimized files use absolute URLs (`https://www.union.ai/docs/...`),
so files work correctly when copied locally and used outside the docs site.

## Per-page markdown (`page.md`)

Every page on this site has a parallel LLM-optimized version in clean Markdown,
accessible at the same URL path with `/page.md` appended.
For example, this page is at:

* `https://www.union.ai/docs/v2/flyte/api-reference/flyte-context/`

and its LLM-optimized version is at:

* [`https://www.union.ai/docs/v2/flyte/api-reference/flyte-context/page.md`](https://www.union.ai/docs/v2/flyte/api-reference/flyte-context/page.md)

Section landing pages include a `## Subpages` table listing child pages with their H2/H3 headings,
making it easy to identify the right page to fetch.

## Section bundles (`section.md`)

For key documentation sections, a curated bundle file concatenates all pages in the section
into a single `section.md` file.

These are accessible at the same URL path as the top page of the section, with `/section.md` appended.

These `section.md` files are sized to fit within modern LLM context windows
and are ideal for pasting into a prompt or adding to project context.

Available bundle files:

**User guide:**

* [`Core concepts`](https://www.union.ai/docs/v2/flyte/user-guide/get-started/core-concepts/section.md) (~12K tokens)
* [`Configure tasks`](https://www.union.ai/docs/v2/flyte/user-guide/tasks/task-configuration/section.md) (~37K tokens)
* [`Build tasks`](https://www.union.ai/docs/v2/flyte/user-guide/tasks/task-programming/section.md) (~56K tokens)
* [`Run and deploy tasks`](https://www.union.ai/docs/v2/flyte/user-guide/tasks/task-deployment/section.md) (~47K tokens)
* [`Configure apps`](https://www.union.ai/docs/v2/flyte/user-guide/apps/configure-apps/section.md) (~22K tokens)
* [`Build apps`](https://www.union.ai/docs/v2/flyte/user-guide/apps/build-apps/section.md) (~86K tokens)
* [`Native app integrations`](https://www.union.ai/docs/v2/flyte/user-guide/apps/native-app-integrations/section.md) (~29K tokens)
* [`Serve and deploy apps`](https://www.union.ai/docs/v2/flyte/user-guide/apps/serve-and-deploy-apps/section.md) (~26K tokens)
* [`Build an agent`](https://www.union.ai/docs/v2/flyte/user-guide/agents/build-agent/section.md) (~16K tokens)
* [`Sandboxing`](https://www.union.ai/docs/v2/flyte/user-guide/agents/sandboxing/section.md) (~11K tokens)
* [`Scale your runs`](https://www.union.ai/docs/v2/flyte/user-guide/run-scaling/section.md) (~13K tokens)
* [`Advanced project`](https://www.union.ai/docs/v2/flyte/user-guide/advanced-project/section.md) (~11K tokens)
* [`From Flyte 1 to 2`](https://www.union.ai/docs/v2/flyte/user-guide/migration/flyte-2/section.md) (~24K tokens)

**Tutorials:**

* [`Tutorials`](https://www.union.ai/docs/v2/flyte/tutorials/section.md) (~818K tokens)

**Integrations:**

* [`Integrations`](https://www.union.ai/docs/v2/flyte/integrations/section.md) (~98K tokens)

**Community:**

* [`Contributing docs and examples`](https://www.union.ai/docs/v2/flyte/community/contributing-docs/section.md) (~15K tokens)

**Platform deployment:**

* [`Platform deployment`](https://www.union.ai/docs/v2/flyte/oss-deployment/section.md) (~26K tokens)

## Page index (`llms.txt`)

The `llms.txt` file is a compact index of all LLM-optimized pages, organized by section.
Each page entry includes the H2/H3 headings found on that page, so an agent can identify
the right page to fetch without downloading it first.

Sections that have a `section.md` bundle are marked in the index.

Download it and append its contents to the `AGENTS.md`, `CLAUDE.md` or similar file in your project root.
Make sure you append the index into a file that is **loaded into context by default** by your coding tool.
Adding it as a skill or tool is less effective because the agent must decide to load it
rather than having the information always available.

* [`llms.txt`](https://www.union.ai/docs/v2/flyte/llms.txt) (~50K tokens)

> [!NOTE]
> You are viewing the **Flyte OSS** docs.
> To get the `llms.txt` for a different product variant, use the variant selector at the top of the page.

## Full documentation (`llms-full.txt`)

The `llms-full.txt` file contains the entire Flyte version 2.0 documentation as a single Markdown file.
This file is very large and is not suitable for direct inclusion in an LLM context window,
but it may be useful for RAG-based tools.

* [`llms-full.txt`](https://www.union.ai/docs/v2/flyte/llms-full.txt) (~2M tokens)

> [!NOTE]
> You are viewing the **Flyte OSS** docs.
> To get the `llms-full.txt` for a different product variant, use the variant selector at the top of the page.

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/flyte-context.md
**HTML**: https://www.union.ai/docs/v2/flyte/api-reference/flyte-context/
