parallel-data-enrichment

作者: parallel-web

批量数据增强。为公司、人员或产品列表添加网络来源字段(CEO姓名、融资信息、联系方式)。用于增强CSV文件或…

npx skills add https://github.com/parallel-web/parallel-cursor-plugin --skill parallel-data-enrichment

Data Enrichment

Enrich: $ARGUMENTS

Before starting

Inform the user that enrichment may take several minutes depending on the number of rows and fields requested.

Optional: Suggest output columns

If the user gave a vague intent ("enrich these companies with useful info") and you're not sure what columns to add, ask the API for a suggestion before kicking off the run:

parallel-cli enrich suggest "Find CEO and recent funding info" --json

The response is an envelope: {title, processor, enriched_columns, warnings}. Extract just the enriched_columns array (not the whole envelope) and pass it as the value of --enriched-columns on enrich run, in place of --intent. These flags are alternative ways to specify what to enrich. If suggest returned a processor, pass it explicitly via --processor on the run call. Skip this section if the user already specified the fields they want.

enrich suggest requires parallel-cli ≥ 0.3.0. If only that command is missing, skip the optional suggestion step and use --intent in step 1. Suggest an installation-specific upgrade from Setup. Do not classify authentication, API or invalid-input failures as an older CLI. An intent-based run itself requests a suggestion; explicit columns default to core-fast, while intent can select another processor unless --processor overrides it.

Step 1: Start the enrichment

