LLM文档转换 icon

LLM文档转换

LLM文档处理节点,将文档转换为大模型友好的格式

Overview

The node "LLM文档转换" (LLM Document Conversion) provides functionality to convert various document formats into Markdown text using a large language model (LLM) based processing. Specifically, the "CSV转Markdown" operation under the "文件转Markdown" resource converts CSV files into Markdown format.

This node is useful in scenarios where users want to transform structured data files like CSV into readable Markdown documents for documentation, reporting, or publishing purposes. For example, converting CSV export of tabular data into Markdown tables that can be embedded in README files or wikis.

Properties

Name Meaning
文件字段名 The name of the input field containing the file data. Supported formats include pdf, doc, docx, ppt, pptx, xlsx, html, csv, etc. For this operation, it should point to the CSV file content.
返回Markdown文本 Boolean option whether to return the Markdown text content directly. If disabled, only the URL of the converted document is returned.

Output

The node outputs JSON data containing the result of the conversion. When "返回Markdown文本" is enabled, the output includes the Markdown text representation of the CSV file. If disabled, the output contains a URL pointing to the converted Markdown document stored elsewhere.

No binary data output is indicated by the source code.

Dependencies

  • Requires an API key credential for accessing the LLM document conversion service.
  • The node uses a base URL configured via credentials to send requests to the external LLM-based conversion API.
  • No other external dependencies are indicated.

Troubleshooting

  • Common issues may include invalid or unsupported file formats if the input file field does not contain valid CSV data.
  • Errors related to authentication failures if the required API key credential is missing or incorrect.
  • Network or API errors if the external service is unreachable or returns HTTP errors.
  • To resolve, ensure the input file field is correctly set and contains valid CSV content, verify API credentials, and check network connectivity.

Links and References

  • No direct links provided in the source code.
  • Users may refer to general Markdown table syntax guides and CSV formatting standards for preparing input files.

Discussion