Interface: RagDocumentInput
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:33
Represents raw document content provided for ingestion.
Properties
aclGroups?
optionalaclGroups:string[]
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:67
ACL groups allowed to retrieve this document. Empty/undefined means the document inherits the data source's default ACL (typically unrestricted within the tenant).
classification?
optionalclassification:"internal"|"public"|"confidential"|"restricted"
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:72
Sensitivity classification. Drives default redaction policy and audit obligations.
content
content:
string
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:37
Raw text that will be chunked and embedded.
dataSourceId?
optionaldataSourceId:string
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:39
Optional override for which data source / collection to push this document into.
effectiveDate?
optionaleffectiveDate:string
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:80
ISO timestamp: when this document became authoritative.
embedding?
optionalembedding:number[]
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:49
Optional pre-computed embedding vector.
embeddingModelId?
optionalembeddingModelId:string
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:51
Identifier of the embedding model used when embedding is supplied.
expiresAt?
optionalexpiresAt:string
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:82
ISO timestamp: when this document stops being authoritative.
id
id:
string
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:35
Stable identifier for the document (chunk IDs will derive from this).
language?
optionallanguage:string
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:45
ISO language tag for the content.
metadata?
optionalmetadata:Record<string,MetadataValue>
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:43
Arbitrary metadata stored alongside chunks; values must be vector-store friendly.
source?
optionalsource:string
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:41
Original source pointer (URL, file path, API, etc.).
status?
optionalstatus:"draft"|"deprecated"|"active"|"archived"
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:78
Lifecycle status. active chunks are returned by default;
draft/archived/deprecated are excluded unless the retrieval
options opt them in.
tenantId?
optionaltenantId:string
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:61
Tenant the document belongs to. Used for multi-tenant isolation.
timestamp?
optionaltimestamp:string
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:47
ISO timestamp describing when this content was produced/updated.