storagestringrequiredWhere it goes.
pathstringrequiredThe document's name.
contentanyText content.
contentBase64stringBytes — a PDF, a DOCX.
{ id: "index", type: "document.save", config: {
storage: "…", path: "digests/{{input.week}}.md",
content: "{{steps.write.output.text}}" } }{"id": "index", "type": "document.save", "config": {
"storage": "…", "path": "digests/{{input.week}}.md",
"content": "{{steps.write.output.text}}"}}What indexing adds
It closes a loop a chain could not close on its own
Semantic search only finds what was indexed. Without this step a workflow could produce a hundred reports and never be able to find one of them by what it says.
Output
{{steps.index.output.document}} // its identifier
{{steps.index.output.chunks}} // how many pieces were indexed
{{steps.index.output.bytes}}"{{steps.index.output.document}}" # its identifier
"{{steps.index.output.chunks}}" # how many pieces were indexed
"{{steps.index.output.bytes}}"Finding it again
{ id: "recall", type: "storage.query", config: {
storage: "…", action: "search", query: "{{input.question}}" } }{"id": "recall", "type": "storage.query", "config": {
"storage": "…", "action": "search", "query": "{{input.question}}"}}What it costs
The bytes count against the storage, as any file does. The search that later finds it costs a credit per call.