Allow clearing cache and fix gptcache (#3493)

This PR

* Adds `clear` method for `BaseCache` and implements it for various
caches
* Adds the default `init_func=None` and fixes gptcache integtest
* Since right now integtest is not running in CI, I've verified the
changes by running `docs/modules/models/llms/examples/llm_caching.ipynb`
(until proper e2e integtest is done in CI)
This commit is contained in:
Ehsan M. Kermani
2023-04-26 22:03:50 -07:00
committed by GitHub
parent 83e871f1ff
commit 4a246e2fd6
5 changed files with 97 additions and 60 deletions

View File

@@ -785,7 +785,9 @@
"id": "9df0dab8",
"metadata": {},
"outputs": [],
"source": []
"source": [
"!rm .langchain.db sqlite.db"
]
}
],
"metadata": {