我们已完成 1.25 亿美元的 B 轮融资,用于构建代理工程平台。阅读更多。
TypeScript
包含子页面
为子页面创建文件夹
import { NotionLoader } from "@langchain/community/document_loaders/fs/notion"; export const run = async () => { /** Provide the directory path of your notion folder */ const directoryPath = "Notion_DB"; const loader = new NotionLoader(directoryPath); const docs = await loader.load(); console.log({ docs }); };
此页面有帮助吗?