Skip to content

External Entrances ​

Some content belongs next to your knowledge without becoming part of it: a team's engineering handbook on another site, a Skill published in another repository. The knowledge workspace can declare such entrances in its imports.yaml. Context never downloads, installs or captures them; it only knows where they are so pages and packages can link to them.

You needUse
A link readers can followAn external entrance
A conclusion that must be traceable and tracked for changeA registered, captured source — see Choosing How to Add Material
Docs or Skills in this same repositoryLinking Existing Docs and Skills

Declare an entrance ​

Ask the Agent when you want a lasting association; quick lookups while answering a question do not register anything.

text
Add our engineering handbook at https://docs.example.org/engineering/ as an
external entrance called engineering-guide, described as "Engineering conventions".

Each entrance has a stable ID and a URL. A kind (such as knowledge or Skill), title, description, path and version are optional hints. URLs must be HTTP(S) without credentials — never put access tokens in query strings. When the target's identity changes, use a new ID.

Ask the Agent to link the entrance where readers need it. In the page source the link names the entrance by ID:

markdown
See the [Engineering guide](context:import/engineering-guide).

The build turns this into the declared URL as-is; it never guesses addresses, adds paths or rewrites the version. An unknown ID keeps the label as plain text and produces a build warning.

To give readers a directory of all entrances, ask the Agent to add an entrances page to the package, and optionally to the website navigation. The page lists the declared details only, so check that every entrance suits the audience before exposing private ones.

Entrances are not evidence ​

An entrance is never cited and adds nothing to a page's references. When you ask the Agent to check entrances, it compares current versions with the declared ones using its own authorized tools; a target it cannot reach is reported as "version unknown", never as a change. Context itself never contacts these services.

When you first assemble a knowledge base and collect originals by hand, see Cold-Starting a Knowledge Base for how entrances, sources and hand-collected material fit together.

外部入口 ​

有些内容应当放在你的知识旁边,却不应成为知识的一部分:例如另一个站点上的团队工程手册,或发布在另一个仓库中的 Skill。知识工作区可以在 imports.yaml 中声明这类入口。Context 从不下载、安装或采集它们,只记录它们的位置,以便页面和知识包链接过去。

你需要使用
读者可以点击跳转的链接外部入口
必须可追溯、需要跟踪变化的结论已登记并已采集的来源,参见 选择添加材料的方式
同一仓库中的文档或 Skill链接已有的文档与 Skill

声明入口 ​

需要建立长期关联时请告诉 Agent;回答问题过程中的临时查阅不会登记任何内容。

text
把我们的工程手册 https://docs.example.org/engineering/ 添加为外部入口,
命名为 engineering-guide,描述为“Engineering conventions”。

每个入口都有一个稳定 ID 和一个 URL。类型(如知识或 Skill)、标题、描述、路径和版本是可选提示。URL 必须是不含凭据的 HTTP(S) 地址,切勿在查询字符串中放入访问令牌。当目标的身份发生变化时,请使用新的 ID。

在页面中链接入口 ​

请 Agent 在读者需要的位置链接该入口。在页面源文件中,链接通过 ID 指明入口:

markdown
See the [Engineering guide](context:import/engineering-guide).

构建时会把它原样替换为声明的 URL;不会猜测地址、追加路径或改写版本。未知的 ID 会保留链接文字作为纯文本,并产生一条构建警告。

如果想给读者提供所有入口的目录,可以请 Agent 在知识包中添加一个入口页,也可以选择把它加入网站导航。该页面只列出声明的信息,因此在暴露私有入口之前,请确认每个入口都适合目标读者。

入口不是证据 ​

入口从不被引用,也不会给页面的参考来源增加任何内容。当你要求 Agent 检查入口时,它会使用自身获得授权的工具,把当前版本与声明的版本进行比较;无法访问的目标会报告为“版本未知”,而不会报告为发生了变化。Context 本身从不联系这些服务。

首次组建知识库、手工收集原文时,入口、来源和手工收集的材料如何配合,参见 知识库冷启动。