-
Notifications
You must be signed in to change notification settings - Fork 282
[E-2] 16-Evaluations / 03-HF-Upload.ipynb #421
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
Conversation
[Version] initial [Language] ENG [Packages] dotenv, - Langchain and HF-Upload Tutorial -A tutorial on HF-Upload
[Version] initial [Language] ENG [Packages] dotenv, Dataset - Langchain and HF-Upload Tutorial -A tutorial on HF-Upload
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π₯οΈ OS: Mac
β
Checklist
- Template: Tutorials follows the required template.
- Table of Contents(TOC) Links: All Table of Contents links work. (Yes/No)
- Image: Image filenames follow guidelines.
- Imports: All import statements use the latest versions. Ensure "langchain-teddynote" is not used.
- Code Execution: Code runs without errors.
- Comments: {Write freely, νκ΅μ΄ κΈ°μ κ°λ₯}
- Table of Contents μμ μΈλ²μ§Έ, Upload Generated Dataset λ§ν¬κ° μ΄λ μν©λλ€. μ λͺ©μ΄ "Upload Generated" μμ± λμ κ·Έλ° κ²κ°μμ. λͺ©μ°¨λ μ λͺ© λ μ€ νλ λμΌνκ² λ³κ²½ν΄μ£Όμ μΌν λ―ν©λλ€.
- μ½λμμ νμΌμ μ°Ύμ§ λͺ»ν΄μ μ€νμ λͺ»νκ³ μλλ°μ. νμΈν΄μ£Όμ€ μ μλμ? μ€λ₯ λ΄μ© 첨λΆν©λλ€.
FileNotFoundError: [Errno 2] No such file or directory: 'data/ragas_synthetic_dataset.csv'
νμ¬ data ν΄λ νμμλ Newwhitepaper_Agents2.pdf νμΌ λ°μ μλλ°μ. μ κ° μλ‘ mergeλ°μμΌν prμ΄ μμκΉμ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Review Checklist]
-
Review OS: Linux
- Windows / Mac / Linux (ν΄λΉ OSλ₯Ό κΈ°μ¬ν΄μ£ΌμΈμ)
-
Template Rule μ€μ μ¬λΆ:
- Template Rule κ°μ΄λλ₯Ό μ€μνμλκ°? (Check νκΈ°)
-
Table of Contents λ§ν¬ νμΈ:
- Table of Contentsμ λ§ν¬κ° μννκ² λμνλμ§ νμΈνμλκ°? (Check νκΈ°)
-
μ΄λ―Έμ§ νμΌλͺ κ²ν :
- μ΄λ―Έμ§κ° ν¬ν¨λμ΄ μλ€λ©΄, μ΄λ―Έμ§μ νμΌλͺ μ΄ κ°μ΄λλ₯Ό μ€μνμλκ°? (Check νκΈ°)
-
μ΅μ import λ°©μ μ¬μ© μ¬λΆ:
- import κ΅¬λ¬Έμ΄ μμ legacy λ°©μμ΄ μλ μ΅μ λ²μ μ λ°λ₯΄λκ°? (Check νκΈ°)
-
μ½λ λμ νμΈ:
- λͺ¨λ μ½λκ° μ€λ₯ μμ΄ λμνλκ°? (Check νκΈ°)
- Warning λ°μ μ μ½λ©νΈμ μ μ΄μ£ΌμΈμ.
-
μ μΆ νμΌ νμΈ:
- κΌ νμν νμΌλ€λ§ μ μΆλμλκ°?
- νν λ¦¬μΌ μΈ μ€μ νμΌμ΄λ λ€λ₯Έ λΆμ΄ μμ ν νμΌμ΄ ν¬ν¨λμλμ§ Files Changedμμ νμΈ λΆνλ립λλ€. (Check νκΈ°)
- κΌ νμν νμΌλ€λ§ μ μΆλμλκ°?
-
κΈ°ν μ견:
- @r14minjin λμ΄ κ²ν ν΄μ£Όμ λλ‘
data/ragas_synthetic_dataset.csv
νμΌμ μκ³ ,Newwhitepaper_Agents2.pdf
λ μΆκ°λμμΌλ μ¬μ©λμ§ μλ κ²μΌλ‘ 보μ λλ€. Reference
μμ μΆκ°λ λ§ν¬λ€μupstage
APIμ λν λΆλΆμΈλ°, μ¬κΈ° νν 리μΌμμ μ¬μ©λ λΆλΆμ΄ λ§μκΉμ?- κ·Έ μΈ κ°κ° 컀λ©νΈ λ¬μμ΅λλ€. νμΈ λΆνλ립λλ€.
- @r14minjin λμ΄ κ²ν ν΄μ£Όμ λλ‘
16-Evaluations/03-HF-Upload.ipynb
Outdated
"from langchain_opentutorial import package\n", | ||
"\n", | ||
"package.install(\n", | ||
" [\"Dataset\"],\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
" [\"Dataset\"],\n", | |
" [\"datasets\"],\n", |
μλμμ from datasets import Dataset
μ ν΅ν΄ datasets λΌμ΄λΈλ¬λ¦¬κ° μ¬μ©λλλ°, μ€μΉκ° λμ§ μμ΅λλ€.
λμ νν 리μΌμμ μ¬μ©νμ§ μλ 16-Evaluations/assets/Newwhitepaper_Agents2.pdf
νμΌμ΄ PRμ ν¬ν¨λμμ΅λλ€. νμΈ λΆνλ립λλ€.
νμΈ λΆνλ립λλ€.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
λμ€μ½λμμ mergeν μ, μΆ©λμ΄ μΌμ΄λ μ μλ€κ³ pdf νμΌλ κ°μ΄ pushν΄λ¬λΌλ μ±μ λ³΄κ³ λ£μλλ° λΉΌλκ² μ’μκΉμ..?
"source": [ | ||
"import pandas as pd\n", | ||
"\n", | ||
"df = pd.read_csv(\"data/ragas_synthetic_dataset.csv\")\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data/ragas_synthetic_dataset.csv
νμΌμ΄ μ‘΄μ¬νμ§ μμ΅λλ€.
κ²ν λΆνλ립λλ€.
16-Evaluations/03-HF-Upload.ipynb
Outdated
"- [Upload Generated Dataset](#Upload-Generated-Dataset)\n", | ||
"- [Upload to HuggingFace Dataset](#Upload-to-HuggingFace-Dataset)\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"- [Upload Generated Dataset](#Upload-Generated-Dataset)\n", | |
"- [Upload to HuggingFace Dataset](#Upload-to-HuggingFace-Dataset)\n", | |
- [Upload Generated Dataset](#upload-generated-dataset) | |
- [Upload to HuggingFace Dataset](#upload-to-huggingface-dataset) |
- Anchor κ΄λ ¨ κ°μ΄λ
- λͺ©μ°¨μ λ€μ΄κ°λ anchorλ κ° ν€λ©μ μ νν μΌμΉνλ textλ₯Ό #κΈ°νΈ λ€μ λͺ¨λ μλ¬Έμλ‘, λμλ νλλ§ μ¬μ©
- μμ: #environment-setup
- μλͺ»λ μμ: #Environment-Setup, #environment--setup
- μ°Έκ³ : κΉν docsμμ Section links
Template Guide κΈ°μ€μΌλ‘ μμ μ μλ립λλ€.
16-Evaluations/03-HF-Upload.ipynb
Outdated
"dataset = Dataset.from_pandas(df)\n", | ||
"\n", | ||
"# Set dataset name (change to your desired name)\n", | ||
"dataset_name = \"LANGCHIN-OPENTUTORIAL/test-dataset\"\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"dataset_name = \"LANGCHIN-OPENTUTORIAL/test-dataset\"\n", | |
"dataset_name = \"LANGCHAIN-OPENTUTORIAL/test-dataset\"\n", |
μ€νκ° μμ΄μ μμ μμ²λ립λλ€.
ν΄λΉ κ²½λ‘κ° μ μ νμ§λ μ΄λ»κ² νμΈν μ μμκΉμ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μμ±ν΄μ£Όμ μ½λλ₯΄ κΈ°λ°μΌλ‘ ν
μ€νΈ ν΄λ³΄λ, ν΄λΉ κ²½λ‘κ° μλ κ²μ μλκ³ κΆνμ΄ μλ κ²½λ‘κ° νμν λΆλΆμ΄μλ€μ. (μ κ° μ κ·Όμ΄ μλλ κ²μΌ μ μκ² μ΅λλ€.)
ν΄λΉ λ΄μ©λ ννμ΄ λλ©΄ λμμ΄ λ리 κ² κ°μ΅λλ€.
μΌλ¨ μ€νλ§ μμ ν΄μ£Όμλ©΄ μ’μ κ² κ°μ΅λλ€. π
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π₯οΈ OS: Win/Mac/Linux
β
Checklist
- Template: Tutorials follows the required template.
- Table of Contents(TOC) Links: All Table of Contents links work. (Yes/No)
- Image: Image filenames follow guidelines.
- Imports: All import statements use the latest versions. Ensure "langchain-teddynote" is not used.
- Code Execution: Code runs without errors.
- Comments:
μλ νμΈμ! @LEE1026icarus λ, κ³ μλ§μΌμ ¨μ΅λλ€!
μ κ° λ§μ§λ§ μ½λ μ€ννλ©΄, μλμκ°μ΄ μΈμ¦ μ€λ₯κ° λμ€λλ°μ
API ν€ μ λ ₯μ μ λͺ»ν κ±ΈκΉμ...? usernameμ΄λ passwordκ° μ λͺ» λλ€κ³ λμμμ. νΉμ ν€λ λμ€μ½λ 곡μ§λ°©μ μλ κ²μ μ¬μ©νλ©΄ λ κΉμ?
HfHubHTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/api/repos/create (Request ID: Root=1-678f8592-344cf5b74a2d918869bbeac6;e23e1ce4-16d3-4185-8b53-46468a257f76)
Invalid username or password.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Review Checklist]
-
Review OS: Windows
-
Template Rule μ€μ μ¬λΆ: μ΄μμμ
-
Table of Contents λ§ν¬ νμΈ: μ΄μμμ
-
μ΄λ―Έμ§ νμΌλͺ κ²ν : ν΄λΉμμ
-
μ΅μ import λ°©μ μ¬μ© μ¬λΆ: μ΄μμμ
-
μ½λ λμ νμΈ: μ΄μμμ. μ μμλν©λλ€!
-
μ μΆ νμΌ νμΈ: data ν΄λμ csvνμΌ μ΄μμμ
-
κΈ°ν μ견:
μμ±νμλλΌ κ³ μ λ§μΌμ ¨μ΅λλ€.
huggingface username(ID) μμ νλ λΆλΆμ λ³λλ‘ λ³μλ₯Ό ꡬλΆνλ©΄, μ¬μ©μμ μ₯μμ μ’λ λ«μ§ μμκΉλΌλ μ견λ립λλ€.
νμΈ λΆνλ립λλ€.
κ°μ¬ν©λλ€.
@r14minji λ νΉμ λμμ΄ λ κΉ νμ¬ λ―Έλ¦¬ λ΅λ³ λ립λλ€. - dataset_name = "icarus1026/rag-synthetic-dataset"
+ dataset_name = "musangk/rag-synthetic-dataset" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리뷰 λ¨κΈ΄ λΆλΆ μ μ©ν΄μ£Όμ λ΄μ© λͺ¨λ νμΈνμμ΅λλ€. μΈμ§λ₯Ό λͺ»ν΄μ μΆκ° λ¦¬λ·°κ° λ¦μ΄μ§ μ μ£μ‘ν©λλ€. π
κ΄λ ¨ν΄μ νλ μμ μ΄ λ λ κ³³μ΄ μμ΄μ μΆκ° 리뷰 λ¨κΉλλ€.
νμΈ λΆνλ립λλ€. π
Co-authored-by: Musang Kim <[email protected]>
Co-authored-by: Jeon Changwon <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Review Checklist]
-
Review OS: Windows
-
Template Rule μ€μ μ¬λΆ: μ΄μμμ
-
Table of Contents λ§ν¬ νμΈ: μ΄μμμ
-
μ΄λ―Έμ§ νμΌλͺ κ²ν : ν΄λΉμμ
-
μ΅μ import λ°©μ μ¬μ© μ¬λΆ: μ΄μμμ
-
μ½λ λμ νμΈ: νμΈμμ²
- μ κ° μμ μ μ λλ¦°λΆλΆμ μ€λ₯κ° μμ΄, μμ λ κ²μΌλ‘ λ€μ μ μ λ립λλ€.
- λ€μ νμΈ λΆνλ립λλ€. μν΄ λΆνλ립λλ€.
-
μ μΆ νμΌ νμΈ: data ν΄λμ csvνμΌ μ΄μμμ
-
κΈ°ν μ견:
μ κ° μ μλλ¦° λΆλΆμ ipynb λ¬Έλ² μ€λ₯(\λΉ μ§)μ΄ μμ΄μ
λ€μ μμ ν΄ μ μλλ Έμ΅λλ€. μμ νλ©΄ μ μ μ€νμ΄ λ©λλ€.
μν΄ λΆνλ립λλ€. λλ¨Έμ§λ μ΄μμμ΅λλ€. κ°μ¬ν©λλ€.
ν« κ°μ¬ν©λλ€! νμΈνμ΅λλ€. Co-authored-by: Jeon Changwon <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Review Checklist]
-
Review OS: Linux
- Windows / Mac / Linux (ν΄λΉ OSλ₯Ό κΈ°μ¬ν΄μ£ΌμΈμ)
-
Template Rule μ€μ μ¬λΆ:
- Template Rule κ°μ΄λλ₯Ό μ€μνμλκ°? (Check νκΈ°)
-
Table of Contents λ§ν¬ νμΈ:
- Table of Contentsμ λ§ν¬κ° μννκ² λμνλμ§ νμΈνμλκ°? (Check νκΈ°)
-
μ΄λ―Έμ§ νμΌλͺ κ²ν :
- μ΄λ―Έμ§κ° ν¬ν¨λμ΄ μλ€λ©΄, μ΄λ―Έμ§μ νμΌλͺ μ΄ κ°μ΄λλ₯Ό μ€μνμλκ°? (Check νκΈ°)
-
μ΅μ import λ°©μ μ¬μ© μ¬λΆ:
- import κ΅¬λ¬Έμ΄ μμ legacy λ°©μμ΄ μλ μ΅μ λ²μ μ λ°λ₯΄λκ°? (Check νκΈ°)
-
μ½λ λμ νμΈ:
- λͺ¨λ μ½λκ° μ€λ₯ μμ΄ λμνλκ°? (Check νκΈ°)
- Warning λ°μ μ μ½λ©νΈμ μ μ΄μ£ΌμΈμ.
-
μ μΆ νμΌ νμΈ:
- κΌ νμν νμΌλ€λ§ μ μΆλμλκ°?
- νν λ¦¬μΌ μΈ μ€μ νμΌμ΄λ λ€λ₯Έ λΆμ΄ μμ ν νμΌμ΄ ν¬ν¨λμλμ§ Files Changedμμ νμΈ λΆνλ립λλ€. (Check νκΈ°)
- κΌ νμν νμΌλ€λ§ μ μΆλμλκ°?
-
κΈ°ν μ견:
- μ 체μ μΌλ‘ μ λμνλ λΆλΆ νμΈ νμμ΅λλ€. κ°μ¬ν©λλ€. π―
Files Changed νμΈν΄λ³΄μλλ°, λ€λ₯Έ λΆμ΄ μμ ν νμΌμ΄ ν¬ν¨λμ§ μμμ΅λλ€. κ°μ¬ν©λλ€! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Review Checklist]
-
Review OS: Windows
-
Template Rule μ€μ μ¬λΆ: μ΄μμμ
-
Table of Contents λ§ν¬ νμΈ: μ΄μμμ
-
μ΄λ―Έμ§ νμΌλͺ κ²ν : ν΄λΉμμ
-
μ΅μ import λ°©μ μ¬μ© μ¬λΆ: μ΄μμμ
-
μ½λ λμ νμΈ: μ΄μμμ
- μμ λ λΆλΆ μ΄μμμ΄ μ μ€ν λμμ΅λλ€.
-
μ μΆ νμΌ νμΈ: data ν΄λμ csvνμΌ μ΄μμμ
-
κΈ°ν μ견:
λ€μ μ μλλ¦° λΆλΆ μ λ°μλμ, μ΄μμμ΄ μ€νλ κ²μ νμΈνμμ΅λλ€.
μμ μμ νμλλΌ κ³ μ λ§μΌμ ¨μ΅λλ€.
μ¦κ±°μ΄ μ°ν΄ λμκΈ° λ°λλλ€!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π₯οΈ OS: Win/Mac/Linux
β
Checklist
- Template: Tutorials follows the required template.
- Table of Contents(TOC) Links: All Table of Contents links work. (Yes/No)
- Image: Image filenames follow guidelines.
- Imports: All import statements use the latest versions. Ensure "langchain-teddynote" is not used.
- Code Execution: Code runs without errors.
- Comments: {Write freely, νκ΅μ΄ κΈ°μ κ°λ₯}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Review Checklist]
- Review OS: Windows
- Template Rule μ€μ μ¬λΆ: μ΄μ μμ
- Table of Contents λ§ν¬ νμΈ: μ΄μ μμ
- μ΄λ―Έμ§ νμΌ λͺ κ²ν : ν΄λΉ μμ
- μ΅μ import λ°©μ μ¬μ© μ¬λΆ: μ΄μ μμ
- μ½λ λμ νμΈ: μ΄μ μμ
- μ μΆ νμΌ νμΈ: data ν΄λμ csvνμΌ νμΈ (μ΄μ μμ)
μ§λμ£Ό 볡κ·ν΄μ μ μ μ΄ μμλ€μ λ¦μ΄μ μ£μ‘ν©λλ€!!
{PR Message - Write freely, remove this bracket if unnecessary}
Author Checklist
PR Title Format: I have confirmed that the PR title follows the correct format. (e.g., [N-2] 07-Text Splitter / 07-RecursiveCharacterTextSplitter)
Committed Files: I have ensured that no unnecessary files (e.g., .bin, .gitignore, poetry.lock, pyproject.toml) are included. These files are not allowed.
(Optional) Related Issue: If this PR is linked to an issue, I have referenced the issue number in the PR message. (e.g., Fixes Update 01-PromptTemplate.ipynbΒ #123)
β Do not include unnecessary files (e.g., .bin, .gitignore, poetry.lock, pyproject.toml) or other people's code. If included, close the PR and create a new PR.
Review Template (Intial PR)
If no one reviews your PR within a few days, please @-mention one of teddylee777, musangk, BAEM1N