Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

Commit 470621e

Browse files
authored
Merge pull request #5 from XortexAI/bolt/optimize-classifier-prompt-10662765934560845840
⚡ Bolt: Memoize build_system_prompt
2 parents f066cad + 5009997 commit 470621e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/prompts/classifier.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from __future__ import annotations
99

10-
from typing import List
10+
from functools import lru_cache
1111

1212
from src.config.constants import LLM_TAB_SEPARATOR
1313
from src.prompts.classifier_keywords import (
@@ -84,6 +84,7 @@
8484
"""
8585

8686

87+
@lru_cache(maxsize=1)
8788
def build_system_prompt() -> str:
8889
"""Render the full system prompt with examples and keywords injected."""
8990
examples_block = "\n\n".join(

0 commit comments

Comments
 (0)