-
Notifications
You must be signed in to change notification settings - Fork 2.1k
π [i18n-KO] Translated plan_customization.md to Korean
#1771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
FacerAin
wants to merge
8
commits into
huggingface:main
Choose a base branch
from
FacerAin:ko-plan-customization.md
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3658652
docs: ko: plan_customization.md
FacerAin af4f510
docs: update Korean documentation table of contents
FacerAin 1dc50c6
Update plan customization documentation for clarity
FacerAin c0d06c5
Update Korean TOC with new sections and titles
FacerAin e15773a
Merge branch 'main' into ko-plan-customization.md
FacerAin 57008c2
Fix typos in plan_customization.md
FacerAin e63724f
Apply suggestions from code review
FacerAin c225862
Merge branch 'main' into ko-plan-customization.md
FacerAin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,118 @@ | ||
| # Human-in-the-Loop: μ¬μ©μμ μνΈμμ©νλ©° μμ΄μ νΈ κ³ν μμ νκΈ° [[humanintheloop-customize-agent-plan-interactively]] | ||
|
|
||
| μ΄ νμ΄μ§μμλ smolagents λΌμ΄λΈλ¬λ¦¬μ κ³ κΈ μ¬μ©λ²μ μκ°ν©λλ€. νΉν μ¬μ©μμμ μνΈμμ©μ ν΅ν κ³ν μμ±, κ³ν μμ , κ·Έλ¦¬κ³ μμ΄μ νΈ μν¬νλ‘μμμ λ©λͺ¨λ¦¬ 보쑴μ μν Human-in-the-Loop (HITL) μ κ·Ό λ°©μμ μ€μ μ μΌλ‘ μ€λͺ ν©λλ€. | ||
| μμ λ `examples/plan_customization/plan_customization.py`μ μ½λλ₯Ό κΈ°λ°μΌλ‘ ν©λλ€. | ||
|
|
||
| ## κ°μ [[overview]] | ||
|
|
||
| μ΄ μμ λ λ€μκ³Ό κ°μ Human-in-the-Loop μ λ΅μ ꡬννλ λ°©λ²μ μλ΄ν©λλ€. | ||
|
|
||
| - λ¨κ³ μ½λ°±(step callback)μ μ¬μ©νμ¬ κ³ν μμ± ν μμ΄μ νΈ μ€ν μ€λ¨νκΈ° | ||
| - μ¬μ©μκ° μ€ν μ μ μμ΄μ νΈμ κ³νμ κ²ν νκ³ μμ ν μ μλλ‘ μ§μ (Human-in-the-Loop) | ||
| - μμ΄μ νΈμ λ©λͺ¨λ¦¬λ₯Ό 보쑴νλ©΄μ μ€ν μ¬κ°νκΈ° | ||
| - μ¬μ©μ νΌλλ°±μ κΈ°λ°μΌλ‘ κ³νμ λμ μΌλ‘ μ λ°μ΄νΈνμ¬ μ¬μ©μκ° μ μ΄κΆμ μ μ§νλλ‘ μ§μ | ||
|
|
||
| ## ν΅μ¬ κ°λ [[key-concepts]] | ||
|
|
||
| ### λ¨κ³ μ½λ°±μ μ΄μ©ν κ³ν μ€λ¨ [[step-callbacks-for-plan-interruption]] | ||
|
|
||
| μμ΄μ νΈκ° κ³νμ μμ±ν ν μΌμ μ€μ§νλλ‘ μ€μ ν μ μμ΅λλ€. μ΄λ PlanningStepμ λ¨κ³ μ½λ°±μ λ±λ‘νμ¬ κ΅¬νν©λλ€. | ||
|
|
||
| ```python | ||
| agent = CodeAgent( | ||
| model=InferenceClientModel(), | ||
| tools=[DuckDuckGoSearchTool()], | ||
| planning_interval=5, # 5λ¨κ³λ§λ€ κ³ν | ||
| step_callbacks={PlanningStep: interrupt_after_plan}, | ||
| max_steps=10, | ||
| verbosity_level=1 | ||
| ) | ||
| ``` | ||
|
|
||
| ### Human-in-the-Loop: λνν κ³ν κ²ν λ° μμ [[humanintheloop-interactive-plan-review-and-modification]] | ||
|
|
||
| μμ΄μ νΈκ° κ³νμ μμ±νλ©΄, μ½λ°± ν¨μκ° ν΄λΉ κ³νμ μ¬μ©μμκ² λ³΄μ¬μ£Όκ³ λ€μ μ΅μ μ€ νλλ₯Ό μ ννλλ‘ μλ΄ν©λλ€. | ||
|
|
||
| 1. κ³ν μΉμΈ | ||
| 2. κ³ν μμ | ||
| 3. μ€ν μ·¨μ | ||
|
|
||
| μμ μνΈμμ©: | ||
|
|
||
| ``` | ||
| ============================================================ | ||
| π€ μμ΄μ νΈ κ³ν μμ±λ¨ | ||
| ============================================================ | ||
| 1. μ΅κ·Ό AI λ°μ μ¬ν κ²μ | ||
| 2. μμ κ²°κ³Ό λΆμ | ||
| 3. κ°μ₯ μ€μν 3κ°μ§ λνꡬ μμ½ | ||
| 4. κ° λνꡬμ λν μμ€ ν¬ν¨ | ||
| ============================================================ | ||
|
|
||
| μ΅μ μ μ ννμΈμ: | ||
| 1. κ³ν μΉμΈ | ||
| 2. κ³ν μμ | ||
| 3. μ·¨μ | ||
| μ ν (1-3): | ||
| ``` | ||
|
|
||
| μ΄ Human-in-the-Loop λ¨κ³λ₯Ό ν΅ν΄ μ¬μ©μλ μ€νμ΄ κ³μλκΈ° μ μ κ°μ νμ¬ κ³νμ κ²ν νκ³ μμ ν μ μμΌλ©°, μ΄λ₯Ό ν΅ν΄ μμ΄μ νΈμ νλμ΄ μ¬μ©μμ μλμ μΌμΉνλλ‘ λ³΄μ₯ν μ μμ΅λλ€. | ||
|
|
||
| μ¬μ©μκ° μμ μ μ ννλ©΄ κ³νμ μ§μ νΈμ§ν μ μμΌλ©°, μ λ°μ΄νΈλ κ³νμ μ΄ν μ€ν λ¨κ³μμ μ¬μ©λ©λλ€. | ||
|
|
||
| ### λ©λͺ¨λ¦¬ 보쑴 λ° μ€ν μ¬κ° [[memory-preservation-and-resuming-execution]] | ||
|
|
||
| `reset=False` μ΅μ μΌλ‘ μμ΄μ νΈλ₯Ό μ€ννλ©΄ μ΄μ μ λͺ¨λ λ¨κ³μ λ©λͺ¨λ¦¬κ° 보쑴λ©λλ€. μ΄λ₯Ό ν΅ν΄ μ€λ¨ λλ κ³ν μμ νμλ μ€νμ μ΄μ΄μ μ§νν μ μμ΅λλ€. | ||
|
|
||
| ```python | ||
| # 첫 λ²μ§Έ μ€ν (μ€λ¨λ μ μμ) | ||
| agent.run(task, reset=True) | ||
|
|
||
| # 보쑴λ λ©λͺ¨λ¦¬λ‘ μ¬κ° | ||
| agent.run(task, reset=False) | ||
| ``` | ||
|
|
||
| ### μμ΄μ νΈ λ©λͺ¨λ¦¬ κ²μ¬ [[inspecting-agent-memory]] | ||
|
|
||
| μμ΄μ νΈμ λ©λͺ¨λ¦¬λ₯Ό κ²μ¬νμ¬ μ§κΈκΉμ§ μνλ λͺ¨λ λ¨κ³λ₯Ό νμΈν μ μμ΅λλ€: | ||
FacerAin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ```python | ||
| print(f"νμ¬ λ©λͺ¨λ¦¬μ {len(agent.memory.steps)}κ°μ λ¨κ³κ° ν¬ν¨λμ΄ μμ΅λλ€:") | ||
FacerAin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| for i, step in enumerate(agent.memory.steps): | ||
| step_type = type(step).__name__ | ||
| print(f" {i+1}. {step_type}") | ||
| ``` | ||
|
|
||
| ## Human-in-the-Loop μν¬νλ‘μ° μμ [[example-humanintheloop-workflow]] | ||
|
|
||
| 1. μμ΄μ νΈκ° 볡μ‘ν μμ μ λ°μ μ€νμ μμν©λλ€. | ||
| 2. κ³ν λ¨κ³κ° μμ±λκ³ , μ¬μ©μ κ²ν λ₯Ό μν΄ μ€νμ΄ μΌμ μ€μ§λ©λλ€. | ||
| 3. μ¬μ©μκ° κ³νμ κ²ν νκ³ νμμ λ°λΌ μμ ν©λλ€ (Human-in-the-Loop). | ||
| 4. μΉμΈλκ±°λ μμ λ κ³νμΌλ‘ μ€νμ μ¬κ°ν©λλ€. | ||
| 5. λͺ¨λ λ¨κ³λ ν₯ν μ€νμ μν΄ λ³΄μ‘΄λμ΄ ν¬λͺ μ±κ³Ό μ μ΄κΆμ 보μ₯ν©λλ€. | ||
|
|
||
| ## μ€λ₯ μ²λ¦¬ [[error-handling]] | ||
|
|
||
| μμ λ λ€μμ λν μ€λ₯ μ²λ¦¬λ₯Ό ν¬ν¨ν©λλ€: | ||
FacerAin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - μ¬μ©μ μ·¨μ | ||
| - κ³ν μμ μ€λ₯ | ||
| - μ€ν μ¬κ° μ€ν¨ | ||
|
|
||
| ## μꡬμ¬ν [[requirements]] | ||
|
|
||
| - smolagents λΌμ΄λΈλ¬λ¦¬ | ||
| - DuckDuckGoSearchTool (smolagentsμ ν¬ν¨) | ||
| - InferenceClientModel (π€ Hugging Face API ν ν° νμ) | ||
|
|
||
| ## κ΅μ‘μ κ°μΉ [[educational-value]] | ||
|
|
||
| μ΄ μμ λ λ€μμ μμ°ν©λλ€: | ||
FacerAin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - μ¬μ©μ μ μ μμ΄μ νΈ λμμ μν λ¨κ³ μ½λ°± ꡬν λ°©λ² | ||
| - λ€μ€ λ¨κ³ μμ΄μ νΈμ λ©λͺ¨λ¦¬ κ΄λ¦¬ κΈ°λ² | ||
| - μμ΄μ νΈ μμ€ν μ μ¬μ©μ μνΈμμ© ν¨ν΄ | ||
| - λμ μμ΄μ νΈ μ μ΄λ₯Ό μν κ³ν μμ κΈ°λ² | ||
| - λνν μμ΄μ νΈ μμ€ν μ μ€λ₯ μ²λ¦¬ λ°©λ² | ||
|
|
||
| --- | ||
|
|
||
| μ 체 μ½λλ [`examples/plan_customization`](https://github.com/huggingface/smolagents/tree/main/examples/plan_customization)μμ νμΈνμΈμ. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.