From 42b95ca3fb54e4047b7ff0eee4bfa2728b5a7aaf Mon Sep 17 00:00:00 2001 From: Maja Date: Fri, 12 Apr 2024 22:35:55 +0100 Subject: [PATCH 1/3] docs(faqs): update documentation for disabling the cache --- docs/docs/faqs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/faqs.md b/docs/docs/faqs.md index 3308ba5a53..0c76f8d8ae 100644 --- a/docs/docs/faqs.md +++ b/docs/docs/faqs.md @@ -70,7 +70,7 @@ Open source libraries such as [RAGautouille](https://github.com/bclavie/ragatoui - **How do I turn off the cache? How do I export the cache?** -You can turn off the cache by setting the [`cache_turn_on` flag to `False`](https://github.com/stanfordnlp/dspy/blob/9d8a40c477b9dd6dcdc007647b5b9ddad2b5657a/dsp/modules/cache_utils.py#L10). +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`. Your local cache will be saved to the global env directory `os.environ["DSP_NOTEBOOK_CACHEDIR"]` which you can usually set to `os.path.join(repo_path, 'cache')` and export this cache from here. From 79fc59fa505f6b87d5bf3abc6d29120d79d8e11d Mon Sep 17 00:00:00 2001 From: arnavsinghvi11 <54859892+arnavsinghvi11@users.noreply.github.com> Date: Fri, 12 Apr 2024 17:40:00 -0700 Subject: [PATCH 2/3] Update faqs.md --- docs/docs/faqs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/faqs.md b/docs/docs/faqs.md index 0c76f8d8ae..1f0bfd6239 100644 --- a/docs/docs/faqs.md +++ b/docs/docs/faqs.md @@ -70,7 +70,7 @@ Open source libraries such as [RAGautouille](https://github.com/bclavie/ragatoui - **How do I turn off the cache? How do I export the cache?** -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`. +You can turn off the cache by setting the [`DSP_CACHEBOOL`](https://github.com/stanfordnlp/dspy/blob/main/dsp/modules/cache_utils.py#L9) `cache_turn_on` environment variable to `False`. Your local cache will be saved to the global env directory `os.environ["DSP_NOTEBOOK_CACHEDIR"]` which you can usually set to `os.path.join(repo_path, 'cache')` and export this cache from here. From c62ffa03445e97daafd27487c275bfd9e84324dc Mon Sep 17 00:00:00 2001 From: arnavsinghvi11 <54859892+arnavsinghvi11@users.noreply.github.com> Date: Sun, 14 Apr 2024 19:17:54 -0700 Subject: [PATCH 3/3] Update faqs.md --- docs/docs/faqs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/faqs.md b/docs/docs/faqs.md index 1f0bfd6239..1839588265 100644 --- a/docs/docs/faqs.md +++ b/docs/docs/faqs.md @@ -70,7 +70,7 @@ Open source libraries such as [RAGautouille](https://github.com/bclavie/ragatoui - **How do I turn off the cache? How do I export the cache?** -You can turn off the cache by setting the [`DSP_CACHEBOOL`](https://github.com/stanfordnlp/dspy/blob/main/dsp/modules/cache_utils.py#L9) `cache_turn_on` environment variable to `False`. +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_NOTEBOOK_CACHEDIR"]` which you can usually set to `os.path.join(repo_path, 'cache')` and export this cache from here.