PageSourceSearch

https://www.autoinfra.cn/assets/js/1714ceb3.a48efe66.js

js autoinfra.cn collected 2026-10-03 21:16:03 UTC 6,402 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklangchain_zh=self.webpackChunklangchain_zh||[]).push([[8715],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>f});var r=n(67294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),s=p(n),m=o,f=s["".concat(c,".").concat(m)]||s[m]||d[m]||a;return n?r.createElement(f,i(i({ref:t},u),{},{components:n})):r.createElement(f,i({ref:t},u))}));function f(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,i=new Array(a);i[0]=m;var l={};for(var c in t)hasOwnProperty.call(t,c)&&(l[c]=t[c]);l.originalType=e,l[s]="string"==typeof e?e:o,i[1]=l;for(var p=2;p<a;p++)i[p]=n[p];return r.createElement.apply(null,i)}return r.createElement.apply(null,n)}m.displayName="MDXCreateElement"},76396:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>a,metadata:()=>l,toc:()=>p});var r=n(87462),o=(n(67294),n(3905));const a={},i="Notion\u6570\u636e\u5e93 1/2",l={unversionedId:"integrations/document_loaders/notion",id:"integrations/document_loaders/notion",title:"Notion\u6570\u636e\u5e93 1/2",description:"Notion \u662f\u4e00\u4e2a\u534f\u4f5c\u5e73\u53f0\uff0c\u652f\u6301\u4fee\u6539\u7684Markdown\uff0c\u96c6\u6210\u770b\u677f\u3001\u4efb\u52a1\u3001\u7ef4\u57fa\u548c\u6570\u636e\u5e93\u3002\u5b83\u662f\u4e00\u4e2a\u96c6\u5408\u4e86\u7b14\u8bb0\u3001\u77e5\u8bc6\u548c\u6570\u636e\u7ba1\u7406\u4ee5\u53ca\u9879\u76ee\u548c\u4efb\u52a1\u7ba1\u7406\u7684\u591a\u5408\u4e00\u5de5\u4f5c\u7a7a\u95f4\u3002",source:"@site/docs/integrations/document_loaders/notion.md",sourceDirName:"integrations/document_loaders",slug:"/integrations/document_loaders/notion",permalink:"/docs/integrations/document_loaders/notion",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"integrations",previous:{title:"\u65b0\u95fbURL (News URL)",permalink:"/docs/integrations/document_loaders/news"},next:{title:"Notion\u6570\u636e\u5e93 2/2 (Notion DB 2/2)",permalink:"/docs/integrations/document_loaders/notiondb"}},c={},p=[{value:"\ud83e\uddd1 \u81ea\u5df1\u6570\u636e\u96c6\u5bfc\u5165\u7684\u8bf4\u660e",id:"-\u81ea\u5df1\u6570\u636e\u96c6\u5bfc\u5165\u7684\u8bf4\u660e",level:2}],u={toc:p},s="wrapper";function d(e){let{components:t,...n}=e;return(0,o.kt)(s,(0,r.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"notion\u6570\u636e\u5e93-12"},"Notion\u6570\u636e\u5e93 1/2"),(0,o.kt)("blockquote",null,(0,o.kt)("p",{parentName:"blockquote"},(0,o.kt)("a",{parentName:"p",href:"https://www.notion.so/"},"Notion")," \u662f\u4e00\u4e2a\u534f\u4f5c\u5e73\u53f0\uff0c\u652f\u6301\u4fee\u6539\u7684Markdown\uff0c\u96c6\u6210\u770b\u677f\u3001\u4efb\u52a1\u3001\u7ef4\u57fa\u548c\u6570\u636e\u5e93\u3002\u5b83\u662f\u4e00\u4e2a\u96c6\u5408\u4e86\u7b14\u8bb0\u3001\u77e5\u8bc6\u548c\u6570\u636e\u7ba1\u7406\u4ee5\u53ca\u9879\u76ee\u548c\u4efb\u52a1\u7ba1\u7406\u7684\u591a\u5408\u4e00\u5de5\u4f5c\u7a7a\u95f4\u3002")),(0,o.kt)("p",null,"\u672c\u7b14\u8bb0\u672c\u4ecb\u7ecd\u4e86\u5982\u4f55\u4eceNotion\u6570\u636e\u5e93\u8f6c\u50a8\u4e2d\u52a0\u8f7d\u6587\u6863\u3002"),(0,o.kt)("p",null,"\u8981\u83b7\u53d6\u8fd9\u4e2aNotion\u8f6c\u50a8\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u8bf4\u660e\u64cd\u4f5c\uff1a"),(0,o.kt)("h2",{id:"-\u81ea\u5df1\u6570\u636e\u96c6\u5bfc\u5165\u7684\u8bf4\u660e"},"\ud83e\uddd1 \u81ea\u5df1\u6570\u636e\u96c6\u5bfc\u5165\u7684\u8bf4\u660e"),(0,o.kt)("p",null,"\u4eceNotion\u5bfc\u51fa\u60a8\u7684\u6570\u636e\u96c6\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684\u4e09\u4e2a\u70b9\uff0c\u7136\u540e\u70b9\u51fb\u201c\u5bfc\u51fa\u201d\u6765\u5b8c\u6210\u6b64\u64cd\u4f5c\u3002"),(0,o.kt)("p",null,"\u5728\u5bfc\u51fa\u65f6\uff0c\u8bf7\u786e\u4fdd\u9009\u62e9\u201cMarkdown\u548cCSV\u201d\u683c\u5f0f\u9009\u9879\u3002"),(0,o.kt)("p",null,"\u8fd9\u5c06\u5728\u60a8\u7684\u4e0b\u8f7d\u6587\u4ef6\u5939\u4e2d\u751f\u6210\u4e00\u4e2a",(0,o.kt)("inlineCode",{parentName:"p"},".zip"),"\u6587\u4ef6\u3002\u5c06",(0,o.kt)("inlineCode",{parentName:"p"},".zip"),"\u6587\u4ef6\u79fb\u52a8\u5230\u6b64\u5b58\u50a8\u5e93\u4e2d\u3002"),(0,o.kt)("p",null,"\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u89e3\u538b\u7f29zip\u6587\u4ef6\uff08\u6839\u636e\u9700\u8981\u66ff\u6362\u201cExport...\u201d\u4e3a\u60a8\u81ea\u5df1\u7684\u6587\u4ef6\u540d\uff09\u3002"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-shell"},"unzip Export-d3adfe0f-3131-4bf3-8987-a52017fc1bae.zip -d Notion_DB\n")),(0,o.kt)("p",null,"\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5bfc\u5165\u6570\u636e\u3002"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-python"},"from langchain.document_loaders import NotionDirectoryLoader\n")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-python"},'loader = NotionDirectoryLoader("Notion_DB")\n')),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-python"},"docs = loader.load()\n")))}d.isMDXComponent=!0}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.