chrissoria Claude commited on
Commit
046b57c
·
1 Parent(s): ad336b6

Update prompt template to show chain of thought (default)

Browse files

- catllm uses chain_of_thought=True by default
- Updated methodology report to show the actual step-by-step prompt

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (2) hide show
  1. __pycache__/app.cpython-311.pyc +0 -0
  2. app.py +9 -4
__pycache__/app.cpython-311.pyc CHANGED
Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ
 
app.py CHANGED
@@ -526,11 +526,16 @@ def classify_data(spreadsheet_file, spreadsheet_column,
526
  else:
527
  success_rate = 100.0
528
 
529
- # Build prompt template for documentation
530
- prompt_template = '''Categorize this survey response "{response}" into the following categories:
531
  {categories}
532
- Provide your work in JSON format where the number belonging to each category
533
- is the key and a 1 if the category is present and a 0 if not.'''
 
 
 
 
 
534
 
535
  # Get version info
536
  try:
 
526
  else:
527
  success_rate = 100.0
528
 
529
+ # Build prompt template for documentation (chain of thought - default)
530
+ prompt_template = '''Categorize this survey response "{response}" into the following categories that apply:
531
  {categories}
532
+
533
+ Let's think step by step:
534
+ 1. First, identify the main themes mentioned in the response
535
+ 2. Then, match each theme to the relevant categories
536
+ 3. Finally, assign 1 to matching categories and 0 to non-matching categories
537
+
538
+ Provide your work in JSON format where the number belonging to each category is the key and a 1 if the category is present and a 0 if it is not present as key values.'''
539
 
540
  # Get version info
541
  try: