Skip to content

refactor: consolidate all LLM prompts into a single folder - #3885

Open
SurajsinghBayas wants to merge 2 commits into
google:masterfrom
SurajsinghBayas:feat/consolidate-llm-prompts-folder
Open

refactor: consolidate all LLM prompts into a single folder#3885
SurajsinghBayas wants to merge 2 commits into
google:masterfrom
SurajsinghBayas:feat/consolidate-llm-prompts-folder

Conversation

@SurajsinghBayas

Copy link
Copy Markdown

Summary

Closes #3708

As the number of LLM-powered features in Timesketch grows, having
separate directories for every prompt (data/nl2q/, data/llm_summarize/,
data/llm_starred_events_report/) creates maintenance overhead.

This PR consolidates all LLM prompt files into a single unified
data/llm_prompts/ directory with descriptive filenames.

Changes

  • New: data/llm_prompts/ with all 6 prompt files + README.md
  • Updated: timesketch.conf — all config keys point to new paths
  • Updated: docker/dev/build/docker-entrypoint.sh — 3 symlinks → 1
  • Updated: contrib/deploy_timesketch.sh — new curl paths
  • Updated: docs/guides/admin/llm-features.md — reflects new structure
  • Updated: testlib.py and all 3 affected test setUp() paths
  • Removed: data/nl2q/, data/llm_summarize/, data/llm_starred_events_report/

Testing

All existing unit tests in nl2q_test.py, llm_summarize_test.py, and
llm_starred_events_report_test.py were updated to reference the new paths.

Move all LLM prompt files from separate feature-specific directories
(data/nl2q/, data/llm_summarize/, data/llm_starred_events_report/)
into a single unified data/llm_prompts/ directory.

This makes it easier to discover, configure and maintain all prompts
from one place as the number of LLM features in Timesketch grows.

Changes:
- Add data/llm_prompts/ with all 6 prompt files + README.md
- Rename prompt files to be self-descriptive (e.g. nl2q_prompt.txt)
- Update timesketch.conf config keys to point to new paths
- Update docker/dev/build/docker-entrypoint.sh to symlink new folder
- Update contrib/deploy_timesketch.sh download paths
- Update docs/guides/admin/llm-features.md documentation
- Update testlib.py and all affected test files

Closes google#3708
@google-cla

google-cla Bot commented Jul 23, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move Timesketch prompts to a single folder

1 participant