Source: summerfang-jolli/code-to-doc-demo Last Updated: 2/11/2026
Sample MDX Document
This is a sample MDX file for testing RAGFlow upload functionality.
Introduction
MDX (Markdown Extended) is a file format that allows you to write JSX in your Markdown documents. It’s commonly used for documentation and content creation.
Code Examples
Here’s a Python code example:
def hello_world():
print("Hello, World!")
return "success"
# Call the function
result = hello_world()Features
- Rich Text: Support for bold, italic, and other formatting
- Code Blocks: Syntax-highlighted code examples
- Lists: Ordered and unordered lists
- Links: External links
Data Structure Example
{
"name": "Sample Project",
"version": "1.0.0",
"dependencies": {
"react": "^18.0.0",
"next": "^13.0.0"
}
}Conclusion
This sample MDX file demonstrates various markdown features that can be processed by RAGFlow for document retrieval and question answering capabilities.
Additional Notes
- This file can be uploaded to RAGFlow datasets
- It supports semantic search and retrieval
- Perfect for building knowledge bases and documentation systems