Skip to content

Commit a079d9f

Browse files
authored
Merge branch 'test' into develop
2 parents c552823 + 551b28a commit a079d9f

68 files changed

Lines changed: 7241 additions & 28 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/scripts/generate_intros_and_keywords.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,8 @@ def save_cached_result(cache_path, data):
499499

500500
# Process each batch with retry logic
501501
for batch_idx, batch_files in enumerate(batches, 1):
502+
print(f"\n=== Processing batch {batch_idx}/{len(batches)} ===")
503+
502504
# Process the batch with automatic retry/split on failure
503505
batch_results = process_batch_with_retry(batch_files)
504506

@@ -518,21 +520,18 @@ def save_cached_result(cache_path, data):
518520
"keywords": result["keywords"],
519521
}
520522
save_cached_result(cache_path, cache)
521-
522-
print(f"Saved {len(batch_results)} results to cache")
523+
print(f" ✓ Saved result for {filepath.name}")
523524

524525
# Apply all results (both newly processed and cached) to .qmd files
526+
print("\n=== Updating .qmd files ===")
525527
all_files = set(files_to_process.keys()) | set(files_cached.keys())
526-
updated_count = 0
527528

528529
for doc_path in all_files:
529530
cache_path = get_cache_path(doc_path)
530531
cache = load_cached_result(cache_path)
531532

532533
if cache and "intro" in cache and "keywords" in cache:
533534
update_qmd_file(doc_path, cache["intro"], cache["keywords"])
534-
updated_count += 1
535-
536-
if updated_count > 0:
537-
print(f"\nUpdated {updated_count} .qmd files successfully")
538-
print(f"Total tokens sent: {total_tokens_sent:,}")
535+
print(f" ✓ Updated {doc_path}")
536+
537+
print(f"\nTotal tokens sent: {total_tokens_sent:,}")

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ venv
1919
*.Rproj
2020

2121
# Temporary files for changelog system
22-
DOCS/_meta/.temp_path_mapping.json
22+
DOCS/_meta/.temp_path_mapping.json
23+
24+
Files_to_convert/**

.llm_cache/DOCS__it-principles__IT_Architecture_Principles_and_Implementation_Guidelines.qmd.json

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.llm_cache/DOCS__products__CLDS_survey_evaluation_final.qmd.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
1.34 MB
Loading
612 KB
Loading
1.16 MB
Loading
9.15 KB
Loading
705 KB
Loading
1.4 MB
Loading

0 commit comments

Comments
 (0)