From a28a0c6986d779a99488117739de27d710797480 Mon Sep 17 00:00:00 2001 From: Attili-sys Date: Fri, 29 May 2026 15:37:44 +0300 Subject: [PATCH] File addition .rooignore (#15414) This PR introduces a `.rooignore` file to the root of the repository to optimize how AI coding assistants (like Roo) interact with the RAGFlow codebase. Currently, when AI agents index the workspace, they can waste tokens and processing time reading through generated files, caches, large dependency artifacts, and runtime logs. This `.rooignore` file provides a standard configuration to exclude these irrelevant directories and files (such as `.venv/`, `node_modules/`, `__pycache__/`, logs, and large binaries). This significantly reduces indexing noise, prevents accidental reads of sensitive or bulky local data, and ensures AI coding agents remain focused strictly on relevant source code. ### Type of change - [x] Other (please describe): Developer Experience (DX) / AI Tooling configuration --- .rooignore | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 .rooignore diff --git a/.rooignore b/.rooignore new file mode 100644 index 0000000000..0f8f6269da --- /dev/null +++ b/.rooignore @@ -0,0 +1,85 @@ +# .rooignore for RAGFlow +# Purpose: reduce indexing noise, token waste, and accidental reads of generated files + +# Git / platform +.git/ +.github/ + +# IDE / local editor +.idea/ +.vscode/ +.trae/ + +# Python caches / build artifacts +__pycache__/ +*.pyc +*.pyo +*.pyd +.pytest_cache/ +.mypy_cache/ +.ruff_cache/ +.hypothesis/ +.coverage +*.egg-info/ +ragflow.egg-info/ +sdk/python/ragflow_sdk.egg-info/ +sdk/python/build/ +sdk/python/dist/ +build/ +dist/ + +# Virtual environments +.venv/ +venv/ +env/ + +# Node / frontend dependencies and build output +node_modules/ +web/node_modules/ +web/dist/ +web/build/ +web/.cache/ +*.tsbuildinfo + +# Logs / runtime artifacts +logs/ +docker/ragflow-logs/ +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log* + +# Large local dependency artifacts +libssl*.deb +tika-server*.jar* +cl100k_base.tiktoken +chrome* +huggingface.co/ +nltk_data/ +uv-x86_64*.tar.gz +uv-aarch64*.tar.gz + +# Temp / data / local storage +tmp/ +cache/ +backup/ +docker/data/ +docker/oceanbase/conf +docker/oceanbase/data +docker/seekdb + +# Native / compiled build dirs +target/ +bin/ +internal/cpp/build/ +internal/cpp/cmake-build-release/ +internal/cpp/cmake-build-debug/ + +# Optional: skip tests and docs from indexing +# test/ +# tests/ +# docs/ + +# Ignore Roo's own config file +.rooignore \ No newline at end of file