github zilliztech/GPTCache 0.1.23
v0.1.23

latest releases: 0.1.44, 0.1.43, 0.1.42...
16 months ago

🎉 Introduction to new functions of GPTCache

  1. Support the session for the LangChainLLMs
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)
  1. Optimize the summarization context process
from gptcache import cache
from gptcache.processor.context.summarization_context import SummarizationContextProcess

context_process = SummarizationContextProcess()
cache.init(
    pre_embedding_func=context_process.pre_process,
)
  1. Add BabyAGI bootcamp

details: https://github.com/zilliztech/GPTCache/blob/main/docs/bootcamp/langchain/baby_agi.ipynb

What's Changed

Full Changelog: 0.1.22...0.1.23

Don't miss a new GPTCache release

NewReleases is sending notifications on new releases.