From 4a20adddcfe8c242b4c030d4e3be216dc3fee519 Mon Sep 17 00:00:00 2001 From: SimFG Date: Thu, 11 May 2023 22:26:22 +0800 Subject: [PATCH] Update the version to `0.1.23` Signed-off-by: SimFG --- docs/release_note.md | 29 +++++++++++++++++++++++++++++ setup.py | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/docs/release_note.md b/docs/release_note.md index 66ca7d60..deee57a7 100644 --- a/docs/release_note.md +++ b/docs/release_note.md @@ -5,6 +5,35 @@ To read the following content, you need to understand the basic use of GPTCache, - [Readme doc](https://github.com/zilliztech/GPTCache) - [Usage doc](https://github.com/zilliztech/GPTCache/blob/main/docs/usage.md) +## v0.1.23 (2023.5.11) + +1. Support the session for the `LangChainLLMs` + +```python +from langchain import OpenAI +from gptcache.adapter.langchain_models import LangChainLLMs +from gptcache.session import Session + +session = Session(name="sqlite-example") +llm = LangChainLLMs(llm=OpenAI(temperature=0), session=session) +``` + +2. Optimize the summarization context process + +```python +from gptcache import cache +from gptcache.processor.context.summarization_context import SummarizationContextProcess + +context_process = SummarizationContextProcess() +cache.init( + pre_embedding_func=context_process.pre_process, +) +``` + +3. Add BabyAGI bootcamp + +details: https://github.com/zilliztech/GPTCache/blob/main/docs/bootcamp/langchain/baby_agi.ipynb + ## v0.1.22 (2023.5.7) 1. Process the dialog context through the context processing interface, which currently supports two ways: summarize and selective context diff --git a/setup.py b/setup.py index 9afffe52..4fb13cfd 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ def parse_requirements(file_name: str) -> List[str]: setuptools.setup( name="gptcache", packages=find_packages(), - version="0.1.22", + version="0.1.23", author="SimFG", author_email="bang.fu@zilliz.com", description="GPTCache, a powerful caching library that can be used to speed up and lower the cost of chat "