Ingest policy text
ingest_textAdd policy/reference text to a domain's knowledge base.
Instructions
Add policy/reference text to a domain's knowledge base.
The text is chunked and embedded; explanations for future decisions in this domain will cite it. Creating a new domain claims it for your account (plan limits apply). Ingesting into a built-in demo domain gives your account its own copy of that demo (it counts as one of your domains); the shared demo others see is unchanged. On team plans, only the domain admin (the member who created the domain, or the subscription owner) can add documents.
Documents can be dated. A decision only cites documents in force on its
date, so a replaced policy is never quoted for a new decision. To publish a
new version, ingest it under a new source with supersedes naming the old
one: the old document stops applying on the new one's effective_from
(today if not given), and the new one starts that day. A document can be
superseded only once; to replace a successor, supersede the successor.
Args: domain: Domain to ingest into (existing or new). text: The policy or reference text. source: Optional source name shown in the document list. effective_from: First day this document applies, as YYYY-MM-DD (default: always). effective_until: First day it no longer applies, as YYYY-MM-DD (default: no end). supersedes: Source name of the document this one replaces.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| domain | Yes | ||
| source | No | ||
| supersedes | No | ||
| effective_from | No | ||
| effective_until | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |