Knowledge class can load documents from multiple sources and formats.
From local files
From URLs
Supported formats
The Knowledge class automatically detects and loads:- PDF documents -
.pdffiles - Text files -
.txt,.mdfiles - Word documents -
.docxfiles - Web pages - Any HTTP/HTTPS URL
- CSV files -
.csvfiles - JSON files -
.jsonfiles
From remote storage
Custom loaders
Implement theKnowledgeProtocol to create custom loaders.
See API reference for details.