-
Notifications
You must be signed in to change notification settings - Fork 1.7k
๐ [i18n-KO] Translated what is function calling.mdx to Korean
#594
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
xhaktm00
wants to merge
24
commits into
huggingface:main
Choose a base branch
from
xhaktm00:ko-bonus-unit1/what-is-function-calling.mdx
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 8 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
8dce458
docs: ko: bonus-unit1/what-is-function-calling.mdx
xhaktm ebb91b2
feat: gpt draft
xhaktm ad855ae
docs: ko: what-is-function-calling.mdx
xhaktm 5174a7b
feat: gpt draft
xhaktm a59be64
fix: manual edits
xhaktm 85534f7
Update what-is-function-calling.mdx
xhaktm00 0ccf9ca
Update what-is-function-calling.mdx
xhaktm00 e896df9
Merge branch 'main' into ko-bonus-unit1/what-is-function-calling.mdx
xhaktm00 3e7d67b
Update units/ko/bonus-unit1/what-is-function-calling.mdx
xhaktm00 cfc4119
Update units/ko/bonus-unit1/what-is-function-calling.mdx
xhaktm00 0b589fa
Update units/ko/bonus-unit1/what-is-function-calling.mdx
xhaktm00 ed8bd8b
Update units/ko/bonus-unit1/what-is-function-calling.mdx
xhaktm00 c1c4fe7
Update units/ko/bonus-unit1/what-is-function-calling.mdx
xhaktm00 7b25315
Update units/ko/bonus-unit1/what-is-function-calling.mdx
xhaktm00 ff01bad
Update units/ko/bonus-unit1/what-is-function-calling.mdx
xhaktm00 52b3aa7
Update units/ko/bonus-unit1/what-is-function-calling.mdx
xhaktm00 24fd538
Update units/ko/bonus-unit1/what-is-function-calling.mdx
xhaktm00 2f84643
Update units/ko/bonus-unit1/what-is-function-calling.mdx
xhaktm00 efadc50
Update units/ko/bonus-unit1/what-is-function-calling.mdx
xhaktm00 ea78fb5
Update units/ko/bonus-unit1/what-is-function-calling.mdx
xhaktm00 562b4fb
Update units/ko/bonus-unit1/what-is-function-calling.mdx
xhaktm00 8b6955d
Update units/ko/bonus-unit1/what-is-function-calling.mdx
xhaktm00 bc4da71
Update units/ko/bonus-unit1/what-is-function-calling.mdx
xhaktm00 86093fd
Update units/ko/bonus-unit1/what-is-function-calling.mdx
xhaktm00 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,76 @@ | ||
| # ํจ์ ํธ์ถ์ด๋ ๋ฌด์์ธ๊ฐ[[what-is-function-calling]] | ||
|
|
||
| ํจ์ ํธ์ถ์ **LLM์ด ํ๊ฒฝ๊ณผ ์ํธ์์ฉํ์ฌ ๋์์ ์ํํ๋ ๋ฐฉ๋ฒ**์ ๋๋ค. ์ฒ์์๋ [GPT-4์์ ๋์ ๋์์ผ๋ฉฐ](https://openai.com/index/function-calling-and-other-api-updates/), ์ดํ ๋ค๋ฅธ ๋ชจ๋ธ์์๋ ๊ตฌํ๋์์ต๋๋ค. | ||
|
|
||
| ์์ด์ ํธ์ ๋๊ตฌ์ฒ๋ผ, ํจ์ ํธ์ถ์ ๋ชจ๋ธ์๊ฒ **์ฃผ์ด์ง ํ๊ฒฝ์์ ๋์์ ์ํํ ์ ์๋ ์ญ๋**์ ์ ๊ณตํฉ๋๋ค. ๋ค๋ง ํจ์ ํธ์ถ ์ญ๋์ **๋ชจ๋ธ์ด ํ์ต์ ํตํด ๋ด์ฌํํ ๊ฒ์ด๋ฉฐ**, ๋ค๋ฅธ ์์ด์ ํธ ๊ธฐ๋ฒ๋ค๋ณด๋ค **ํ๋กฌํํธ์ ์์กดํ๋ ์ ๋๊ฐ ๋ฎ์ต๋๋ค.** | ||
|
|
||
| Unit 1์์๋ ์์ด์ ํธ๊ฐ **๋๊ตฌ๋ฅผ ํ์ตํด์ ์ฌ์ฉํ ๊ฒ์ ์๋๋ฉฐ**, ์ฐ๋ฆฌ๋ ๋จ์ง ๋๊ตฌ ๋ชฉ๋ก์ ์ ๊ณตํ๊ณ , ๋ชจ๋ธ์ด **์ด ๋๊ตฌ๋ค์ ํ์ฉํด ๊ณํ์ ์ผ๋ฐํํ ์ ์๋ค๋ ์ **์ ์์กดํ์ต๋๋ค. | ||
xhaktm00 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ์ฌ๊ธฐ์๋ **ํจ์ ํธ์ถ์ ํตํด ์์ด์ ํธ๊ฐ ๋๊ตฌ๋ฅผ ์ฌ์ฉํ ์ ์๋๋ก ๋ฏธ์ธ ์กฐ์ (ํ์ต)**ํฉ๋๋ค. | ||
|
|
||
| ## ๋ชจ๋ธ์ ๋์ ์ํ์ ์ด๋ป๊ฒ "ํ์ต"ํ ๊น์?[[how-does-the-model-learn-to-take-an-action]] | ||
|
|
||
| Unit 1์์๋ ์์ด์ ํธ์ ์ผ๋ฐ์ ์ธ ์ํฌํ๋ก์ฐ๋ฅผ ์ดํด๋ณด์์ต๋๋ค. ์ฌ์ฉ์๊ฐ ์์ด์ ํธ์ ๋๊ตฌ๋ฅผ ์ ๊ณตํ๊ณ ์ง์๋ฅผ ์ ๋ฌํ๋ฉด, ๋ชจ๋ธ์ ๋ค์ ๊ณผ์ ์ ์ํํฉ๋๋ค: | ||
xhaktm00 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| 1. *Think* : ๋ชฉํ๋ฅผ ๋ฌ์ฑํ๊ธฐ ์ํด ์ด๋ค ๋์์ ์ํํด์ผ ํ ์ง ๊ณ ๋ฏผํฉ๋๋ค. | ||
xhaktm00 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 2. *Act* : ์ฌ๋ฐ๋ฅธ ๋งค๊ฐ๋ณ์๋ก ๋์์ ํฌ๋งทํ๊ณ ์์ฑ์ ์ค๋จํฉ๋๋ค. | ||
xhaktm00 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 3. *Observe* : ์คํ ๊ฒฐ๊ณผ๋ฅผ ๋ฐ์์ต๋๋ค. | ||
xhaktm00 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| API๋ฅผ ํตํ โ์ผ๋ฐ์ ์ธโ ๋ํ์์๋, ์๋์ ๊ฐ์ด "user"์ "assistant" ๋ฉ์์ง๊ฐ ๋ฒ๊ฐ์ ๋ํ๋ฉ๋๋ค. | ||
xhaktm00 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ```python | ||
| conversation = [ | ||
| {"role": "user", "content": "I need help with my order"}, | ||
| {"role": "assistant", "content": "I'd be happy to help. Could you provide your order number?"}, | ||
| {"role": "user", "content": "It's ORDER-123"}, | ||
| ] | ||
| ``` | ||
|
|
||
| ํจ์ ํธ์ถ์ ๋ํ์ **์๋ก์ด ์ญํ **์ ์ถ๊ฐํฉ๋๋ค! | ||
xhaktm00 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| 1. **Action**์ ์ํ ์๋ก์ด ์ญํ | ||
xhaktm00 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 2. **Observation**์ ์ํ ์๋ก์ด ์ญํ | ||
xhaktm00 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| [Mistral API](https://docs.mistral.ai/capabilities/function_calling/)๋ฅผ ์๋ก ๋ค๋ฉด, ๋ค์๊ณผ ๊ฐ์ต๋๋ค: | ||
xhaktm00 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ```python | ||
| conversation = [ | ||
| { | ||
| "role": "user", | ||
| "content": "What's the status of my transaction T1001?" | ||
| }, | ||
| { | ||
| "role": "assistant", | ||
| "content": "", | ||
| "function_call": { | ||
| "name": "retrieve_payment_status", | ||
| "arguments": "{\"transaction_id\": \"T1001\"}" | ||
| } | ||
| }, | ||
| { | ||
| "role": "tool", | ||
| "name": "retrieve_payment_status", | ||
| "content": "{\"status\": \"Paid\"}" | ||
| }, | ||
| { | ||
| "role": "assistant", | ||
| "content": "Your transaction T1001 has been successfully paid." | ||
| } | ||
| ] | ||
| ``` | ||
| > ...ํ์ง๋ง ํจ์ ํธ์ถ์ ์๋ก์ด ์ญํ ์ด ์๋ค๊ณ ํ๋์? | ||
xhaktm00 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| **๊ทธ๋ ๊ธฐ๋ ํ๊ณ ์๋๊ธฐ๋ ํฉ๋๋ค.** ์ด ๊ฒฝ์ฐ๋ฅผ ๋น๋กฏํด ๋ง์ API์์, ๋ชจ๋ธ์ ์ํํ ๋์์ "assistant" ๋ฉ์์ง๋ก ํฌ๋งทํฉ๋๋ค. ์ดํ ์ฑํ ํ ํ๋ฆฟ์ ์ด๋ฅผ ํจ์ ํธ์ถ์ ์ํ **ํน์ ํ ํฐ**์ผ๋ก ํํํฉ๋๋ค. | ||
xhaktm00 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - `[AVAILABLE_TOOLS]` โ ์ฌ์ฉ ๊ฐ๋ฅํ ๋๊ตฌ ๋ชฉ๋ก ์์ | ||
| - `[/AVAILABLE_TOOLS]` โ ์ฌ์ฉ ๊ฐ๋ฅํ ๋๊ตฌ ๋ชฉ๋ก ์ข ๋ฃ | ||
| - `[TOOL_CALLS]` โ ๋๊ตฌ๋ฅผ ํธ์ถ(์ฆ, **Action** ์ํ) | ||
| - `[TOOL_RESULTS]` โ ๋์ ๊ฒฐ๊ณผ(โObserveโ) | ||
| - `[/TOOL_RESULTS]` โ ๊ด์ฐฐ ์ข ๋ฃ(๋ชจ๋ธ์ด ๋ค์ ๋์ฝ๋ฉํ ์ ์์) | ||
xhaktm00 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ๊ฐ์์์ ํจ์ ํธ์ถ์ ๋ค์ ๋ค๋ฃจ๊ฒ ์ง๋ง, ๋ ๊น์ด ์ดํด๋ณด๊ณ ์ถ๋ค๋ฉด [์ด ๋ฌธ์ ์น์ ](https://docs.mistral.ai/capabilities/function_calling/)์ ์ฐธ๊ณ ํ์ธ์. | ||
xhaktm00 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| --- | ||
| ์ด์ ํจ์ ํธ์ถ์ด ๋ฌด์์ด๊ณ ์ด๋ป๊ฒ ์๋ํ๋์ง ๋ฐฐ์ ์ผ๋, ์์ง ํด๋น ๊ธฐ๋ฅ์ด ์๋ ๋ชจ๋ธ์ **ํจ์ ํธ์ถ ๊ธฐ๋ฅ์ ์ถ๊ฐํด๋ณด๊ฒ ์ต๋๋ค**: [google/gemma-2-2b-it](https://huggingface.co/google/gemma-2-2b-it). ์๋ก์ด ํน์ ํ ํฐ์ ๋ชจ๋ธ์ ์ถ๊ฐํฉ๋๋ค. | ||
xhaktm00 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ์ด๋ฅผ ์ํด์๋ **๋จผ์ ๋ฏธ์ธ ์กฐ์ ๊ณผ LoRA**๋ฅผ ์ดํดํด์ผ ํฉ๋๋ค. | ||
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.