Skip to main content

.DOWNLOAD

.textAsFile('text', 'filename')

Lädt Text als Datei herunter.

RAGAI.DOWNLOAD.textAsFile('Lorem Ipsum', 'exampleFile');

.downloadMaterial('skillId')

Lädt Material aus Dokumenten herunter.

await RAGAI.DOWNLOAD.downloadMaterial('skillId');

.getMDContent('skillId')

Lädt und gibt das MD eines Dokumentes zurück im JSON-Format.

await RAGAI.DOWNLOAD.getMDContent('skillId');
{ id: string, name: string, type: string, content: string }