MarkdownReader to Knowledge.insert() to load a Markdown file.
markdown_reader.py
Run the Agent
1
Set up your virtual environment
2
Install dependencies
3
Export the API key
4
Run PgVector
5
Run the agent
Reader Parameters
MarkdownReader also accepts the base Reader constructor parameters.
The agno[markdown] extra installs unstructured, markdown, and aiofiles, so this setup uses MarkdownChunking. With the base agno package alone, the reader falls back to FixedSizeChunking.
MarkdownReader.async_read() uses aiofiles when it is installed and falls back to synchronous file I/O otherwise.