artifacts

Convert File to Markdown or Tree

Parse a file using the document readers and return its content as markdown text or a structured content tree, without ingesting it into the knowledge base.

post/v1/artifacts/convert

Request body

metadataobject nullable

Optional metadata, must include 'file_name' to resolve file extension

readerstring nullable

Reader to use for parsing. If omitted the default reader for the file type is used.

format'object' | 'markdown'

Enumeration of content retrieval formats.

Response

Successful conversion

readerstring required

Reader that was used to parse the file

Changes