Hugging Face 推出開源 AI Sheets,供用户無代碼建立、豐富及轉換資料集
Introducing AI Sheets: a tool to work with datasets using open AI models!
Hugging Face 推出開源無代碼工具 AI Sheets,讓用户使用 AI 模型建立、豐富及轉換資料集。它以試算表介面新增提示詞欄位,支援透過 Inference Providers 使用 Hugging Face Hub 上數以千計的開放模型,也可使用本地模型,並可本機部署或部署至 Hub。
AI Sheets 將提示詞生成、人工校訂與資料集匯出串成工作流,校訂及按讚的儲存格可作為 few-shot 範例供後續生成重用。
🧭重點摘要
Hugging Face AI Sheets 是一款全新的開源工具,讓你無需編寫程式碼,即可使用 AI 模型建立、豐富和轉換資料集。工具可在本機或 Hub 上部署,讓你透過 Inference Providers 使用 Hugging Face Hub 上數以千計的開放模型,亦可使用本機模型,包括 OpenAI 的 gpt-oss!
實用連結
免費試用工具(毋須安裝):https://huggingface.co/spaces/aisheets/sheets
在本機安裝和執行:https://github.com/huggingface/sheets
甚麼是 AI Sheets
AI Sheets 是一款無需編寫程式碼的工具,可使用(開放式)AI 模型建立、轉換和豐富資料集。它與 Hub 及開源 AI 生態系統緊密整合。
AI Sheets 採用容易上手、類似試算表的使用介面。工具專為快速實驗而設,先從小型資料集開始,再執行耗時或成本較高的資料生成流程。
在 AI Sheets 中,只要撰寫提示詞便可建立新欄,你可以按需要反覆調整,並編輯或驗證儲存格,讓模型瞭解你的要求。稍後會再詳談!
可以用來做甚麼
你可以使用 AI Sheets:
比較模型並快速測試其風格。假設你想使用自己的資料測試最新模型,可以匯入包含提示詞或問題的資料集,並建立數個欄(每個模型一欄),使用類似以下提示詞:Answer the following: {{prompt}},其中 prompt 是資料集中的一欄。你可以手動驗證結果,或新增一欄,使用以下這類 LLM 評審提示詞:Evaluate the responses to the following question: {{prompt}}. Response 1: {{model1}}. Response 2: {{model2}},其中 model1 和 model2 是資料集中存放不同模型回應的欄。
為你的資料和特定模型改善提示詞。假設你想建立一個處理客戶要求並自動回覆的應用程式。你可以載入包含客戶要求的樣本資料集,開始試用及反覆調整不同提示詞和模型,生成回應。AI Sheets 的一項實用功能,是可以透過編輯或驗證儲存格提供回饋。系統會自動將這些範例儲存格加入提示詞。你可以把它想像成一個提示詞微調工具,讓你即時查看資料,並有效率地在提示詞中加入 few-shot 範例!
轉換資料集。假設你想清理資料集中的一欄,可以新增一欄並使用類似 Remove extra punctuation marks from the following text: {{text}} 的提示詞;其中 text 是資料集中包含待清理文字的欄。
為資料集分類。假設你想為資料集中的某些內容分類,可以新增一欄並使用類似 Categorize the following text: {{text}} 的提示詞;其中 text 是資料集中包含待分類文字的欄。
分析資料集。假設你想從資料集中提取主要觀點,可以新增一欄並使用以下提示詞:Extract the most important ideas from the following: {{text}};其中 text 是資料集中包含待分析文字的欄。
豐富資料集。假設你的地址資料集缺少郵遞區號,可以新增一欄並使用以下提示詞:Find the zip code of the following address: {{address}}(此時必須啟用「Search the web」選項,才能確保結果準確)。
生成合成資料集。假設你需要包含真實感電郵的資料集,但因私隱原因無法取得相關資料。你可以使用類似 Write a short description of a professional in the field of pharma companies 的提示詞建立資料集,並將欄命名為 person_bio。然後新增另一欄,使用類似 Write a realistic professional email as it was written by the following person: {{person_bio}} 的提示詞。
現在來看看如何使用吧!
使用方法
AI Sheets 提供兩種開始方式:匯入現有資料,或從零開始生成資料集。載入資料後,你可以新增欄、編輯儲存格及重新生成內容,進一步整理資料。
開始使用
要開始使用,你需要以自然語言描述資料集並從零建立,或匯入現有資料集。
從零開始生成資料集
最適合:熟悉 AI Sheets、腦力激盪、快速實驗和建立測試資料集。
你可以把它想像成自動建立資料集,或由提示詞生成資料集的功能:你只需描述需求,AI Sheets 便會為你建立完整的資料集結構和內容。
適用情況:
- 你初次試用 AI Sheets
- 你需要合成資料作測試或原型設計
- 資料準確度和多樣性並非首要考慮(例如腦力激盪用途、快速研究、生成測試資料集)
- 你想快速試驗不同構思
運作方式:
- 在提示區描述你想要的資料集
- 例子:「虛構初創公司的清單,列出公司名稱、行業和標語」
- AI Sheets 會生成結構,並建立 5 行範例資料
- 可擴展至最多 1,000 行,或修改提示詞以調整結構
範例
如果輸入以下提示詞:cities of the world, alongside countries they belong to and a landmark image for each, generated in Ghibli style:
這個資料集只有五行,但你可以在每欄向下拖曳,新增儲存格,包括圖片欄!你亦可直接在任何儲存格輸入內容,再透過拖曳填寫其他儲存格。
以下各節會介紹如何反覆調整和擴充資料集。
匯入你的資料集(建議)
最適合:大部分需要使用 AI 模型轉換、分類、豐富和分析現實資料的情況。
大部分情況都建議採用此方法,因為匯入真實資料比從零開始更具掌控度和彈性。
適用情況:
- 你已有資料,需要使用 AI 模型轉換或豐富內容
- 你想生成合成資料,而且準確度和多樣性很重要
運作方式:
- 以 XLS、TSV、CSV 或 Parquet 格式上載資料
- 確保檔案至少包含一個欄名和一行資料
- 最多可上載 1,000 行(欄數不限)
- 資料會以熟悉的試算表格式顯示
小貼士:如果檔案資料很少,你可以直接在試算表輸入內容,手動新增資料。
處理資料集
載入資料後(無論採用哪種方式),你都會在可編輯的試算表介面中看到資料。請留意以下事項:
認識 AI Sheets
- 匯入的儲存格:可以手動編輯,但不能透過 AI 提示詞修改
- AI 生成的儲存格:可透過提示詞和你的回饋(編輯內容及點讚)重新生成和調整
- 新增欄:一律由 AI 驅動,並可完全自訂
開始使用 AI 欄
- 按一下「+」按鈕新增欄
- 從建議動作中選擇:
- 提取特定資訊
- 總結長篇文字
- 翻譯內容
- 或撰寫自訂提示詞,例如「對 {{column}} 執行某項操作」
調整和擴充資料集
建立 AI 欄後,你可以改善結果並擴充資料。你可以手動編輯或按讚提供回饋,也可以調整欄設定來改善結果。兩種方法都需要重新生成才會生效。
1. 如何新增儲存格
- 向下拖曳:從某欄的最後一個儲存格向下拖曳,即時生成更多資料列
- 毋須重新生成,新的儲存格會即時建立
- 你亦可用此方法重新生成出錯的儲存格
2. 手動編輯和提供回饋
- 編輯儲存格:按一下任何儲存格即可直接編輯內容,讓模型參考你偏好的輸出範例
- 為結果點讚:使用讚好按鈕標記優質輸出範例
- 重新生成,即可將回饋套用至該欄的其他儲存格。
在幕後,這些經手動編輯或按讚的儲存格會成為 few-shot 範例;重新生成或為該欄新增儲存格時,系統便會使用它們!
3. 調整欄設定 修改提示詞、切換模型或供應商,或調整設定,然後重新生成以取得更佳結果。
改寫提示詞
- 每欄都有自己的生成提示詞
- 可隨時編輯,以更改或改善輸出
- 該欄會以新結果重新生成
切換模型/供應商
- 可試用不同模型以比較效能,或比較它們的輸出。
- 不同模型在特定任務上的準確度、創意或結構化能力各有不同。
- 部分供應商的推理速度較快、上下文長度亦不同;可為所選模型測試不同供應商。
切換搜尋功能
- 啟用:模型會從網絡取得最新資訊
- 停用:離線使用,只由模型生成內容
將最終資料集匯出至 Hub
完成新資料集後,即可將它匯出至 Hub!此外,系統會生成一份設定檔,供你之後重用:(1) 使用 HF jobs 和這份程式生成更多資料;(2) 在下游應用程式重用提示詞,包括從你編輯和按讚的儲存格提取的 few-shot 範例。
以下是使用 AISheets 建立的資料集範例,它會生成這份設定。
使用 HF Jobs 執行資料生成程式
如果你想生成較大型的資料集,可以像以下範例一樣,使用上述設定和程式:
hf jobs uv run \
-s HF_TOKEN=$HF_TOKEN \
https://huggingface.co/datasets/aisheets/uv-scripts/raw/main/extend_dataset/script.py \ # script for running the pipeline
--config https://huggingface.co/datasets/dvilasuero/nemotron-personas-kimi-questions/raw/main/config.yml \ # config with prompts
--num-rows 100 \ # limit to 100 rows, leave empty for the full dataset
nvidia/Nemotron-Personas dvilasuero/nemotron-kimi-qa-distilled
範例
本節提供使用 AI Sheets 建立資料集的範例,為你的下一個專案帶來靈感。
快速測試並比較模型
如果你想使用自己關心的提示詞和資料測試最新模型,AI Sheets 會是你的理想夥伴。
你只需匯入資料集(或從零建立),然後為想測試的模型新增不同欄。
接着,你可以手動檢查結果,或新增一欄,使用 LLM 評審各個模型的質素。
以下範例比較用於迷你網頁應用程式的開放式前沿模型。AI Sheets 可讓你查看互動結果並試用每個應用程式。此外,資料集亦包含數個由 LLM 評審和比較應用程式質素的欄。
根據剛才介紹的流程匯出的資料集範例:https://huggingface.co/datasets/dvilasuero/jsvibes-qwen-gpt-oss-judged
設定:
columns:
gpt-oss:
modelName: openai/gpt-oss-120b
modelProvider: groq
userPrompt: Create a complete, runnable HTML+JS file implementing {{description}}
searchEnabled: false
columnsReferences:
- description
eval-qwen-coder:
modelName: Qwen/Qwen3-Coder-480B-A35B-Instruct
modelProvider: cerebras
userPrompt: "Please compare the two apps and tell me which one is better and why:\n\nApp description:\n\n{{description}}\n\nmodel 1:\n\n{{qwen3-coder}}\n\nmodel 2:\n\n{{gpt-oss}}\n\nKeep it very short and focus on whether they work well for the purpose, make sure they work and are not incomplete, and the code quality, not on visual appeal and unrequested features. Assume the models might provide non working solutions, so be careful to assess that\n\nRespond with:\n\nchosen: {model 1, model 2}\n\nreason: ..."
searchEnabled: false
columnsReferences:
- gpt-oss
- description
- qwen3-coder
eval-gpt-oss:
modelName: openai/gpt-oss-120b
modelProvider: groq
userPrompt: "Please compare the two apps and tell me which one is better and why:\n\nApp description:\n\n{{description}}\n\nmodel 1:\n\n{{qwen3-coder}}\n\nmodel 2:\n\n{{gpt-oss}}\n\nKeep it very short and focus on whether they work well for the purpose, make sure they work and are not incomplete, and the code quality, not on visual appeal and unrequested features. Assume the models might provide non working solutions, so be careful to assess that\n\nRespond with:\n\nchosen: {model 1, model 2}\n\nreason: ..."
searchEnabled: false
columnsReferences:
- gpt-oss
- description
- qwen3-coder
eval-kimi:
modelName: moonshotai/Kimi-K2-Instruct
modelProvider: groq
userPrompt: "Please compare the two apps and tell me which one is better and why:\n\nApp description:\n\n{{description}}\n\nmodel 1:\n\n{{qwen3-coder}}\n\nmodel 2:\n\n{{gpt-oss}}\n\nKeep it very short and focus on whether they work well for the purpose, make sure they work and are not incomplete, and the code quality, not on visual appeal and unrequested features. Assume the models might provide non working solutions, so be careful to assess that\n\nRespond with:\n\nchosen: {model 1, model 2}\n\nreason: ..."
searchEnabled: false
columnsReferences:
- gpt-oss
- description
- qwen3-coder
為 Hub 資料集新增分類
AI Sheets 亦可擴充現有資料集,協助你快速進行資料分析,以及分析文字資料集的資料科學專案。
以下示範如何為現有 Hub 資料集新增分類。
一項實用功能是,你可以手動驗證或編輯初始分類結果,再重新生成整欄以改善結果,如下所示:
設定:
columns:
category:
modelName: moonshotai/Kimi-K2-Instruct
modelProvider: groq
userPrompt: |-
Categorize the main topics of the following question:
{{question}}
prompt: "
You are a rigorous, intelligent data-processing engine. Generate only the
requested response format, with no explanations following the user
instruction. You might be provided with positive, accurate examples of how
the user instruction must be completed.
# Examples
The following are correct, accurate example outputs with respect to the
user instruction:
## Example
### Input
question: Given the area of a parallelogram is 420 square centimeters and
its height is 35 cm, find the corresponding base. Show all work and label
your answer.
### Output
Mathematics – Geometry
## Example
### Input
question: What is the minimum number of red squares required to ensure
that each of $n$ green axis-parallel squares intersects 4 red squares,
assuming the green squares can be scaled and translated arbitrarily
without intersecting each other?
### Output
Geometry, Combinatorics
# User instruction
Categorize the main topics of the following question:
{{question}}
# Your response
"
searchEnabled: false
columnsReferences:
- question
使用 LLM 作評審來評估模型
另一種用途是採用 LLM 作評審的方法來評估模型輸出。例如,可藉此比較模型,或評估現有資料集的質素,包括以 Hugging Face Hub 上的現有資料集微調模型。
第一個範例結合了快速測試模型和 LLM 評審欄。以下是評審提示詞:
資料集範例:https://huggingface.co/datasets/dvilasuero/jsvibes-qwen-gpt-oss-judged
設定:
columns:
object_name:
modelName: meta-llama/Llama-3.3-70B-Instruct
modelProvider: groq
userPrompt: Generate the name of a common day to day object
searchEnabled: false
columnsReferences: []
object_description:
modelName: meta-llama/Llama-3.3-70B-Instruct
modelProvider: groq
userPrompt: Describe a {{object_name}} with adjectives and short word groups separated by commas. No more than 10 words
searchEnabled: false
columnsReferences:
- object_name
object_image_with_desc:
modelName: multimodalart/isometric-skeumorphic-3d-bnb
modelProvider: fal-ai
userPrompt: RBNBICN, icon, white background, isometric perspective, {{object_name}} , {{object_description}}
searchEnabled: false
columnsReferences:
- object_description
- object_name
object_image_without_desc:
modelName: multimodalart/isometric-skeumorphic-3d-bnb
modelProvider: fal-ai
userPrompt: "RBNBICN, icon, white background, isometric perspective, {{object_name}} "
searchEnabled: false
columnsReferences:
- object_name
glowing_colors:
modelName: multimodalart/isometric-skeumorphic-3d-bnb
modelProvider: fal-ai
userPrompt: "RBNBICN, icon, white background, isometric perspective, {{object_name}}, glowing colors "
searchEnabled: false
columnsReferences:
- object_name
flux:
modelName: black-forest-labs/FLUX.1-dev
modelProvider: fal-ai
userPrompt: Create an isometric icon for the object {{object_name}} based on {{object_description}}
searchEnabled: false
columnsReferences:
- object_description
- object_name
後續步驟
你可以毋須安裝任何東西便試用 AI Sheets,亦可從 GitHub 程式碼庫下載並在本機部署。若要在本機執行並充分使用其功能,我們建議你訂閲 PRO,即可每月獲得 20 倍推理用量。
來源:Hugging Face Blog · huggingface.co









