我们已完成 1.25 亿美元的 B 轮融资,用于构建代理工程平台。阅读更多。
TypeScript
{"html": "This is a sentence."} {"html": "This is another sentence."}
import { JSONLinesLoader } from "@langchain/classic/document_loaders/fs/json"; const loader = new JSONLinesLoader( "src/document_loaders/example_data/example.jsonl", "/html" ); const docs = await loader.load(); /* [ Document { "metadata": { "blobType": "application/jsonl+json", "line": 1, "source": "blob", }, "pageContent": "This is a sentence.", }, Document { "metadata": { "blobType": "application/jsonl+json", "line": 2, "source": "blob", }, "pageContent": "This is another sentence.", }, ] */
此页面有帮助吗?