Open maziyarpanahi opened 6 days ago
Hi @maziyarpanahi , does your code configure DSP_NOTEBOOK_CACHEDIR
before setting os.environ['DSP_CACHEBOOL'] = 'false'
? The intro.ipynb notebook does this, so if this was previously set, you might have to delete the folder manually, remove the line with DSP_NOTEBOOK_CACHEDIR
and rerun your code to disable caching.
Hi @arnavsinghvi11
Thanks for your response. I am using DSPy inside a FastAPI application. This is how I set the ENV in the main.py
:
os.environ['DSP_CACHEBOOL'] = 'false'
os.environ["DSP_NOTEBOOK_CACHEDIR"] = os.path.join(os.getcwd(), 'cache')
Not only the cache is not disabled, but I don't have the cache in side ./cache
directory. I can see that the path ~/cachedir_joblib
is keep getting re-created even when I remove it and still responses are coming from the cache.
Thanks again for your help, the caching is a very useful feature but for rapid development it causes some confusion.
Hi,
I am setting
os.environ['DSP_CACHEBOOL'] = 'false'
as the docs suggest, removing directory hereDSP_NOTEBOOK_CACHEDIR
, but I still get caching and see new stuff appearing underDSP_NOTEBOOK_CACHEDIR
.I am using the
2.4.10
release, is there anyway to completely disable caching?