Short Summary
When running TreeSearch, static assets like datasets (e.g., MovieLens) placed inside the workspace/ directory are permanently deleted or moved after the first node execution.
The Problem
The current logic assumes all files found in the workspace after a run were newly generated by the LLM code:
- It collects everything (including pre-existing data folders).
- If
keep_only_relevant_files is active, it wipes out everything that isn't an image (.png, .jpg).
- This deletes the dataset and crashes all subsequent experiment iterations with a
FileNotFoundError.
Short Summary
When running
TreeSearch, static assets like datasets (e.g., MovieLens) placed inside theworkspace/directory are permanently deleted or moved after the first node execution.The Problem
The current logic assumes all files found in the workspace after a run were newly generated by the LLM code:
keep_only_relevant_filesis active, it wipes out everything that isn't an image (.png,.jpg).FileNotFoundError.