-
Notifications
You must be signed in to change notification settings - Fork 282
[N-2] 09-VectorStore / 06-Elasticsearch #352
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
μ€μλ‘ κΈ°μ‘΄ PRμ λ«μμ λ€μ μ»€λ° λ° PRμ μμ±νμ΅λλ€.
@pupba @XaviereKU @sohyunwriter μλ
νμΈμ 리뷰ν΄μ£Όμ λ΄μ©λ λ΄μΌκΉμ§ λ°μνμ¬ μ¬λ¦¬κ² μ΅λλ€~! |
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
β
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:
- Environmental setup μͺ½μ
---
λ‘ μ€μ κ·ΈμΌμ ¨λλ° μ΄κ² ν νλ¦Ώμ λΆν©νλμ§ νμΈμ΄ νμν κ² κ°μ΅λλ€. κ·Έ μΈμ backtick(`) μμ μ¬λ°λ₯΄κ² μ¬μ©λλμ§ νμΈμ΄ νμν κ² κ°μ΅λλ€. - κ°μ‘°νμκ° λ°±ν±(
) μΌλ‘ λ€μ΄κ°κ² μλ κ² κ°μ΅λλ€. νμΈ λΆνλ립λλ€. ex) Upsert μΉμ μ Let's perform an upsert operation for
a single document.` ###
μλ μ€λͺ μ΄ λ€μ΄κ°μΌ νλ κ²μΌλ‘ μκ³ μμ΅λλ€. ν΄λΉ cellμμ μ΄λ€ λ΄μ©μ λ€λ£°μ§ κ°λ¨νκ²λΌλ μ μ΄μ£Όμλ©΄ μ’μ κ² κ°μ΅λλ€.- PyTorch device auto selection μ½λκ° μ 곡λμ΄ μ’μ΅λλ€.
- set_envμ LANGCHAIN_API_KEYκ° λΉ μ Έμ μΆκ°νκ³ ν μ€νΈ νμ΅λλ€. μΌλΆλ¬ λΉΌμ ¨λ€λ©΄ μ½λ©νΈ λΆνλ립λλ€.
- μ΄κ±΄ κ·Έλ₯ κΆκΈνκ±΄λ° μΌλΆλ¬ OpenAIEmbeddingμ μμ°μ κ±΄μ§ κΆκΈν©λλ€.
- Environmental setup μͺ½μ
μκ³ νμ ¨μ΅λλ€. κ°μ¬ν©λλ€!
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
β
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, νκ΅μ΄ κΈ°μ κ°λ₯}
μμ±νμλλΌ κ³ μνμ ¨μ΅λλ€!!
μλ μμ μμ ν΄μΌ ν λΆλΆ μ λ§μν΄μ£Όμ μ μμ μΈκΈν λ΄μ©λ€ μμ λμμΌλ©΄ μ’κ² μ΅λλ€.
μΆκ°λ‘ Macμ΄λ Linuxμμλ μκ΄ μμ§λ§ Window νκ²½μμ Pythonμ μ¬μ©ν λ
with open
ꡬ문μ μ¬μ© ν λ,open
μ λ§€κ°λ³μλ‘encoding="utf-8"
λ₯Ό μΆκ°ν΄μ£Όμ μΌ ν©λλ€. Windowλ encoding λ°©μμ΄cp1252
μ΄κΈ° λλ¬Έμ λλ€.
νν λ¦¬μΌ λ§λμλλΌ κ³ μνμ ¨μ΅λλ€. μμ νμκ³ λ€μ Review μμ² μ£ΌμΈμ :)
- Removed unnecessary "---" separator in Environmental setup section - Adjusted usage of "backtick(`)" and replaced excessive backticks with "**" for emphasis - Added descriptions under "###" headers for clarity - Included missing LANGCHAIN_API_KEY in set_env and tested functionality - Clarified usage of Hugging Face embedding over OpenAIEmbedding - Updated Windows-specific file handling with `encoding="utf-8"` and added line break handling
@XaviereKU 리뷰1) Environmental setup μͺ½μ ---λ‘ μ€μ κ·ΈμΌμ ¨λλ° μ΄κ² ν νλ¦Ώμ λΆν©νλμ§ νμΈμ΄ νμν κ² κ°μ΅λλ€.
리뷰2) κ·Έ μΈμ backtick(`) μμ μ¬λ°λ₯΄κ² μ¬μ©λλμ§ νμΈμ΄ νμν κ² κ°μ΅λλ€.
리뷰3) "###" μλ μ€λͺ μ΄ λ€μ΄κ°μΌ νλ κ²μΌλ‘ μκ³ μμ΅λλ€. ν΄λΉ cellμμ μ΄λ€ λ΄μ©μ λ€λ£°μ§ κ°λ¨νκ²λΌλ μ μ΄μ£Όμλ©΄ μ’μ κ² κ°μ΅λλ€.
리뷰4) PyTorch device auto selection μ½λκ° μ 곡λμ΄ μ’μ΅λλ€.
리뷰5) set_envμ LANGCHAIN_API_KEYκ° λΉ μ Έμ μΆκ°νκ³ ν μ€νΈ νμ΅λλ€. μΌλΆλ¬ λΉΌμ ¨λ€λ©΄ μ½λ©νΈ λΆνλ립λλ€.
리뷰6) μ΄κ±΄ κ·Έλ₯ κΆκΈνκ±΄λ° μΌλΆλ¬ OpenAIEmbeddingμ μμ°μ κ±΄μ§ κΆκΈν©λλ€.
|
@pupba 리뷰7) μΆκ°λ‘ Macμ΄λ Linuxμμλ μκ΄ μμ§λ§ Window νκ²½μμ Pythonμ μ¬μ©ν λ, with open ꡬ문μ μ¬μ© ν λ, open μ λ§€κ°λ³μλ‘ encoding="utf-8" λ₯Ό μΆκ°ν΄μ£Όμ μΌ ν©λλ€. Windowλ encoding λ°©μμ΄ cp1252 μ΄κΈ° λλ¬Έμ λλ€.
|
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:
-
Advanced searchμ μλ κ° bulletpointsμ λν΄ μ΄λ€ μμ κ²μμΈμ§ μ€λͺ μ΄ μμΌλ©΄ μ’μ κ±° κ°μ΅λλ€.
-
Hybrid searchμ κ²½μ° LangChain Elasticsearch μ€λͺ μ 보면 strategyλ₯Ό hybridλ‘ μ£Όλ κ² κ°μ΅λλ€. νμ¬ νμ λ°©λ²μ hybridλΌκΈ°λ³΄λ¨ dense retrieval μμ filterλ₯Ό λλ κ² κ°μλ° νμΈ λΆνλ립λλ€.
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
β
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, νκ΅μ΄ κΈ°μ κ°λ₯}
μμ νμλλΌ κ³ μνμ ¨μ΅λλ€!!
μΌλ¨ μ κ° κ±΄μ λ린건 μ μμ μΌλ‘ μμ ν΄ μ£Όμ ¨κ΅°μ! μ λ μΌλ¨ Approve λλ¦¬κ² μ΅λλ€.
λ€λ₯Έ reviewerλμ΄ μ¬λ €μ£Όμ μΆκ° μμ μλ νμΈνμκ³ μμ ν΄μ£ΌμΈμ! κ³ μνμ ¨μ΅λλ€.
@XaviereKU
νμΈλΆνλ립λλ€~!! ππ»ββοΈ |
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
β
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: μμ μ¬ν νμΈ νμ΅λλ€. κ³ μνμ ¨μ΅λλ€!
@XaviereKU μ’ νΈλ, μμΈν 리뷰 κ°μ¬ν©λλ€! ππ»ββοΈ @pupba κ΄μλ, approve λΆνλλ¦¬κ² μ΅λλ€~!! ππ»ββοΈ |
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
β
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: μμ νμλλΌ κ³ μνμ ¨μ΅λλ€! μ΄μμμ΅λλ€!
- Reduced text output for better readability - Added timeout configuration to prevent timeout errors
@XaviereKU @pupba @sohyunwriter |
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
β
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: νμΈνμ΅λλ€!
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
β
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:
νμΈνμ΅λλ€. μκ³ νμ ¨μ΅λλ€!
dbd7947
into
LangChain-OpenTutorial:main
{PR Message - Write freely, remove this bracket if unnecessary}
Author Checklist
Review Template (Intial PR)
If no one reviews your PR within a few days, please @-mention one of teddylee777, musangk, BAEM1N