Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Update cachedir instructions in FAQs.

Tom Dörr0be91d132981
diff --git a/docs/docs/faqs.md b/docs/docs/faqs.md
index c9f594da2..27c9f5894 100644
--- a/docs/docs/faqs.md
+++ b/docs/docs/faqs.md
@@ -87,7 +87,11 @@ Open source libraries such as [RAGautouille](https://github.com/bclavie/ragatoui
You can turn off the cache by setting the [`DSP_CACHEBOOL`](https://github.com/stanfordnlp/dspy/blob/main/dsp/modules/cache_utils.py#L9) environment variable to `False`, which disables the `cache_turn_on` flag.
-Your local cache will be saved to the global env directory `os.environ["DSP_CACHEDIR"]` or `os.environ["DSP_NOTEBOOK_CACHEDIR"]` which you can usually set to `os.path.join(repo_path, 'cache')` and export this cache from here.
+Your local cache will be saved to the global env directory `os.environ["DSP_CACHEDIR"]` or for notebooks `os.environ["DSP_NOTEBOOK_CACHEDIR"]`. You can usually set the cachedir to `os.path.join(repo_path, 'cache')` and export this cache from here.
+Example:
+```
+os.environ["DSP_NOTEBOOK_CACHEDIR"] = os.path.join(os.getcwd(), 'cache')
+```
## Advanced Usage