mirror of
https://github.com/The-Pocket/PocketFlow-Tutorial-Codebase-Knowledge.git
synced 2026-08-30 00:50:32 +08:00
fix the default chapter number
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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}.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user