Use ONE of these command patterns (substitute user's actual data):

For inline data:

parallel-cli enrich run --data '[{"company": "Google"}, {"company": "Microsoft"}]' --intent "CEO name and founding year" --target "output.csv" --no-wait --json

For CSV file:

parallel-cli enrich run --source-type csv --source "input.csv" --target "output.csv" --source-columns '[{"name": "company", "description": "Company name"}]' --intent "CEO name and founding year" --no-wait --json

If this is a follow-up to a previous research task and you have its interaction_id, add context chaining:

parallel-cli enrich run --data '...' --intent "..." --target "output.csv" --no-wait --json --previous-interaction-id "$INTERACTION_ID"

This reuses the prior Task's context. Context chaining is unavailable for Zero Data Retention (ZDR) accounts, so omit the flag there and include the needed context explicitly. Enrichment does not return a new interaction_id; retain the prior Task ID for later follow-ups. A taskgroup_id or Search/Extract session_id is not a Task interaction ID.

IMPORTANT: Always include --no-wait so the command returns immediately instead of blocking.

Save the --json output's taskgroup_id, url and num_runs immediately. There is no interaction_id field. If creation is interrupted or its response is lost, inspect whether the group was created before submitting another run. Immediately tell the user:

  • Enrichment has been kicked off
  • The monitoring URL where they can track progress

The group runs server-side; polling can resume later using its saved ID.

Step 2: Poll for results

Pick a persistent, run-specific output path (e.g., enrichment-acme-tgrp-<id>.json). Polling overwrites its output file, so inspect any existing file and use a new path unless replacement is intended. The output is JSON regardless of extension: an array of rows with input and either output or error. Async polling does not include basis or per-row interaction IDs; do not invent citations or context IDs.

parallel-cli enrich poll "$TASKGROUP_ID" --timeout 60 --output "enrichment-<descriptive-name>-<group-id>.json"

Important:

  • Keep polls bounded; --timeout 60 allows progress updates between waits.
  • The --target from step 1 is unused in --no-wait mode. Only --output here determines where results are saved, and the file is always JSON.
  • A completed group can include failed rows. Count rows containing output separately from rows containing error and compare their total with num_runs; an empty or incomplete file is not successful enrichment of the entire input.

If polling times out or is interrupted

Timeout exit 5 or interruption ends the local wait. Check group state before saying it is still running:

parallel-cli enrich status "$TASKGROUP_ID" --json

Inspect is_active, status_counts and num_runs. Resume the same poll for an active group, or retrieve results for an inactive group and report failures or unresolved rows. Do not recreate the group on a timeout or automatically rerun failed rows. A local file-write failure can be retried with the same group ID and a writable output path.

If the user requested CSV

Convert the saved JSON locally into a separate CSV. Preserve every original input column and row, including duplicate and failed rows; keep enrichment fields separate from conflicting input names and include an error column for failures. Do not assume streamed rows match original input order or guess a join when row identity is ambiguous. Validate the row count and leave the input CSV untouched. This is local conversion, not a CSV produced by async polling; report both JSON and CSV paths.

Response format

After step 1: Share the monitoring URL (for tracking progress).

After step 2:

  1. Report successful, failed and total row counts, with any missing results called out.
  2. Preview a few successful rows and a representative failure if present, without claiming all rows succeeded.
  3. Tell the user the full path to the output file

After completion, link the saved output rather than repeating the monitoring URL.

If the parallel-cli binary is not installed

If the shell reports command not found: parallel-cli, stop and tell the user to run /parallel-setup, then retry their request. Do not substitute built-in search, another provider or an answer from memory.

Command and authentication failures

No such command, No such option or unrecognized arguments from an installed CLI indicate a stale or mismatched interface. Check its version and upgrade through its installation method using /parallel-setup; parallel-cli update is for standalone installs only. Verify the required command in the same Cursor terminal before retrying.

For authentication errors, run parallel-cli auth --json and inspect authenticated; exit zero alone does not prove authentication. Use /parallel-setup for terminal login or environment-key guidance, without requesting credentials in chat. A 403 can be an authorization or billing error: report the actual error and do not assume insufficient balance or add funds automatically.

For other API/input errors, report the error without calling it a version problem. Reuse saved run IDs to resume asynchronous work. After an ambiguous creation failure, resolve whether a job exists before retrying creation.

来自 parallel-web 的更多技能

parallel-monitor
parallel-web
持续按固定频率追踪网页变化。当用户要求“监控”、“追踪变化”、“关注”或“提醒我”某内容时使用…
migrate-to-parallel
parallel-web
将Exa、Tavily、Perplexity或Firecrawl的网页数据集成完全迁移到相应的Parallel产品,同时保持应用程序行为不变。使用…
parallel-data-enrichment
parallel-web
批量丰富公司、人员或产品数据,通过网页来源字段(如CEO姓名、融资信息、联系方式)进行补充。支持内联JSON数据或CSV文件输入,并将丰富后的结果输出为CSV。异步运行,通过监控URL和轮询命令跟踪进度。需要parallel-cli工具和互联网访问,可处理大型数据集并配置超时时间。通过自然语言意图描述(例如“CEO姓名和成立年份”)支持灵活的字段请求。
parallel-deep-research
parallel-web
针对复杂主题的详尽研究,支持可配置的深度、延迟与成本权衡。三个处理层级(pro-fast、ultra-fast、ultra)耗时从30秒到25分钟不等,成本按基准的1倍至3倍递增。异步执行与轮询机制:即时启动研究,通过URL监控进度,就绪后获取结果且不阻塞流程。输出格式化的Markdown报告与JSON元数据;执行摘要打印至标准输出以便快速概览。专为显式...
parallel-findall
parallel-web
发现与自然语言描述匹配的实体(公司、人物、产品等)。当用户要求“找出所有X”或“列出每个Y,这些Y……”时使用。
parallel-memory
parallel-web
在可能有用时,回忆过去的Parallel Task、Monitor和FindAll运行记录;在接到请求时,清除运行记录或清空记忆。
parallel-web-extract
parallel-web
从多个URL并行提取内容,高效利用令牌。通过单条命令处理网页、文章、PDF及JavaScript密集型网站。在分叉上下文中运行,相比内置WebFetch减少令牌开销。支持批量提取多个URL,可设置可选聚焦目标。需安装parallel-cli并完成认证;提取内容以Markdown格式输出至本地文件,便于后续查询。
parallel-web-search
parallel-web
快速网络搜索,用于获取当前信息、进行研究及事实核查。可执行单一目标查询或并行多个关键词搜索,返回最多10条结果,包含摘要和元数据。支持通过--after-date进行时效性过滤,以及使用--include-domains进行特定域名搜索。输出结构化JSON,包含标题、URL、发布日期和摘要,便于解析和后续查询。要求每条声明使用Markdown格式的内联引用...