Document
This page is auto-generated from the formations OpenAPI spec. Do not edit manually — run
pnpm generate-formations-resource-docsto regenerate.
Stores a text document in a project, optionally indexing it for knowledge retrieval.
Supports create and delete only. Updates are not applied — to replace content, delete and re-create the resource.
Syntax
type: document
properties:
content: String
path: String
filename: String
title: String
metadata: Object
tags: Object
chunk_strategy: String
chunk_size: Integer
chunk_overlap: Integer
Output
The physical resource ID is the public ID of the created resource. Reference it from other resources with a ref expression:
some_field:
ref: MyDocument
Properties
content
Document text content
Required: Yes Type: String
path
Virtual path for organising the document
Required: No Type: String Nullable: Yes
filename
Original filename
Required: No Type: String Nullable: Yes
title
Document title
Required: No Type: String Nullable: Yes
metadata
Arbitrary metadata key-value pairs
Required: No Type: Object Nullable: Yes
tags
Tag key-value pairs for filtering
Required: No Type: Object Nullable: Yes
chunk_strategy
How to split the content into embeddable chunks, matching POST /documents. whole (default) stores the content as a single chunk; size splits into fixed-size character windows with overlap. page is equivalent to whole for plain text.
Required: No Type: String
chunk_size
Window size in characters when chunk_strategy=size. Defaults to 1000.
Required: No Type: Integer
chunk_overlap
Overlap in characters between consecutive windows when chunk_strategy=size. Defaults to 200.
Required: No Type: Integer