技巧

Markdown成为人机信息交互通用格式

精选理由

LlamaIndex团队分享为什么选择Markdown作为默认输出格式,以及如何处理表格等复杂元素。

LlamaIndex团队将Markdown定位为人与AI智能体之间的信息通用表示格式。该格式保留了表达结构所需的核心元素,如标题、列表和表格。对于具有合并表头的表格,系统会切换到HTML格式。Markdown在调试错误答案时保持可读性。

原文 · Jerry Liu

Markdown has become a universal representation of information between humans and agents. It preserves core primitives needed to express structure (headings, lists), allows agents to read the information in a semantically interpretable manner, and allows for complex elements like tables and charts. You can natively embed HTML as well. But since most unstructured data is not natively within markdown (yet), the issue becomes the translation layer. We've created best models to convert any unstructured document container into markdown. Check out our blog! llamaindex.ai/blog/markdown-… LlamaIndex 🦙 @llama_index Markdown is all you need. (Mostly.) A parser can get every word on the page right and still lose which column a number belongs to. Then your model has to guess. Markdown keeps headings, lists, and tables intact, and it stays readable when you're debugging a bad answer. For tables with merged headers, we switch to HTML. Read our breakdown on why it's our default output for parsing below! ⬇️ 🔗 View Quoted Tweet 💬 0 🔄 0 ❤️ 2 👀 430 ⚡