Data Readers API
Add documents from files, directories, URLs, and glob patterns to the knowledge base.Commands
Add Documents
<source>- File path, directory, URL, or glob pattern
Options
| Flag | Description | Default |
|---|---|---|
--workspace <path> | Workspace directory | Current directory |
--vector-store <name> | Vector store backend | chroma |
Supported File Types
| Extension | Description |
|---|---|
.txt, .text | Plain text |
.md, .markdown | Markdown |
.json, .jsonl | JSON / JSON Lines |
.csv, .tsv | Tabular data |
.html, .htm | Web pages |
.pdf | PDF documents |
.docx, .doc | Word documents |
.xlsx, .xls | Spreadsheets |
.pptx, .ppt | Presentations |
Examples
Add PDF Documents
Add Web Content
Add Directory
Output
See Also
- Readers Module - SDK documentation

