Cache Management
get_cache
Get a cache by name
get_cache
Get a cache by name.
Parameters
name
(str): Name of the cache to retrieve
Returns
Cache
: A cache object that is used to interact with the cache.
Example
Cache Methods
The Cache
object returned by this method has the following methods:
update()
: Update the cache with any new documents matching the original filtersadd_docs(docs: List[str])
: Add specific documents to the cachequery(query: str, max_tokens: Optional[int] = None, temperature: Optional[float] = None)
: Query the cache