[Feature] Support domain-specific persona datasets

オープン
#1,179 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
cli, data

調査の方向性

Start from sampler_params.py: read PersonSamplerParams, people_gen_key, generator_kwargs and _generate_from_dataset, and note how locale is excluded from evidence filters. Then trace the CLI download path the issue calls data-designer download and see where resource URLs and filenames are set. Also inspect PII_FIELDS and PERSONA_FIELDS to judge what new columns a domain-specific dataset implies. Done means a domain param flows from config through the key and download naming without leaking into evidence filters, plus a test showing a non-default domain resolves its own dataset.

索引モデルが issue の本文から書いたものです。

説明

enhancement needs-discussion
Priority Level

High (Major improvement)

Is your feature request related to a problem? Please describe.

Please add a feature that seamlessly integrates domain-specific persona datasets from various regions.

What we should do:

  • Data download support
  • Data loading support

Things we need to consider

  • The dataset name may vary by domain (e.g., finance, healthcare).
  • The dataset schema may vary by region and domain.
Describe the solution you'd like

Download support from CLI
e.g., data-designer download personas-{domain} --locale {region}
We will set the URLs and filenames of resources on NGC so that the changes to the NDD download script are minimal.

Loading support from NDD
The following is example code for loading the Japanese finance version.

config_builder = DataDesignerConfigBuilder(model_configs=model_configs)

SamplerColumnConfig(
    name="person",
    sampler_type=SamplerType.PERSON,
    params=PersonSamplerParams(
        locale="ja_JP",
        domain="finance",
        age_range=[18, 114],
    ),
)

We may need to consider the following additions

  • Add the following field to PersonSamplerParams in sampler_params.py:
    domain: Literal[“finance”, "healthcare"] | None = None

  • Add a domain to people_gen_key in sampler_params.py:

key = self.locale
if self.domain: key += f“_{self.domain}”
if self.with_synthetic_personas: key += “_with_personas”
  • generator_kwargs (sampler_params.py)

This property returns all field names except locale and sampler_type. If we add domain without taking any further action, domain=”finance“ will be included in the evidence (filter conditions) of _generate_from_dataset. This is treated as a data column and becomes an invalid filter. Add domain to the exclusion list in generator_kwargs (treated the same as locale).

  • Add columns specific to PII_FIELDS and PERSONA_FIELDS.
Describe alternatives you've considered

No response

Agent Investigation

No response

Additional context

No response

Checklist
  • I've reviewed existing issues and the documentation
  • This is a design proposal, not a "please build this" request
主要言語
Python
スター
2.4k
フォーク
253
平均マージ
2日 10時間
マージ済み PR(30日)
28

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NVIDIA-NeMo/DataDesigner のほかの issue

NVIDIA-NeMo/DataDesigner の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。