Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Nest default joblib cache dir into .dspy_cache (#7633)

amas05d9a8b4a07af
diff --git a/dspy/dsp/cache_utils.py b/dspy/dsp/cache_utils.py
index 6861d9039..15f329750 100644
--- a/dspy/dsp/cache_utils.py
+++ b/dspy/dsp/cache_utils.py
@@ -29,7 +29,7 @@ CacheMemory = dotdict()
CacheMemory.cache = noop_decorator
if cache_turn_on:
- cachedir = os.environ.get('DSP_CACHEDIR') or os.path.join(Path.home(), 'cachedir_joblib')
+ cachedir = os.environ.get('DSP_CACHEDIR') or os.path.join(Path.home(), '.dspy_cache/cachedir_joblib')
CacheMemory = Memory(location=cachedir, verbose=0)
cachedir2 = os.environ.get('DSP_NOTEBOOK_CACHEDIR')