-
Notifications
You must be signed in to change notification settings - Fork 282
[E-3] 04-MODEL / 02-Caching #13
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
[Title] Caching [Version] initial [Language] ENG [Package] langchain, langchain-openai LangChain Caching tutorial Implemented caching using globals.set_llm_cache, cache.InMemoryCache and cache.SQLiteCache Demonstrated InMemoryCache and SQLiteCache with OpenAI API calls and local LLM served with vLLM.
import 구문 최신 소스로 업데이트: from langchain_community.cache import SQLiteCache from langchain_core.globals import set_llm_cache
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.
from langchain_community.cache import SQLiteCache
from langchain_core.globals import set_llm_cache
로 일괄 업데이트 하였습니다.
이전에 작성해 주신 import 구문은 legacy 가 될 가능성이 높아 최신 가이드에 맞춰 교정하였습니다.
[Title] Caching [Version] Revision [Language] ENG [Package] langchain, langchain-openai, langchain-community, langchain-core, langsmith, vllm(optional, for linux) LangChain Caching tutorial Change outdated import statement from langchain.globals import set_llm_cache -> from langchain_core.globals import set_llm_cache and from langchain.cache import InMemoryCache -> from langchain_core.caches import InMemoryCache
[Title] Caching [Version] Revision [Language] ENG [Package] langchain, langchain-openai, langchain-community, langchain-core, langsmith, vllm(optional, for linux) LangChain Caching tutorial Change outdated import statement from langchain.globals import set_llm_cache -> from langchain_core.globals import set_llm_cache and from langchain.cache import InMemoryCache -> from langchain_core.caches import InMemoryCache
[Title] Caching [Version] Revision [Language] ENG [Package] langchain, langchain-openai, langchain-community, langchain-core, langsmith, vllm(optional, for linux) LangChain Caching tutorial Change outdated import statement from langchain.globals import set_llm_cache -> from langchain_core.globals import set_llm_cache and from langchain.cache import InMemoryCache -> from langchain_core.caches import InMemoryCache Change model from gpt-3.5-turbo to gpt-4o-mini
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.
[Review]
- Review OS(Windows/Mac/Linux): Mac
- Template Rule 가이드를 준수 하였는가(YES/NO): YES
- Table of Contents 의 링크가 원활하게 동작하는지 확인하였는가?(YES/NO): YES
- 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가?(YES/NO): YES
- import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가?(YES/NO): YES
- 모든 코드가 동작에 오류 없이 동작하는가? (만약, warning 발생시 코멘트에 적어주세요):
- 기타 의견:
cache
기능사용시 참고해 바로 적용하기 좋은 글인 것 같습니다. 코멘트는 천천히 확인해주셔도 됩니다. 깔끔한 글인 것 같습니다. 고생하셨습니다. 👍
[Title] Caching [Version] Revision [Language] ENG [Package] langchain, langchain-openai LangChain Caching tutorial Deleted langchain-anthropic, langchain_text_splitters from package install
Overview 에 모델명 수정해 두었습니다. (하단에 작성된 모델명과 상이) 링크 동작 안하는 Table of Contents 수정하였습니다.
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.
overview 의 모델명 변경과
Table of Contents 링크 동작 안하는 부분 수정해서 commit 하였습니다.
고생 많으셨습니다^^
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] - Cache(Caching)
- Review OS(Windows/Mac/Linux): Mac
- Template Rule 가이드를 준수 하였는가(YES/NO): YES
- Table of Contents 의 링크가 원활하게 동작하는지 확인하였는가?(YES/NO): YES
- 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가?(YES/NO): N/A
- import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가?(YES/NO): YES
- 모든 코드가 동작에 오류 없이 동작하는가? YES
- Optional 부분에 대한 실행은 현재 장비에서 확인이 어려우므로, 환경이 세팅되는 대로 실행해 보겠습니다.
- 기타 의견
- 수고하셨습니다.
[Team] Existing content development teams 3
[Title] Caching
[Version] initial
[Language] ENG
[Package] langchain, langchain-openai
LangChain Caching tutorial
Implemented caching using globals.set_llm_cache, cache.InMemoryCache and cache.SQLiteCache.
Demonstrated InMemoryCache and SQLiteCache with OpenAI API calls and local LLM served with vLLM.