Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
配置本地文件夹数据源,从本地文件系统读取文档
type
string
"local"
directory
pattern
list[string]
['*.pdf']
*
**
['*.pdf', '*.docx']
['**/*.txt']
recursive=True
source = LocalSource( directory='./documents', # 相对路径 pattern=['*.pdf'] # 只匹配 PDF 文件 )
source = LocalSource( directory='/home/user/documents', # 绝对路径 pattern=['*.pdf'] # 只匹配 PDF 文件 )
from xparse_client import LocalSource, Pipeline source = LocalSource( directory='./documents', recursive=True, pattern=['*.pdf'] # 递归处理所有 PDF 文件 ) # ... 其他配置 pipeline = Pipeline( source=source, # ...其他配置 ) pipeline.run()
此页面对您有帮助吗?