diff --git a/main.py b/main.py index 3a094d3..bc881a1 100644 --- a/main.py +++ b/main.py @@ -41,7 +41,7 @@ def main(): # Add use_cache parameter to control LLM caching parser.add_argument("--no-cache", action="store_true", help="Disable LLM response caching (default: caching enabled)") # Add max_abstraction_num parameter to control the number of abstractions - parser.add_argument("--max-abstractions", type=int, default=10, help="Maximum number of abstractions to identify (default: 20)") + parser.add_argument("--max-abstractions", type=int, default=10, help="Maximum number of abstractions to identify (default: 10)") args = parser.parse_args() diff --git a/nodes.py b/nodes.py index 05e0fca..f6e769d 100644 --- a/nodes.py +++ b/nodes.py @@ -86,7 +86,7 @@ class IdentifyAbstractions(Node): project_name = shared["project_name"] # Get project name language = shared.get("language", "english") # Get language use_cache = shared.get("use_cache", True) # Get use_cache flag, default to True - max_abstraction_num = shared.get("max_abstraction_num", 10) # Get max_abstraction_num, default to 20 + max_abstraction_num = shared.get("max_abstraction_num", 10) # Get max_abstraction_num, default to 10 # Helper to create context from files, respecting limits (basic example) def create_llm_context(files_data): @@ -693,7 +693,7 @@ Instructions for the chapter (Generate content in {language.capitalize()} unless - Explain how to use this abstraction to solve the use case{instruction_lang_note}. Give example inputs and outputs for code snippets (if the output isn't values, describe at a high level what will happen{instruction_lang_note}). -- Each code block should be BELOW 20 lines! If longer code blocks are needed, break them down into smaller pieces and walk through them one-by-one. Aggresively simplify the code to make it minimal. Use comments{code_comment_note} to skip non-important implementation details. Each code block should have a beginner friendly explanation right after it{instruction_lang_note}. +- Each code block should be BELOW 10 lines! If longer code blocks are needed, break them down into smaller pieces and walk through them one-by-one. Aggresively simplify the code to make it minimal. Use comments{code_comment_note} to skip non-important implementation details. Each code block should have a beginner friendly explanation right after it{instruction_lang_note}. - Describe the internal implementation to help understand what's under the hood{instruction_lang_note}. First provide a non-code or code-light walkthrough on what happens step-by-step when the abstraction is called{instruction_lang_note}. It's recommended to use a simple sequenceDiagram with a dummy example - keep it minimal with at most 5 participants to ensure clarity. If participant name has space, use: `participant QP as Query Processing`. {mermaid_lang_note}.