Spaces:
Sleeping
Sleeping
| // hf-space/src/lib/knowledge/parser/text.ts | |
| import type { ParsedDocument } from './index'; | |
| export async function parseText(buffer: Buffer): Promise<ParsedDocument> { | |
| return { | |
| content: buffer.toString('utf-8'), | |
| }; | |
| } | |