Skip to content

Commit 1c045f6

Browse files
committed
Markdown conversion
1 parent b8bd0d2 commit 1c045f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/docs/workers-ai/document-conversion.mdx renamed to src/content/docs/workers-ai/markdown-conversion.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Document Conversion
2+
title: Markdown Conversion
33
pcx_content_type: how-to
44
sidebar:
55
order: 5
@@ -11,7 +11,7 @@ import { Code, Type, MetaInfo, Details } from "~/components";
1111

1212
[Markdown](https://en.wikipedia.org/wiki/Markdown) is essential for text generation and large language models (LLMs) in training and inference because it can provide structured, semantic, human, and machine-readable input. Likewise, Markdown facilitates chunking and structuring input data for better retrieval and synthesis in the context of RAGs, and its simplicity and ease of parsing and rendering make it ideal for AI Agents.
1313

14-
For these reasons, document conversion plays an important role when designing and developing AI applications. Workers AI provides a utility method that developers can use from the [`env.AI`](/workers-ai/configuration/bindings/) binding or the REST APIs for quick, easy, and convenient conversion and summary of documents in multiple formats to Markdown language.
14+
For these reasons, document conversion plays an important role when designing and developing AI applications. Workers AI provides the `toMarkdown` utility method that developers can use from the [`env.AI`](/workers-ai/configuration/bindings/) binding or the REST APIs for quick, easy, and convenient conversion and summary of documents in multiple formats to Markdown language.
1515

1616
## Methods and definitions
1717

@@ -235,4 +235,4 @@ curl https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/tomarkdown \
235235

236236
## Pricing
237237

238-
`env.AI.toMarkdown` is free for most format conversions. In some cases, like image conversion, it uses Workers AI models detection and summarization, which may incur additional costs if it exceeds the Workers AI free allocation limits. See the [pricing page](/workers-ai/pricing/) for more details.
238+
`toMarkdown` is free for most format conversions. In some cases, like image conversion, it can use Workers AI models for object detection and summarization, which may incur additional costs if it exceeds the Workers AI free allocation limits. See the [pricing page](/workers-ai/pricing/) for more details.

0 commit comments

Comments
 (0)