Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

296 B
Raw Blame
import { invoke } from '@tauri-apps/api/core'

export async function parseDocument(filePath: string, fileType: string): Promise<string> {
  // Send both snake_case and camelCase for compatibility across runtimes/builds
  return await invoke('plugin:rag|parse_document', { filePath, fileType })
}