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.
配置本地文件系统目的地,将处理结果保存为 JSON 文件
type
string
"local"
output_dir
{原文件名}.json
[ { "element_id": "13a9939f23e485ca20a16c741658bcf64efd82309a6f0a8cf35679a65b2fd0dc", "type": "NarrativeText", "text": "文档内容...", "metadata": { "filename": "example.pdf", "filetype": "application/pdf", ... }, "embeddings": [0.1, 0.2, 0.3, ...] } ]
from xparse_client import LocalDestination destination = LocalDestination( output_dir='./output' # 输出目录 )
from xparse_client import LocalDestination destination = LocalDestination( output_dir='/home/user/pipeline_output' )
from xparse_client import LocalDestination, Pipeline destination = LocalDestination( output_dir='./output' ) # ... 其他配置 pipeline = Pipeline( source=source, destination=destination, # ...其他配置 ) pipeline.run()
./output
Was this page helpful?