Expand description
plato-tile-import — Import/export knowledge tiles from external formats. Supports Markdown, JSON, CSV, and plaintext. Zero external dependencies.
Structs§
- Tile
- A knowledge tile imported from an external format.
Functions§
- export_
markdown - Export tiles to Markdown format. Each tile: “## {question}\n{answer}\n\n”
- import_
csv - Import tiles from CSV. Format: question,answer,domain (header row required with those names) Comma-separated, values may be quoted with double quotes. Tags field is optional and skipped.
- import_
json - Import tiles from JSON array. Expected format: [{“question”: “…”, “answer”: “…”, “tags”: […], “domain”: “…”}] Fields “tags” and “domain” are optional (default to empty). Parse manually (no serde dependency).
- import_
markdown - Import tiles from Markdown.
Each
## Headersection becomes a tile: - import_
plaintext - Import tiles from plain text. Split by double-newline (paragraph boundaries). Within each paragraph: first non-empty line = question, remaining lines joined = answer. Skip paragraphs with no answer.