Skip to content

Commit

Permalink
Fix cache naming
Browse files Browse the repository at this point in the history
  • Loading branch information
sushruth2003 committed Nov 30, 2024
1 parent eabefac commit 9731a88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docetl/operations/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@

load_dotenv()
# litellm.set_verbose = True
DOCETL_HOME_DIR = os.environ.get("DOCETL_HOME_DIR", os.path.expanduser("~"))+"/.docetl"
DOCETL_HOME_DIR = os.environ.get("DOCETL_HOME_DIR", os.path.expanduser("~"))+"/.cache/docetl"

CACHE_DIR = os.path.join(DOCETL_HOME_DIR, "cache")
LLM_CACHE_DIR = os.path.join(DOCETL_HOME_DIR, "llm_cache")
CACHE_DIR = os.path.join(DOCETL_HOME_DIR, "general")
LLM_CACHE_DIR = os.path.join(DOCETL_HOME_DIR, "llm")
cache = Cache(LLM_CACHE_DIR)
cache.close()

Expand Down
2 changes: 1 addition & 1 deletion docs/concepts/operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Operators in DocETL are designed for semantically processing unstructured data.

!!! tip "Caching in DocETL"

DocETL employs caching for all LLM calls and partially-optimized plans. The cache is stored in the `.docetl/cache` and `.docetl/llm_cache` directories within your home directory. This caching mechanism helps to improve performance and reduce redundant API calls when running similar operations or reprocessing data.
DocETL employs caching for all LLM calls and partially-optimized plans. The cache is stored in the `.cache/docetl/general` and `.cache/docetl/llm` directories within your home directory. This caching mechanism helps to improve performance and reduce redundant API calls when running similar operations or reprocessing data.

## Common Attributes

Expand Down

0 comments on commit 9731a88

Please sign in to comment.